View unanswered posts | View active topics It is currently Mon Dec 17, 2018 3:15 am



Reply to topic  [ 1 post ] 
 mysql help 
Author Message
Junior Member

Joined: Sun Jan 07, 2007 2:30 am
Posts: 1
Post mysql help
hi, here is my code... i think something is wrong with it... please help me identify wat's the problem thanks

<?php // process information in body.
// Retrieve information in the head section
$query="SELECT * from imageTable";
$result = mysql_query($query) or die ("Error opening imageTable");
if (mysql_num_rows($result) == 0) {
echo "No rows found, nothing to print so am exiting";
exit;
} else {
echo "Number of rows: ".mysql_num_rows($result).;
echo "Number of fields:".mysql_num_fields($result).;
}
while($row = mysql_fetch_assoc($result))
{
echo $row;
foreach($row as "$key" >= "$value")
{
echo "$value";
}
}
mysql_free_result($result);
?>
===================================
output
===================================
= "$value") { echo "$value"; } } mysql_free_result($result); ?>
===================================

this happen after the ">"sign.. is the syntax wrong or wat???
please answer asap thanks


Sun Jan 07, 2007 2:36 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.