Hi guys, actually i have a problem. I think its a very simple for all of you, but as i m begginer i m not able to do this. The problem is that, i access a particular column from a table with mysql query. Now, what i want to do is that, i want to put these value in an array.
[PHP]
include "config.inc.php ";
include "connect.inc.ph p";
$sql = mysql_query("SE LECT vFirstName FROM employeetable") or die(mysql_error ());
if($sql)
{
// here i want to put all the data (vFirstName) into an array.
}
else
{
echo "Sorry";
}
but i dont know how to put these value into array. please help me. thanks in advance ...
[/PHP]
[PHP]
include "config.inc.php ";
include "connect.inc.ph p";
$sql = mysql_query("SE LECT vFirstName FROM employeetable") or die(mysql_error ());
if($sql)
{
// here i want to put all the data (vFirstName) into an array.
}
else
{
echo "Sorry";
}
but i dont know how to put these value into array. please help me. thanks in advance ...
[/PHP]
Comment