Jump to content
MakeWebGames

Recommended Posts

Posted

ok i am trying to make my event_add more advanced

but i get this error

Parse error: syntax error, unexpected T_STRING in /home/realhost/public_html/game/staff_items.php on line 173

on this code

event_add($_POST['user'], 'You Recieved An {$_POST['itmname']}, From The Admin. Check Your Items', $c);

Guest Anonymous
Posted

Re: Can you help

Try:

event_add($_POST['user'], 'You Recieved An '.$_POST['itmname'].', From The Admin. Check Your Items', $c);

cannot use the curly brackets inside single quotes, only double.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...