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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

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

Post by Skywalker »

$Table = $_POST['Pakket'];

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

Thx you SKywalker
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

Code: Select all

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

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

?>
just move the quote :)
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Post by Skywalker »

Thenk you ;)
JPlush76
Forum Regular
Posts: 819
Joined: Thu Aug 01, 2002 5:42 pm
Location: Los Angeles, CA
Contact:

Post by JPlush76 »

no prob :) did that work out ok for ya?
Post Reply