Jump to content

Recommended Posts

hi

when i use from UPDATE (sql) in my script,compiler show a warning for me

please guid me to corrrect this problem thank u

 

edu is PK

 

$new_Edu=$_GET['txt1']; 
$new_Back=$_GET['txt2'];
$new_Otherskiils=$_GET['txt3'];
$new_Age=$_GET['txt4'];
$new_Tell=$_GET['txt5'];
  
  $SqlUpdate="UPDATE tblReguser SET (Edu = '$new_Edu', Background = '$new_Back' , Otherskills = '$new_Otherskiils' , Age = '$new_Age' , Tell = '$new_Tell')";
$connectionstring=odbc_connect("user","","");
$resultup=odbc_do($connectionstring,$Sqlupdate);
    if ($SqlUpdate==1)
          echo "Record successfully updated!";
odbc_close($connectionstring); 
?>

 

and warning is :

 

Warning: odbc_do() [function.odbc-do]: SQL error: [Microsoft][ODBC Microsoft Access Driver]Invalid use of null pointer , SQL state S1009 in SQLExecDirect in D:\MAS\Prj2\Local path\MASUdate\Update.php on line 250

 

Link to comment
https://forums.phpfreaks.com/topic/85938-problem-in-update-data/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.