how to get primary key error in php code with mysql? -



how to get primary key error in php code with mysql? -

i working on mysql table have primary key on 2 fields. retrieve primary key error during insertion php. please help me...my php code not show error.. not inserting values in table if contains values..

mysql_query("insert external values(1111,'xxx','yyy')");

for table both first , sec column deed primary key.if table contains entry 1111 xxx zzz. code not insert these values. there no error msg too..

thanks in advance!

$q="insert external values(1111,'xxx','yyy')"); if(!mysql_query($q){ die('mysql_error()'); }

this displays error have query

php mysql

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -