jonnyshaw Posted June 11, 2007 Share Posted June 11, 2007 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 More sharing options...
trq Posted June 11, 2007 Share Posted June 11, 2007 $tablepre = $row_dbdata['prefix'].'pages'; Link to comment https://forums.phpfreaks.com/topic/55181-php-variable-in-mysql/#findComment-272746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.