I have two entry statements, second only, will be executed only after successful execution of the first. What do I do:
$ sqlone = "Enter ....."; $ Sqltwo = "Insert ....."; If (mysql_query ($ sqlone)) {if (mysql_query ($ sqltwo)) {Show the message put in both tables. }}
try it
$ query1 = '...'; $ Query2 = '...'; $ Query3 = '...'; If (mysql_query ($ query1)) {if (mysql_query ($ query2)) {if (mysql_query ($ query3)) {echo "success"; } And {echo "error"; }} And {echo "error"; }} And {echo "error"; }
Comments
Post a Comment