Jump to content

Using alter table with a variable


Hamkaas

Recommended Posts

Good morning,

 

I have this query, but if it's exucuted it just inserts $klantnaam in the database.

 

$klantnaam = $_POST['klantnaam'];

mysql_query ('ALTER TABLE sdmr_agentgegm ADD ($klantnaam int(10), $klantnaam_phone int(10), $klantnaam_mail int(10) )');

 

What am i doing wrong?

Link to comment
https://forums.phpfreaks.com/topic/264036-using-alter-table-with-a-variable/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.