Discussion: boy was i wrong
Afficher un message
Vieux 23/07/2007, 03h19   #4
Norman Peelman
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: boy was i wrong

up2trouble wrote:
>
> Its an integer set at 1 space. I changed code to:
>
> function adminApprovalNeededDir ($connect, $db_table8)
> {
> $sql = "SELECT COUNT(*) FROM $db_table8 WHERE approved = 0 ";
> $result = mysql_query ($sql, $connect) or die ('Query failed:
> ' .mysql_error());
> $approved = mysql_num_rows($result);
> echo "<STRONG>Directory</STRONG> - You have $approved entries waiting
> for approval.";
> }
>
> I'm still getting same result.
>


You'll need to post your table definition here and just one more
thing are you sure $db_table8 refers to the correct table? There is
nothing in that query that would limit your results. Can you verify
through the MYSQL shell/command line?

Norm
  Réponse avec citation
 
Page generated in 0,04772 seconds with 9 queries