msafvati Posted June 27, 2007 Share Posted June 27, 2007 my script is: <?php if(!strlen(trim($_GET['id']))) { echo "please enter book id"; die(); } $query ="insert into t1 values(" $query = $query.$_GET['id']."',"; $query = $query."'".$_GET['name']."',"; $query = $query."'".$_GET['wr']."',"; $query = $query."'".$_GET['pub']."',"; $query = $query."'".$_GET['zam']."',"; "); echo $query; $connectionstring = odbc_connect("lib", "", ""); $result = odbc_do($connectionstring, $query); odbc_close($connectionstring); ?> warning is : Parse error: syntax error, unexpected T_VARIABLE in C:\Documents and Settings\Administrator\My Documents\nm3.php on line 8 please guid me Quote Link to comment https://forums.phpfreaks.com/topic/57396-i-have-error-for-add-new-recort-to-ms-access/ Share on other sites More sharing options...
AndyB Posted June 27, 2007 Share Posted June 27, 2007 $query ="insert into t1 values(" should be $query ="insert into t1 values("; And the orphan "); presumably should be echo ")"; Quote Link to comment https://forums.phpfreaks.com/topic/57396-i-have-error-for-add-new-recort-to-ms-access/#findComment-283935 Share on other sites More sharing options...
sushant_d84 Posted July 2, 2007 Share Posted July 2, 2007 Yes this correct Quote Link to comment https://forums.phpfreaks.com/topic/57396-i-have-error-for-add-new-recort-to-ms-access/#findComment-287873 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.