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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Still stumped

Status
Not open for further replies.

beeg

Programmer
Jun 10, 2003
13
US
This block of code creates the table I want and states the number of results, but only displays the commas not the data. Can anyone help?

while ($row = mysql_fetch_assoc($result)) {
print &quot;<tr>\n&quot;;
printf (&quot;<td colspan=\&quot;3\&quot;><p>%s<br> %s, %s</td><td align=right colspan=\&quot;5\&quot;><p>%s, %s<br> %s, %s, %s</td>\n&quot;, $row['name'], $row['pastor'], $row['denomination'], $row['address'], $row['city'], $row['state'], $row['zip'], $row['phone']);
print &quot;\t</tr>\n&quot;;
}

Thanks - Beeg
 
Just inside your while loop, issue add the line &quot;print_r($row);&quot;.

Keeping in mind that PHP uses case-sensitive variables, does $row contain what you expect? ______________________________________________________________________
TANSTAAFL!
 
Thanks, but I'm very new and I'm not sure where you're telling me to place it
Beeg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top