At 4:15 PM -0700 10-25-2000, Jim Rota wrote:
>Why doesn't this work?
>- after opening up a connection...
>$sql = "SELECT rank FROM banners ORDER BY rank DESC LIMIT 1";
> $result = mysql(mydb,$sql);
> $sql = "delete from banners where rank='$result'";
> $res = mysql(mydb,$sql);
Because you're making the same mistake you made when you asked a
similar question yesterday. $result does *not* contain the values
in your result set.
I suggest you take a hard look at the discussion of the mysql_query()
function in the PHP manual.
Paul DuBois, paul@stripped