jenniferG Posted July 22, 2007 Share Posted July 22, 2007 In the below code, the varfiable $INSERTINDEX is fine, but this query gives an error saying the query is empty $INSERTINDEX=mysql_insert_id($conn); $INDEXB=$INSERTINDX+$INDBASE; $UPDATE_QUERY="UPDATE TABLE SIREQUESTTABLE SET INDEXB ='$INDEXB' WHERE INDEXA= '$INSERTINDEX'"; Thanks, Jennifer Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 22, 2007 Share Posted July 22, 2007 $UPDATE_QUERY="UPDATE SIREQUESTTABLE SET INDEXB ='$INDEXB' WHERE INDEXA= '$INSERTINDEX'"; seems more rational. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.