Jump to content

[SOLVED] SQL Query Help Needed


studgate

Recommended Posts

I am trying to get the id for a sql query.

I put the code here, I want $page_id to be

equal to the id of the current data.

 

 

<?php
$page_id = 1;
include("comments/comments_show.php");
include("comments/comments_form.php");
?> 

 

I did that but it didn't work

<?php
$page_id = <?php echo $row_Videos['videoid']; ?>;
include("comments/comments_show.php");
include("comments/comments_form.php");
?> 

 

Any help is welcome, thank you your welcome is greatly appreciated.

Link to comment
Share on other sites

that won't work because the comment system

that I need to integrate just needs the data id

to differentiate between the other data in my

database. I do have a lot of data and each has a

different id#.

I need to have get id# and then make so

page_id = dataid

I hope it makes sense.

 

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.