note 58930 added to language.basic-syntax

From: Date: Mon, 21 Nov 2005 10:14:14 +0000
Subject: note 58930 added to language.basic-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-98878@lists.php.net to get a copy of this message
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 :) ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58930 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58930&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58930&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#98878) next »