Hello.
This is my processing code from submitting data via a form...but the strange thing is, is that this doesn\\'t come up with ANY error nor is it successful. I really don\\'t know why, priviledges etc are all set, any help appreciated.
<?php
if (!$name || !$rank || !$icq)
{
echo \\"You have not filled in all of the details.<BR>\\"
.\\"Please go back and try again.\\";
exit;
}
$name = addslashes($name);
$rank = addslashes($rank);
$icq = addslashes($icq);
@ $db = mysql_pconnect(\\"localhost\\", \\"user\\", \\"pass\\");
if(!$db)
{
echo \\"Unable to connect to database!\\";
exit;
}
mysql_select_db(\\"df2\\");
$query = \\"INSERT INTO members values (\\'\\".$name.\\"\\', \\'\\".$rank.\\"\\', \\'\\".$icq.\\"\\')\\";
$result = mysql_query($query);
if ($result)
echo mysql_affected_rows().\\" member inserted into list.\\";
?>