i have this code, that search in my database, but with the php i get empty result, but when i try with phpmyadmin to run the query, it give me results...
// create query
$query = "SELECT * FROM Moduli WHERE annate LIKE '%$anno%' or annate = 'all'";
// execute query
$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());
while ($rows = mysql_fetch_array($result))
{
$lista = $lista."<a class='a' href='iscrivi.php?mode=singup&id=".$idfiglio."&mid=".$row[0]."'><div class='green'>".$row[1]."</div></a>";
}
why by php doesn't print anything?
不好,在循环中我写了变量“ row [0]”,但他的名字叫rowS [0]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.