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