I want to select channel1
my table look like this
ch_id ch ch_name
1 ch1 channel 1
2 ch2 channel 2
3 ch3 channel 3
4 ch4 channel 4
I try to select channel1 using url
exemple.com/channel.php?ch=ch1
When i use this
<?php
include('dbconfig.php');
$ch = $_GET['ch'];
$qry="select * from channel_list where ch=".$ch.
$row = mysql_fetch_array(mysql_query($qry));
?>
It show me this error
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/.../public_html/channel.php on line 5
Thanks in Advance