Consider the following code:
<?php
$db_error='Establishing a Database Connection Error';
$localhost='localhost';
$db_user='root';
$db_name='uploader_db';
$db_pass='';
$db_connect=mysql_connect($localhost,$db_user,$db_pass) or die($db_error);
mysql_select_db($db_name) or die($db_error);
$result="SELECT 'user','pass','name','email' FROM 'config' ORDER BY 'name'";
$sql_result=mysql_fetch_array($result,MYSQL_BOTH);
echo $sql_count=count($sql_result['name']);
?>
I am receiving the following error:
error : Warning: mysql_fetch_array() expects parameter 1 to be resource, string given in C:\xampp\htdocs\Project1\config.php on line 20 0
How can I resolve this issue?