phpClasses and Jquery

1,024 views

Published on

This tutorial gives an introduction of using php classes and Jquery.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,024
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

phpClasses and Jquery

  1. 1. USING JQUERY AND PHP CLASSES This tutorial gives a simple example of using Php Classes With Jquery for Ajax Implementation Enjoy!! Email: rwanjiku@anu.ac.ke
  2. 2. For quite sometime as a Jquery beginner ,I struggled to implement Ajax functionalities within my applications especially using Php classes. After googling and analysis, I came up with this:it all lies within simple Switching…. We will develop a simple registration/login system using php class user
  3. 3. 1. Create a database connection class..lets call it DbConnection.php 2. Create a user class …User.php
  4. 4. 3. Create a php file that calls the various functions within your class ..call it userclass.php 4. Create your html pages..(registerform.php,loginform.php and the welcomepage.php) Registerform.php
  5. 5. Pointing to the useclass.php containing switches Pointing to the register case within the switch
  6. 6. Loginform.php Welcomepage.php
  7. 7. For the source code..visit my shared box repository https://app.box.com/s/sgpg1cg4gkfp7v7ft6zo Hope this helps!!

×