hi,
i have a bit of code that works fine in php5, but the server in question has php4.4.9 installed. does anyone know if it is a simple matter to convert this:
<?php
include 'dbConn.php';
$query = "SELECT amount FROM counter";
$result = mysql_query($query);
$row = mysql_fetch_array($result);
$oldCount = $row['amount'];
$newCount = $oldCount + 1;
mysql_query("UPDATE counter SET amount=" . $newCount);
echo 'resp=' . urlencode($newCount);
return "resp=" . urlencode($newCount);
?>
to something that will work under php4.4.9?
btw. its used for a simple hit counter that is connecting to a flash document. thanks,
freddy