kdhearon Posted February 17, 2009 Share Posted February 17, 2009 Trying to figure out how to add another row to this. It has only one row would like it to be more then one. if(isset($_GET['squad'])) $squad = $_GET['squad']; else $squad = 1; //$squad--; $get = safe_query("SELECT * FROM ".PREFIX."squads WHERE squadID = '".$squad."'"); $anz = mysql_num_rows($get); if(!isset($anz)) $get = safe_query("SELECT * FROM ".PREFIX."squads LIMIT 0,1"); $data = mysql_fetch_assoc($get); $squadID = $data['squadID']; $get_member = safe_query("SELECT * FROM ".PREFIX."squads_members WHERE squadID = '".$squadID."' LIMIT 0,4"); $pics = ""; $nicks = ""; while($ds = mysql_fetch_array($get_member)){ Quote Link to comment Share on other sites More sharing options...
priti Posted February 18, 2009 Share Posted February 18, 2009 I am not able to understand by - "add another row" ???? Are you trying to fetch results and only one row is coming or you wanted to add something else somewhere? Kindly explain.the code is not sufficient to help you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.