pm'ed this to som1 but 'he/she' is offline now.
i need help
whats the mysql code to count how many things i have in my database ?
ex: i have a database called Folio with a table called content
in that table are my designs i posted.
now i want a code that gives me this;
There are ... designs
... would be how many designs are in there.
atm i got this;
but i get this error:PHP Code:<?
include("config.php");
$select = mysql_query("SELECT * FROM `content`");
$get = mysql_num_rows($select);
echo("There are $get designs");
?>
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/olivierp/public_html/Folio/count.php on line 5
There are designs
Thanks, oli






Reply With Quote





