new PHP
Posted: Mon Dec 09, 2013 4:00 am
Hi Everyone....
I am first in php... I come across with problem... I have install XAMPP and work with php.. I have table 1 in database prim
My table 1 have 3 field Ad (type varchar) daimi (type int) ish (type int)
the connection with table I already make so that I take the anwer to the following ...
$count = mysql_numrows(mysql_query("select * from `table 1` "));
PRINT "<CENTER>chislo zapisey $count <BR><BR>";
but when I add where to this string it make problems
$count = mysql_numrows(mysql_query("select * from `table 1` where `Ad`=`Qazax rayonu`"));
PRINT "<CENTER>chislo zapisey $count <BR><BR>";
in the screen it gives the following explanation....
Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\rrson.php on line 40
chislo zapisey
Pls. help me what I have to do where is my mistakes????
I am first in php... I come across with problem... I have install XAMPP and work with php.. I have table 1 in database prim
My table 1 have 3 field Ad (type varchar) daimi (type int) ish (type int)
the connection with table I already make so that I take the anwer to the following ...
$count = mysql_numrows(mysql_query("select * from `table 1` "));
PRINT "<CENTER>chislo zapisey $count <BR><BR>";
but when I add where to this string it make problems
$count = mysql_numrows(mysql_query("select * from `table 1` where `Ad`=`Qazax rayonu`"));
PRINT "<CENTER>chislo zapisey $count <BR><BR>";
in the screen it gives the following explanation....
Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\rrson.php on line 40
chislo zapisey
Pls. help me what I have to do where is my mistakes????