PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
else
{
$editedquery = "UPDATE blog set date='$_POST[date]', title='$_POST[title]', entry='$_POST[entry]' where id = '$_POST[id]'";
$editedresult = mysql_query($editedquery, $db_conn) or die("query [$editedquery] failed: ".mysql_error());
//line below is not a valid resouce it says
if (mysql_num_rows($editedresult) >0)
{
echo 'You have updated article '.$artid.' "'.$title.'"';
}
}
?>
i used the affected rows and removed the if with the rows command in. The manual says mysql won't update if the data matches what is there so i took out the if statement. Thanks for the help!