Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  Persist option not working in phpmyedit

phpMyEdit General     Persist option not working in phpmyedit
Post new topic   Reply to topic    
 
alexab     Joined: 05 Sep 2011   Posts: 0  
Post Posted: 2011-09-05 07:38
Back to top  Reply with quote     

Hello,
Need is to add a record to 2nd table based on Id of first table. Passed the Id of first table using url and it gets the value perfectly the first time. But if I click add option and after giving persist also Iam getting this error and value of Id is lost. Notice: Undefined variable: Vol_Id in C:\xampp\htdocs\Volunteer\VolunteerDisasterMain.php on line 67
Please let me know if Iam missing something? Do we need to set any other option make persist active? Is position of persist important? Thanks a lot.

Code:

if(isset($_GET['volid']))
{$Vol_Id = @$_GET['volid'];
opts['cgi']['persist'] = array('Vol_Id' => $Vol_Id);
}
echo "Last inserted key:" .$Vol_Id;


 
doug     Joined: 10 Feb 2003   Posts: 1013   Location: Denver, Colorado (USA)
Post Posted: 2011-09-05 16:41
Back to top  Reply with quote     

Code:
if(!empty($_REQUEST['Vol_Id'])){

   $opts['cgi']['persist'] = array('Vol_Id' => $_REQUEST['Vol_Id']);

}



Last edited by doug on 2011-09-05 17:05, edited 2 times in total

 
alexab     Joined: 05 Sep 2011   Posts: 0  
Post Posted: 2011-09-06 05:45
Back to top  Reply with quote     

Thanks a lot Dough for your quick reply. It is working fine. The issue was I had given persist option twice and 2nd one was overwriting the first.

Thanks a lot


Last edited by alexab on 2011-09-09 11:04, edited 1 time in total

 
alexab     Joined: 05 Sep 2011   Posts: 0  
Post Posted: 2011-09-06 05:46
Back to top  Reply with quote     

Working fine.


Last edited by alexab on 2011-09-09 11:05, edited 1 time in total

 
Post new topic   Reply to topic    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy