Re: code OK for large number of hits? On Mon, 05 May 2008 01:38:23 +0200, Geoff Cox <gcox@freeuk.notcom> wrote:
> mysql_connect($conf['sql']['host'], $conf['sql']['user'],
> $conf['sql']['pass']) or die(mysql_error());
> mysql_select_db($conf['sql']['db']) or die(mysql_error());
At least provide a more elegant solution then to 'die' with the database
message. Something like: include('sorrythesiteistobusyreturnlater.html');
exit; would be better.
> mysql_query("INSERT INTO mytable (answer1,answer2,answer3,answer4)
> VALUES ('$result1','$result2','$result3','$result4')");
Alterations based on a GET? Unless for logging purposes, I'd change that
to a POST.
--
Rik Wasmus |