Jump to content

adding another Row


kdhearon

Recommended Posts

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)){

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.