Code: Select all
<?php
$joined_query = ($_SESSION['query_one'].";".$_SESSION['query_two']);
$temp_table_query = "CREATE TEMPORARY TABLE tmp $joined_query";
if (!mysql_query($temp_table_query, $connection)) { echo"<script>alert('Query failed')</script>"; }
?>what is wrong? can i have 1 temp table containing 2 static tables at all?
if not why does it work in PHPMyAdmin?
thanx