Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread 9el
On Fri, Apr 17, 2009 at 10:23 PM, Shawn McKenzie wrote: > Adam Williams wrote: > > Shawn McKenzie wrote: > >> > >> No. How about: > >> > >> while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) > >>{ > >>echo "".$row['types']; > >>} > >> > >> > > > > thanks,

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Shawn McKenzie
Adam Williams wrote: > Shawn McKenzie wrote: >> >> No. How about: >> >> while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) >>{ >>echo "".$row['types']; >>} >> >> > > thanks, now that you provided that, I see that I left out the $row > variable! > And

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Adam Williams
Shawn McKenzie wrote: No. How about: while ($row = mysqli_fetch_array($mysqli_get_support_types_result)) { echo "".$row['types']; } thanks, now that you provided that, I see that I left out the $row variable! -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Shawn McKenzie
Bastien Koert wrote: > On Fri, Apr 17, 2009 at 11:41 AM, Adam Williams > wrote: > >> I have the code: >> >> $mysqli_get_support_types = "Select types from support_types order by >> types"; >> $mysqli_get_support_types_result = >> mysqli_query($mysqli,$mysqli_get_support_types) or >> die(mysqli_err

Re: [PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Bastien Koert
On Fri, Apr 17, 2009 at 11:41 AM, Adam Williams wrote: > I have the code: > > $mysqli_get_support_types = "Select types from support_types order by > types"; > $mysqli_get_support_types_result = > mysqli_query($mysqli,$mysqli_get_support_types) or > die(mysqli_error($mysqli)); > > while (mysqli_fe

[PHP] php isn't displaying mysql query correctly

2009-04-17 Thread Adam Williams
I have the code: $mysqli_get_support_types = "Select types from support_types order by types"; $mysqli_get_support_types_result = mysqli_query($mysqli,$mysqli_get_support_types) or die(mysqli_error($mysqli)); while (mysqli_fetch_array($mysqli_get_support_types_result)) { echo "