I have the following query:
$sql2="
INSERT INTO bill
( bill_id , 'record_id, 'drugname , billdate , qty , price )
VALUES
('', '$recordid', '$drugname', '$billdate', '$row[qty]', '$row[price]')";
I can display $drugname to the screen (echo), but it does not add to the mysql db, and I get no errors?! $drugname often contains spaces such as "Claritin 10mg Tablets". Unfortunately however i Do not think the spaces are the problem (I have hardcoded claritin 10mg tablets into the query and it works fine). Any Ideas?