it is actually from code that i wrote.
<?php
error_reporting(E_ALL);
ini_set('display_errors', '1');
$counter=40;
$file = fopen("comp.csv", "r");
$line=fgets($file);
$data=explode(',', $line);
echo $data[1];
$connection = mysql_connect("localhost", "root", "xxxxxx");
@mysql_select_db("gcatalog1") or die( "Unable to select database");
$request1 = "INSERT INTO products_description (products_id,products_name) VALUES (200,$data[1])";
mysql_query($request1) or Die(mysql_error());
?>
so when $data[1]=test i get the following out put:
testUnknown column 'test' in 'field list'
when $data[1]=Ma'alim al-Suluk li al-Mar'a al-Muslima output:
Ma'alim al-Suluk li al-Mar'a al-MuslimaYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''alim al-Suluk li al-Mar'a al-Muslima)' at line 1
not sure what to make of it?



