Jump to content

Extracing Data


SkyRanger

Recommended Posts

Not sure what the problem is but when I extract the data only 1 column per row is showing:

 

$resultc = mysql_query("SELECT t1.title, t2 . *
FROM post AS t1
JOIN comment AS t2 ON t2.mpid = t1.mpid
WHERE t1.mpid = '$mpid' and t2.review = '1'");

if (mysql_num_rows($resultc)) {
  while($rowc = mysql_fetch_array($resultc))
        echo "re:" . $rowc['title'];
        echo $rowc['vpcomm'];
} else {
        echo "No Comments Available";
}

The only thing that shows is the ['title']

vpcomm does not show.  And yes vpcomm has an entry.

 

Can anybody notice a problem?

Link to comment
https://forums.phpfreaks.com/topic/259753-extracing-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.