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
https://forums.phpfreaks.com/topic/65602-solved-sql-query-help-needed/
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.

 

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.