> >SELECT COUNT(x) FROM table;
> >
> >Make 'x' equal to any column name in the table and add WHERE to the
> >clause as needed.
>
> err...all very well, but how do i retrieve the
> value afterwards?
> $sqlcom="select count(codigo) from comments where
> codigo=$id";
contador");
the lines marked with -> are the lines I changed
-Original Message-
From: Pag [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 9:38 AM
To: [EMAIL PROTECTED]
Subject: [PHP] database value count retrieval
>SELECT COUNT(x) FROM table;
>
>Make
>SELECT COUNT(x) FROM table;
>
>Make 'x' equal to any column name in the table and add WHERE to the
>clause as needed.
err...all very well, but how do i retrieve the value afterwards?
Heres my code:
$sqlcom="select count(codigo) from comments where codigo=$id";
$resu
3 matches
Mail list logo