Answer the question
In order to leave comments, you need to log in
How to check the result of a query?
$rs="SELECT * FROM `pany` WHERE `link`='$link' LIMIT 1";
$ars = mysql_query ($rs);
Answer the question
In order to leave comments, you need to log in
$rs="SELECT * FROM `pany` WHERE `link`='$link' LIMIT 1";
$ars = mysql_query ($rs);
if ( mysql_num_rows($ars) )
echo 'Результат есть';
else
echo 'Пусто';
$rs="SELECT * FROM `pany` WHERE `link` <> '$link' LIMIT 1";
$rs="SELECT * FROM `pany` WHERE NOT `link` = '$link' LIMIT 1";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question