Forums

PHP

This topic is locked

Variables

Posted 05 Nov 2006 08:23:14
1
has voted
05 Nov 2006 08:23:14 Chris Trace posted:
Hey there,

I am trying to create a link between two tables so that a parsed php record set from one page acts as the variable for one table which is then put into the other as the filter

page 1 ---> abc.php?recordID=99
page2 ---> def.php --->dataset

In effect the code would be literally (not necessarily right tho)

SELECT *

FROM products

WHERE products_id = <?php echo $row_catprodswitch['products_id']; ?>

is there a way to successfully code this?

Thanks

Replies

Replied 06 Nov 2006 03:43:54
06 Nov 2006 03:43:54 Chris Trace replied:
Thanks got it using a join string

Reply to this topic