Having trouble with this upload script, it grabs and displays the content from the database fine. It won't however update the database although the code is throwing up no errors;
this is the script that displays the content
$sql="SELECT * FROM mot";
<table width="400" border="0" cellspacing="1" cellpadding="0">
<table width="400" border="1" cellspacing="0" cellpadding="3">
<td colspan="4"><strong>List data from mysql </strong> </td>
// link to update.php and send value of id
<td align="center"><a href="update_content.php?id=<? echo $rows['id']; ?>">update</a></td>
this next bit of code is the code that user updates the content;
// get value of id that sent from address bar
// Retrieve data from database
$sql="SELECT * FROM mot WHERE id='$id'";
Does it Print ERROR at least from your if($result)? can you test that the sql statement runs on your mysql database and works right? is the id field a string or a number? because you are updating is a a string/date/enum.
Just trying to figure out if it is a database problem or programming problem. The script at first glance looks good.