Error INSERT (Mysqli object oriented )

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 44
Joined: Tue May 28, 2013 10:04 pm
Location: India,Lucknow

Thu Jul 25, 2013 6:18 am

this is my tried and tested code. You can modify it as per your requirements
if(mysql_query("insert into test_database.f0001_name(mn,en,Title,Fullname,Fname,Lname,Mname,Oname) values ('"
'".$_POST['txtfullname']."','".$_POST['txtfirstname']."','".$_POST['txtlastname']."','".$_POST['txtmiddlename']."','".$_POST['txtothername']."')") or die("the eror ".mysql_error())) ;

php-forum Super User
php-forum Super User
Posts: 1803
Joined: Thu Mar 10, 2011 5:07 pm

Thu Jul 25, 2013 8:06 pm

when there is an error, please print the error message using $link->error

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests