[Chugalug] another LAMP problem
willm.wade at gmail.com
Thu Mar 14 17:34:58 UTC 2013
var_dump is your friend. You can throw it any variable and when the program
reaches it, it will spit out all sorts of info regarding stuff.
(http://xdebug.org is nice to use with it as (in addition to lots of other
stuff you don't need right now) styles the var_dump data nicely)
My first guess is that the result is successful but perhaps with no results
(see the return value on http://php.net/manual/en/mysqli.query.php ).
So try a
var_dump('test'); //(just to make sure you are getting something)
then perhaps a var_dump($result); //Before the if
and then perhaps in the first part of the else before the while a var_dump(
On Thu, Mar 14, 2013 at 1:17 PM, Garrett Gaston <garrett85 at hotmail.com>wrote:
> while($row = mysqli_fetch_array($result))
> echo $row['fname'] . " " . $row['lname'];
> echo "<br />";
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chugalug