A while back I asked for some help and got some great advice on setting up a script. It no longer works with my new host as they don’t allow chmod 777
so I need to upgrade to a databse, I guess.
the code I was using looked like the following. could somebody point me in the correct direction to making this work with MySQL?
[code=php]<?php
$ip = getenv(REMOTE_ADDR);
if (isset($_POST[‘submit’])) {
$name = $_POST[‘name’];
$fp = fopen(“$name.txt”,”a”);
if(!$fp) {
echo ‘Error, the file could not be opened or there was an error creating it.’;
exit;
}
if ($rctt > .399 && $rctt < 1.5)
fwrite($fp, $rctt.”n”);
else
{
fwrite($fp, “3 -“);
fwrite($fp, RedLight.”n”);
}
fclose($fp);
}
?>