hello i have a run a query using php it give error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'update,note,stream_a) values ('https://upload.wikimedia.org/wikipedia/ar/thu' at line 2
php code :
$logo = $_POST['logo'];
$name = $_POST['name'];
$content = $_POST['content'];
$country = $_POST['country'];
$satellite = $_POST['satellite'];
$position = $_POST['position'];
$frequency = $_POST['frequency'];
$system = $_POST['system'];
$fec = $_POST['fec'];
$quality = $_POST['quality'];
$lang = $_POST['lang'];
$url_ch = $_POST['url_ch'];
$stream = $_POST['stream'];
$update = $_POST['update'];
$note = $_POST['note'];
$stream_a = $_POST['stream_a'];
$id = $_POST['id'];
$gpageid = intval($_GET['id']);
#######################
if(isset($_POST['add']) and $_POST['add'] == 'newch') {
$addnewpage = mysql_query("insert into channels
(logo,name,content,country,satellite,position,frequency,system,fec,quality,lang,url_ch,stream,update,note,stream_a)
values
('$logo','$name','$content','$country','$satellite','$position','$frequency','$system','$fec','$quality','$lang','$url_ch','$stream','$update','$note','$stream_a')
") or die(mysql_error());
if(isset($addnewpage )){
die("
<center>Done</center>
<meta http-equiv='refresh' content='2; url=?cpages=channels' />
");
}
}