dougjohnson Posted November 20, 2020 Share Posted November 20, 2020 How would I create a prepared mysql temp table using PHP? I currently write my prepared statements like the example below. How would I create a "TEMP" table? Thanks! $connection8y = new mysqli("host", "xxx", "xxx", "db"); $result8y = $connection8y->prepare("SELECT ordernum, ordertype, duedate FROM hedord WHERE custnum = ? AND ordertype = ?"); $result8y->bind_param("ss", $custnum, $theordertype); $result8y->execute(); $bindok8y = $result8y->bind_result($ordernum, $ordertype, $duedate, $yyy, $mmm, $ddd); while ($bindok8y && $myrow8y = $result8y->fetch()) { echo "$custnum $ordernum $ordertype $duedate $yyy-$mmm-$ddd<br>"; } Quote Link to comment https://forums.phpfreaks.com/topic/311745-create-prepared-mysql-temp-table/ Share on other sites More sharing options...
requinix Posted November 20, 2020 Share Posted November 20, 2020 Why do you think you need a temporary table? Quote Link to comment https://forums.phpfreaks.com/topic/311745-create-prepared-mysql-temp-table/#findComment-1582530 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.