Jump to content

Recommended Posts

I posted the query quesiton earlier and this query succesfully works in grabbing the data I need. For some reason the display is only showing one record on the screen instead of 5 (the number assigned to $display). I know the query works as I directly entered it into the mysql database. Any idea why only one record is showing?

 

Thanks for any thoughts.

 

 

 

$query = "SELECT c_save_url.school_id, c_save_url.state_id, c_schools.school_name, c_schools.school_site FROM c_schools LEFT JOIN c_save_url
ON cb_save_url.school_id = c_schools.school_id WHERE user_id = '$user' ORDER BY school_name ASC LIMIT $start, $display";
$sch = mysql_query ($query);



while ($sch = mysql_fetch_array($sch, MYSQL_ASSOC)) {


echo '
<tr>
	<td width="325" height="20">
	<p align="left"><font face="Verdana" size="2">	

	<a href="' . $sch['school_site'] . ' " target="_blank">' . $sch['school_name'] . ' </a>

	</font></td>
	<td width = "45" align="center"><font face="Verdana" size="1">

	<a href="school_body.php?sid=' . $sch['school_id'] . '&spname=' . $sch['sport_id'] . '" target="fr_school_body">INFO</a>

</font>
</td>
<td width = "50" align="center"><font face="Verdana" size="1">

M · <a href="javascript:Save(\'school.php?sid=' . $sch['school_id'] . '&user=' . $user . '&spname=' . $sch['school_id'] . '\',\'height=380,width=300,scrollbars=no\')"\;>R</a>
';

Link to comment
https://forums.phpfreaks.com/topic/62568-display-of-query-results-problem/
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.