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 Link to comment https://forums.phpfreaks.com/topic/61169-mysql-sintax/ 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. Link to comment https://forums.phpfreaks.com/topic/61169-mysql-sintax/#findComment-304404 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.