Error INSERT (Mysqli object oriented )

Codes here !

Moderators: macek, egami, gesf

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

Re: Error INSERT (Mysqli object oriented )

Post by developerahusain » 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 ('"
.$_SESSION['mn']."','".$_SESSION['en']."','".$titel."',
'".$_POST['txtfullname']."','".$_POST['txtfirstname']."','".$_POST['txtlastname']."','".$_POST['txtmiddlename']."','".$_POST['txtothername']."')") or die("the eror ".mysql_error())) ;
developerahusain

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

Re: Error INSERT (Mysqli object oriented )

Post by johnj » Thu Jul 25, 2013 8:06 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests