Hi everybody,
I just want to learn this, I have $country_name variable in my code and if $country_name=turkey, I need to create a table in database as turkey_ip because of this I wrote below code and it works good. But I wonder is there a way to not create $ip variable. I mean I want to use $country_name variable and ip string in mysql query so ı do not need one extra variable.
$_ip=$country_name.'_ip';
mysql_query("CREATE TABLE $_ip
(
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
p1 VARCHAR(50),
p2 VARCHAR(50),
p3 VARCHAR(50),
p4 VARCHAR(50),
p5 VARCHAR(50)
)");