Posts

Showing posts with the label Jquery

How to insert in Mysql with Jquery Ajax with validation?

Image
Using of this tutorials you can easily Insert data in database and validate your form using jquery. Create ajax.php file <?php     mysql_connect("localhost", "root", "")or die("cannot connect");     mysql_select_db("prodchecklist")or die("cannot select DB");    // CLIENT INFORMATION      $fname        = htmlspecialchars(trim($_POST['fname']));      $lname        = htmlspecialchars(trim($_POST['lname']));        $addClient  = "INSERT INTO tbluser (username,userpassword) VALUES ('$fname','$lname')";      mysql_query($addClient) or die(mysql_error());      ?>

Collapse And Expande Code using Jquery?

Best Example for Collapse and Expande using Jquery http://www.designandcode.com.au/jquery/#