Thursday, August 19, 2010
Check Table Is Present in SCHEMA or not
$table="poinavigation_".$city;
$tableExistQuery="SELECT relname FROM pg_class
WHERE relname ilike '".$table."'";
$result=@pg_query($connectionTo38,$tableExistQuery);
$istableExist=pg_num_rows($result);
if($istableExist)
{
while($row = pg_fetch_Array($result))
{
$table=$row['relname'];
}
}
else
$table="poinavigation";
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment