Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering jQuery Mobile
  • Table Of Contents Toc
Mastering jQuery Mobile

Mastering jQuery Mobile

By : Chip Lambert, Shreerang Patwardhan
4 (11)
close
close
Mastering jQuery Mobile

Mastering jQuery Mobile

4 (11)
By: Chip Lambert, Shreerang Patwardhan

Overview of this book

You've started down the path of jQuery Mobile, now begin mastering some of jQuery Mobile's higher level topics. Go beyond jQuery Mobile's documentation and master one of the hottest mobile technologies out there. Previous JavaScript and PHP experience can help you get the most out of this book.
Table of Contents (12 chapters)
close
close
11
Index

Inserting data into the database


To insert the form data into a database table, let's create a new table in our Civic_Center database. Let's call it User_Queries. This table will have the following five fields:

  • An auto-increment ID field

  • A field of type varchar to save the name of the user

  • A field of type varchar to save the e-mail ID of the user

  • A field of type int to save the contact number of the user

  • A field of type varchar to save the value of the facility the user wishes to avail

Let's go over to localhost/phpmyadmin in your browser. Click on the Civic_Center database link in the left navigation. Click on the following New link it to add a new table. You will be presented with the following screen. Fill in the details as discussed earlier:

Click on the Save button at the bottom of the screen, and this will create your new table—User_Queries. We have now created a blank table that is ready to accept data values.

Create a new PHP page form.php, which will hold the PHP code to post the form values...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering jQuery Mobile
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon