tommy168 Posted March 14, 2011 Share Posted March 14, 2011 Hey guys, I got some questions about the while loop It's dealing with the "qset" as you can see below: $get = "SELECT qset from mailing_list where email = '$email'"; $result = mysqli_query($connect, $get) or die($connect); while ($row = mysqli_fetch_array($result)){ extract($row); $qset = rsort($row); $qset = (int)end($row); } if (empty($qset) || $qset < 1){ $qset = 1; return $qset; } elseif ($qset >=1){ $qset = $qset + 1; return $qset; } echo $qset; Nothing echoed out... Why? Also it seems like the script got stuck at the while loop, as no sql commands that follow up are processed Any help is appreciated! Thanks Link to comment https://forums.phpfreaks.com/topic/230614-help-with-while-loop/ Share on other sites More sharing options...
Mahngiel Posted March 14, 2011 Share Posted March 14, 2011 my readings on extract() gives me the impression you aren't using it properly. [link to manual] Link to comment https://forums.phpfreaks.com/topic/230614-help-with-while-loop/#findComment-1187417 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.