Hi everyone,
I have a php page with the following select to my daabase:
$host=""; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name=""; // Database name
$tbl_name=""; // Table name
//Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$sql= "select concat(post,'', post1) as posted from tbl_name order by id desc limit 1";
$result=mysql_query($sql);
while($row = mysql_fetch_array($result))
{
$updates=$row;
}
mysql_close($con);
Then, in another page which is my main page I added the following at the begging of my page:
<?php include 'my_otherpage.php';?>
Then in the same main page I added another php code to bring the data using the following:
<?Php echo $updates; ?>
And this is the message I receive: Array
Not the information on my database.
Can anyone please help me?