pg_result

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



 
hi list.  
 
this is my script: 
 
$query7="select provinceid from province where province like '$tablename1';"; 
$result7=pg_exec($conn,$query7); 
if(!$result7){ 
	. 
	. 
	.} 
else	{ 
	. 
	. 
	. 
	} 
 
my problem is when the value of the variable $tablename1 is not on the table 
province, it doesn't go to the if statements. what am i doing wrong? 
 
thanks! 
 


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux