View Single Post
  #4 (permalink)  
Old November 30th, 2006, 07:42 AM
talk2leo talk2leo is offline
Authorized User
 
Join Date: Nov 2006
Location: Bhopal, MP, India.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to talk2leo
Default

you can also remove quotation marks in the query as iid will be numeric
like this

$id = mysql_insert_id();
$sql="insert into Users(ID,Usrname,PSW) values($id,'User','P@sw')";
$sql1="insert into Details(ID,firsn,Last_n) values($id,'Test','Users')";

Reply With Quote