MySQL Forums
Forum List  »  PHP

How to UPDATE?
Posted by: diela mohd
Date: June 20, 2005 09:15PM

dear friends..i've already try to check the coding and it seems doesn't have any problem with it..
can u suggest a solution why this coding can't use to update the database?? everytime i click the button, the dialog box contains 'failed to update' exist...


$db="projek"; //database name
$table="projek"; //table name



$q= "UPDATE $table SET id_projek='$id_projek', homepage='$homepage', project_name ='$project_name',desc ='$desc', day ='$day',month='$month', year ='$year', status ='$status', email ='$email' WHERE id_projek='$id_projek' ";


if ($numrow>0)
echo "<script>alert('..::UPDATE RECORD::..');<//script>";
include 'list_projek.php';
echo "<script>alert('..::!FAILED TO UPDATE!::..');</script>";
include 'list_projek.php';


Options: ReplyQuote

Written By
How to UPDATE?
June 20, 2005 09:15PM
June 21, 2005 02:50AM
June 22, 2005 07:09PM
June 22, 2005 08:21PM
June 22, 2005 08:41PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.