SQl num_rows problem


Posted on 16th Feb 2014 07:03 pm by admin

when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysql_query("SELECT * FROM viewed WHERE sfw = '0' AND cookieid = $id");
$num_rows_viewed = mysql_num_rows($countviews);
Did you know?Explore Trending and Topic pages for more stories like this.
Code: [Select]Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in ******.php on line 58
anybody an idea why this is?
No comments posted yet

Your Answer:

Login to answer
282 Like 31 Dislike
Previous forums Next forums
Other forums

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

question about n
I was looking at some of the things you could do with php and one of the things I have tried is n.<

Export hangs
Hi all, please help

I have a Oracle 10.2.0.3.0 database. When I want to query the dba_segmen

The control with ID 'ace' requires a ScriptManager on the page
I'm trying to add a simple AlwaysVisibleControlExtender to my page, but it's not working. I get the

problem with sql querry in php script
Hello guys,

What I want to do is I want to read out a csv file and then but te conent ot the

DBCA Templates
Hi all,

I'm working on creating a template for DBCA, but can't find any documentation on the

Image DPI
Hi.

I allow users to upload images, the user then is able to adjust several settings for the

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Preventing SQL Injection
I have a question about SQL Injection, In some of our code we use this: view plaincopy to clipboa

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash