i have the following:
$crud = mysql_query("select max(foo) from bar",$DatabaseLink);
settype($crud,"integer");
$gack = $crud+1;
$gack does not become 2 or larger, ever. not even after many inserts. it is always the same as $crud. which really hoses up the db.
i want the maximum value from column foo in table bar. then increment it for my next db insert.
what am i doing wrong/ideas?
rh7.3/mysql3.23.58/php4.1.2 (i think this is correct)