Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

echo database result problem 1

Status
Not open for further replies.

krappleby025

Programmer
Joined
Sep 6, 2001
Messages
347
Location
NL
i have a code as follows

extract($row);
echo &quot;<tr>\n
<td width=\&quot;50%\&quot; bgcolor=\&quot;#FFFFFF\&quot;><font face=\&quot;MS Sans Serif\&quot; color=\&quot;#000000\&quot;><B><center>$username</td>\n
<td width=\&quot;50%\&quot; bgcolor=\&quot;#FFFFFF\&quot;><font face=\&quot;MS Sans Serif\&quot; color=\&quot;#000000\&quot;><B><center>$fullname</td>\n
</tr>\n
&quot;;

everything works except the $fullname echo.. it does not produce the record, the database results are called, and it just dont show it.. The $username works

any ideas

thanks

 
here is the full code

<?
$querydownline = &quot;select username, fullname from Members where sponsor = '$loggedin'&quot;;
$result = mysql_query($earningscheck) or die (&quot;couldn't execute query&quot;);
while ($row = mysql_fetch_array($result) )
{
extract($row);
echo &quot;<tr>\n
<td width=\&quot;50%\&quot; bgcolor=\&quot;#FFFFFF\&quot;><font face=\&quot;MS Sans Serif\&quot; color=\&quot;#000000\&quot;><B><center>$username</td>\n
<td width=\&quot;50%\&quot; bgcolor=\&quot;#FFFFFF\&quot;><font face=\&quot;MS Sans Serif\&quot; color=\&quot;#000000\&quot;><B><center>$fullname</td>\n
</tr>\n
&quot;;
}
?>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top