Using PHP inside PHP
-
Hello,
I’m trying to create an e-commerce solution and I am trying to call the title of a post inside some other php that calls data from a database. Here is the code now.
$query = “SELECT product_name, product_quantity FROM transaction_detail WHERE product_name=’the_title();‘”;
How do I call the title of each post? Thanks very much.
Chris
Rabbit Pack
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Using PHP inside PHP’ is closed to new replies.