Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have define it in this way
define('PAGES','admin_cms_page');
but its not working in the following code
$id = $_REQUEST['id'];

$res=$obg->select('PAGES','*','id='.$id);
$res_userseditt=$obg->GetResult($res);
if i am using the following code its working

$id = $_REQUEST['id'];

$res=$obg->select('admin_cms_page','*','id='.$id);
$res_userseditt=$obg->GetResult($res);
please suggest me.
Posted

1 solution

It doesn't work because you have got PAGES in quotes.. you need it like this
$res=$obg->select(PAGES,'*','id='.$id);
 
Share this answer
 
Comments
Sradhanjali Behera 19-Dec-14 1:10am    
Thank you @Chubby Ninja
Sradhanjali Behera 19-Dec-14 1:18am    
Thanxx a lot @Chubby Ninja
Chubby Ninja 19-Dec-14 4:16am    
no worries Sradhanjali glad it helped :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900