Code: Select all
if ($sqlViewType==="describe")
{
$sqlCmd = "$sqlViewType $sqlTableName;";
}
elseif ($sqlViewType==="select")
{
$sqlCmd = "$sqlViewType * from $sqlTableName;";
}
else
{
$this->sqlError = "please give a proper command \n\n";
return false;
}
if (! $this->Exec($sqlCmd))
return false;
$res = mysql_fetch_object($this->sqlHandler);
print_r($res);If I do this:
Code: Select all
if ($sqlViewType==="describe")
{
$sqlCmd = "$sqlViewType $sqlTableName;";
}
elseif ($sqlViewType==="select")
{
$sqlCmd = "$sqlViewType * from $sqlTableName;";
}
else
{
$this->sqlError = "please give a proper command \n\n";
return false;
}
if (! $this->Exec($sqlCmd))
return false;
$res = mysql_fetch_object($this->sqlHandler);
print_r($res);
$res = mysql_fetch_object($this->sqlHandler);
print_r($res); /////////// here I just doubled the $res and the print --- so now I have the address returned alsoRegards, Bog