Page 1 of 1

How can I put an variable in to the command line of INSERT

Posted: Fri Sep 20, 2002 2:16 pm
by Skywalker
$Table = $_POST['Pakket'];

mysql_select_db($database_Verbinding, $Verbinding);
$query_Recordset1 = "SELECT * FROM " $Table;

Thx you SKywalker

Posted: Fri Sep 20, 2002 2:22 pm
by JPlush76

Code: Select all

<?php
$Table = $_POSTї'Pakket']; 

mysql_select_db($database_Verbinding, $Verbinding); 
$query_Recordset1 = "SELECT * FROM $Table"; 

?>
just move the quote :)

Posted: Fri Sep 20, 2002 2:24 pm
by Skywalker
Thenk you ;)

Posted: Fri Sep 20, 2002 2:25 pm
by JPlush76
no prob :) did that work out ok for ya?