php - Query Isn't Working like others -



php - Query Isn't Working like others -

i life of me cannot figure out why not outputting 0 when seek echo it. works on previous query not lastly one.

// 1 works , if there no movies above 0 outpus 0 fine $tag_movies_result = mysql_query("select * tags tagname='$n' , film > 0"); $total_times_used_movies = mysql_num_rows($tag_movies_result); // query returns error $tag_shows_result = mysql_query("select * tags tagname='$n' , show > 0"); <-- `show` $total_times_used_shows = mysql_num_rows($tag_shows_result); <-- line 12 // error warning: mysql_num_rows(): supplied argument not valid mysql result resource in /home/a5410474/public_html/tags/tag.php on line 12

this utilize phone call it

<li><a href="#shows" rel="shows">shows (<?php echo $total_times_used_shows; ?>)</a></li>

demo: http://mydb.host56.com/tags.php?n=the

the column name shows needed enclosed in `. topic closed.

show reserved keyword wrap tilde (`) around show, below:

`show`

reference

php mysql

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -