HOw to Call Two Values from php Function with passing some values to function
class insert // Class for cheking
{
public function Read($variable)// Read Values From Database
{
//echo $variable;
$read=mysql_query($variable);
$r=""; // Var For Storage Multiple Values
$r1="";
while($res=mysql_fetch_array($read))
{
if($res["Temp"]=="Temp")
{
$r.=$res["Selection"].",";
}
if($res["Temp"]!=="Temp")
{
$r1.=$res["Selection"].",";
}
}// class close
and Now I am calling function
$data=new insert();
$bar=$data->Read("passing Some MySql Code");
My Problem is how to call $r and $r1 Temp Is some Column in My MYsql Table and i am checking with that Temp='Temp' where temp equal to or not equal to i want read out put