Answer the question
In order to leave comments, you need to log in
Why are there no results from the database?
$result = mysql_query("SELECT * From arajin_models WHERE name LIKE '%f%' ") or die(mysql_error()); ;
$row = mysql_fetch_array($result);
print_r($row);
echo $result;
Answer the question
In order to leave comments, you need to log in
Made it a little easier, found an error. May be useful to someone:
elseif(preg_match("#[a-z]+#ui", $login) && preg_match("#[а-я]+#ui", $login)) msg('Логин должен состоять только из русского или английского алфавита');
Forgot the letter "yo", forgot to set the flag "u"? Try . preg_match('|^[a-zа-яё0-9]+$|ui', $login)
So the query returned 0 rows.
print_r(false) doesn't output anything, so it's better to use var_dump
Manual: the resource variable type
mysql_fetch_array will return false if the fetch from the database is empty
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question