Hello,..
i'm doing a project.. some sort of sending messages to registered users on my page. this is my problem:
i've got a script:
$query = "select * from messages_main where FOR='$nettech_user' and NEW=1";
$result = mysql_query($query);
$sporocil = mysql_num_rows($result);
if ($msg > 0) {
echo " <script>
var stay=confirm(\"You've got new message ($msg). Do you want to read them no?\")
if (stay)
window.location=\"messages.php\"
</script>\n";
}
now, i want to make a script, when you hit the cancel button, that the column NEW in mysql base would change from 1 to 0. but i don't know how to do that??
thank you for your help,
gregor