Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 25. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Persist option not working in phpmyedit

phpMyEdit General     Persist option not working in phpmyedit
Odoslať novú tému   Odpovedať na tému    
 
alexab     Založený: 05.09.2011   Príspevky: 0  
Príspevok Zaslal: 2011-09-05 07:38
Návrat hore  Odpovedať s citátom     

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.

Kód:

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


 
doug     Založený: 10.02.2003   Príspevky: 1013   Bydlisko: Denver, Colorado (USA)
Príspevok Zaslal: 2011-09-05 16:41
Návrat hore  Odpovedať s citátom     

Kód:
if(!empty($_REQUEST['Vol_Id'])){

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

}



Naposledy upravil doug dňa 2011-09-05 17:05, celkom upravené 2 krát

 
alexab     Založený: 05.09.2011   Príspevky: 0  
Príspevok Zaslal: 2011-09-06 05:45
Návrat hore  Odpovedať s citátom     

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


Naposledy upravil alexab dňa 2011-09-09 11:04, celkom upravené 1 krát

 
alexab     Založený: 05.09.2011   Príspevky: 0  
Príspevok Zaslal: 2011-09-06 05:46
Návrat hore  Odpovedať s citátom     

Working fine.


Naposledy upravil alexab dňa 2011-09-09 11:05, celkom upravené 1 krát

 
Odoslať novú tému   Odpovedať na tému    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov