please forgive me if not displaying the entire string of code is the wrong thing to do
im trying to define a variable as id-1 (id minus 1)
apparantly this doesn't work
$result1 = mysql_query("SELECT * FROM news order by id desc",$db);
$id = mysql_result($result1,0,"id");
$prev = ($id-1);
and also when i pull it back up in code this doesn't seem to be working either
printf("<td width=\"33%\" align=\"left\"><font face=\"Arial\" color=\"#FFFFFF\"><a href=\"betahome2.php?id=%s\"><<prev</a></font></td>\n", $prev);
hopefully you can help with just these couple of snippets if not lemme know and i'll paste the entire code