Good Day all..
I am querying entrants from on table and placing them in another table. When I query the entrants, store them in an array and echo them, I can see that the tables are being accessed and the values are being read.
However when i query to put the values into the other, if I put in the entrants with numbers only ( float type or integer type), the following statement works but it doesnt work for the entrants that are of type VARCHAR
Here is the statement I use.
it works for this
$query = mysql_query("INSERT INTO store_data (network_ID, store_num) VALUES ($network_ID, $store_num)");
Doesnt work for this
$query = mysql_query("INSERT INTO store_data (network_ID, store_name, store_num, store_type) VALUES ($network_ID, $store_name, $store_num, $store_type)");
$network_ID is an 'int'
$store_name is a 'VARCHAR(255)
$store_num is an 'int'
$store_type is a 'VARCHAR(255)
can anybody tell me what wrong?