Hello all PHP developer.
I need a help to solve my problem.
<?php
include_once("connect.php");
$sql = "Select * from news LIMIT 2";
$r = mysql_query($sql);
$view = "";
while($n = mysql_fetch_array($r))
{
$id = $n['id'];
$title = $n['title'];
$view .= $title;
}
?>
Here are 2 data in $view. now I want to get that 2 data (included in $view) in 2 different variable...
I need a help to solve my problem.
<?php
include_once("connect.php");
$sql = "Select * from news LIMIT 2";
$r = mysql_query($sql);
$view = "";
while($n = mysql_fetch_array($r))
{
$id = $n['id'];
$title = $n['title'];
$view .= $title;
}
?>
Here are 2 data in $view. now I want to get that 2 data (included in $view) in 2 different variable...