Jump to content

php variable in mysql


jonnyshaw

Recommended Posts

hey guy

 

im not so experienced with php because i mainly use coldfusion but am starting to use php

 

but my problem is that i want to use a result from a mysql query as the table name for another query.

 

so far i have...

 

OH!!

wow

in making this thread i have somehow managed to do it!

 

 

now new problem!

 

how do i create a variable which has 2 bits together...

 

    $tablepre = $row_dbdata['prefix']'pages'; 

 

i want $tablepre to be the prefix with pages after it

 

eg. pre_pages

 

anyone help?

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/55181-php-variable-in-mysql/
Share on other sites

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.