Login
register search gameSlave

Any PHP wizz kids
s0uL

User Avatar
Posts: 15
Rank:
Forum rank 0 out of 5
Joined: 16 Oct 05
17 October 2005 21:12 Reply (Quote this message)
Hey guys any of u know how to layout the line

$name = '[MPG]SENT';

so that the script recognises the [ ] as part of the name and not part of the script ?


Re0sLess

User Avatar
Posts: 2103
Rank:
Forum rank 5 out of 5
Joined: 09 Sep 05
17 October 2005 22:39  Edited by Re0sLess on 17-Oct-05 at 22:44 Reply (Quote this message)
I think you need a delimiter. i'm not 100% but i think its \ in PHP , i'm more into ASP. try

$name = '\[MPG\]SENT'


Mani

Editor

User Avatar
Posts: 6957
Rank:
Forum rank 5 out of 5
Joined: 01 Apr 04
17 October 2005 23:38 Reply (Quote this message)
PHP isn't my bag either, but it is ECMA style script, so try using double quotes instead of singles?



I used to have a handle on life, but it broke.
Tricky

User Avatar
Posts: 1655
Rank:
Forum rank 4 out of 5
Joined: 07 Apr 04
17 October 2005 23:48 Reply (Quote this message)
I'm not sure what you mean soul, [ ] arn't special characters, could you elaborate on what goes wrong.


s0uL

User Avatar
Posts: 15
Rank:
Forum rank 0 out of 5
Joined: 16 Oct 05
18 October 2005 00:37 Reply (Quote this message)
LOL it was $name = "[MPG]SENT";

id tried this already but seems i hadnt checked the Awards aspx file properly and my script was reading the wrong lines :/

Cheers guys for ur input


Any PHP wizz kids
Forum Home \ Hardware/Software Support New Thread New Reply