View previous topic :: View next topic |
Author |
Message |
MaThIbUs Guest
|
Posted: Sat Oct 11, 2003 8:34 am Post subject: Can anyone please fix this PHP code? |
|
|
It's just something with the ' and " but I can't see what's wrong... Help?!
Code: | info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]"][img]'.$C
URRENT_PIC_DATA["filename"]'[/img][url]'"; |
|
|
Back to top |
|
 |
MaThIbUs
Joined: 11 Oct 2003 Posts: 8
|
Posted: Sat Oct 11, 2003 8:36 am Post subject: Re: Can anyone please fix this PHP code? |
|
|
UPDATE:
It's just something with the ' and " but I can't see what's wrong... Help?!
Code: | info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]"][img]'.$CURRENT_PIC_DATA["filename"]'[/img][url]'"; |
|
|
Back to top |
|
 |
blackbook
Joined: 19 Jun 2003 Posts: 9 Location: Cacem
|
Posted: Sat Oct 11, 2003 6:25 pm Post subject: Re: Can anyone please fix this PHP code? |
|
|
Here it is, corrected
Code: | info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]".'][img]'.$CURRENT_PIC_DATA["filename"].'[/img][url]'; |
please tell if it worked...
[] _________________ Blackbook
Main weblog: http://blackbook.pt-journal.com |
|
Back to top |
|
 |
MaThIbUs
Joined: 11 Oct 2003 Posts: 8
|
Posted: Sun Oct 12, 2003 8:28 am Post subject: |
|
|
Thanks a lot! I'll try it now, and let you know! Thanks thanks thanks!
EDIT: IT WORKED!!! woooooooooooooooooo
I edited it a little, so here is the final 'script':
Code: | $info['bbCode']='[url=http://members.lycos.nl/mathibus/pictures/'.$_SERVER["SCRIPT_NAME"]."?pos=-$CURRENT_PIC_DATA[pid]".'][i
mg]'.'http://members.lycos.nl/mathibus/pictures/'.$path_to_pic.'[/img][url]';
|
Thanks again, dude! |
|
Back to top |
|
 |
MaThIbUs
Joined: 11 Oct 2003 Posts: 8
|
|
Back to top |
|
 |
|