Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
please help to solve this issus.here iam mention the code and error



**** error is :
XML
Parse error: syntax error, unexpected '"Vacancy"' (T_CONSTANT_ENCAPSED_STRING) in /home/jobsbere/public_html/admin/jobs/vacancy_action.php on line 61

<pre lang="cs">//Passed querystring variable &quot;act&quot; that can be 1 - add, 2 - mod, 3 - madd, 4 - del   if(!isset($_SESSION[&quot;admin_info&quot;])){
switch(trim($act)){
case &quot;1&quot;:
****     if(isset(&quot;Vacancy&quot;)){
          session_unregister(&quot;Vacancy&quot;);
          unset($jobcat);
     }
    session_register(&quot;Vacancy&quot;);</pre>


please help me
Posted
Comments
Killzone DeathMan 1-Jul-14 4:37am    
if(isset('Vacancy')) ???

OR did you mean:

if(isset($_SESSION['Vacancy'])) ?

1 solution

You're trying to test if the string "Vacancy" is set. That makes no sense.

You probably meant to test if a session variable was set, which would be isset($_SESSION["Vacancy"]) instead.
 
Share this answer
 

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