Insert Query in MySQL

70 views

Inserting query in MySQL

  1. <?php
  2. function add_user($id, $pass, $name, $email) {
  3. $result=mysql_query("insert into users values
  4. (’$id’,ENCRYPT(’$pass’),’$name’,'$email’,NULL)");
  5. if($result) {
  6. echo "Row inserted
  7. ";
  8. } else {
  9. ";
  10. }
  11. }
  12.  
  13. ?>  



« Create table using MySQL Selecting query in MySQL »
Posted on Monday, March 9th, 2009 at 2:55 pm under Basic of MySQL | RSS 2.0 Feed

Post Comment

You must be logged in to post a comment.



ComputerEducationWorld.com All Rights Reserved © RSS | CBSE | Education Boards Of India | What is My IP?