note 58930 rejected from language.basic-syntax by nlopess
| From: | nlopess@php.net | Date: | Mon, 21 Nov 2005 10:16:35 +0000 |
| Subject: | note 58930 rejected from language.basic-syntax by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98879@lists.php.net to get a copy of this message | ||
Note Submitter: spasme at gmail dot com
----
Hi everyone...
I have a minor problem with some PHP syntax. My server administrator updated recentry to php 3.4.11
(or somthing) and now things got messed up.
here it is:
$result = mysql_query("select * from $table WHERE 'category'='site' AND
'check'='yes' order by 'id' desc limit 2")
or die ("ERROR!!!! ".mysql_error());
while ($qry = mysql_fetch_array($result)) {
print"
<td width=\"87\" height=\"81\"><a
href=\"javascript:winOpen('view.php?id=$qry[id]', '', 512, 440, false,
false, false, false, false, false)\"><img src=\"work/$qry[thumb_url]\"
border=\"0\"></a></td>
<td width=\"123\" height=\"81\"><span
class=\"title\">$qry[name]</span> <br>
<span class=\"text\">$qry[descr]</span>
<br>
<a href=\"javascript:winOpen('view.php?id=$qry[id]', '', 512, 440,
false, false, false, false, false, false)\"
class=\"more\">view</a></td>
</tr>
";
}
The problem is that nothing apears in the print""; and i'm guessing becouse of the
WHILE function...
Please help, ty :)