Tuesday, 27 August 2013

Need help.. Array to string conversion error [on hold]

Need help.. Array to string conversion error [on hold]

please help..I am just a starter in php-mysql and I am stuck with this
"Array to string conversion error"....may be mine is a stupid mistake or
sth...any help would be a lot
A simple program that just takes in some data from sql and puts on
php..but......
connection.php
<?php
$host="localhost";
$user="root";
$pass="****";
$db="test";
mysql_connect($host,$user,$pass);
mysql_select_db($db);
?>
........................................................... test1.php
<?php
include "connection.php";
$quer="SELECT * FROM users ";
$res=mysql_query($quer);
while($list=mysql_fetch_array($res))
{
echo "$list";
}
?>
............................................. i have saved these files
inside localhost and I run using dreamweaver..had configured the localhost
settings in dream weaver...but i get error like
Notice: Array to string conversion in C:\xampp\htdocs\Dreamfiles\test1.php
on line 7 Array Notice: Array to string conversion in
C:\xampp\htdocs\Dreamfiles\test1.php on line 7 Array Notice: Array to
string conversion in C:\xampp\htdocs\Dreamfiles\test1.php on line 7 Array

No comments:

Post a Comment