probably with class

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

probably with class

Post by icepack »

the code involved is:

$other = "in reply to <a href=\"$orig_id.$settings[extension]\">$orig_subject</a> posted by $orig_name on $orig_date";
createNewFile($name,$mail,$subject,$comments,$count,$date,$other,$orig_id);


i am trying to make it:

$other = "in reply to <a class="classid" href=\"$orig_id.$settings[extension]\">$orig_subject</a> posted by $orig_name on $orig_date";
createNewFile($name,$mail,$subject,$comments,$count,$date,$other,$orig_id);

but i get a script error and everything stops working
please help!
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

You have to escape your double quotes like is done with the href in that line.
The code should look like

Code: Select all

$other = "in reply to <a class=\"classid\" href=\"$orig_id.$settings[extension]\">$orig_subject</a> posted by $orig_name on $orig_date";
createNewFile($name,$mail,$subject,$comments,$count,$date,$other,$orig_id);

Greetings,
Henrie
icepack
Posts: 70
Joined: Mon Oct 15, 2007 1:38 pm

Post by icepack »

alright, you the man!
[b][color=red][url=http://ilumu.com]UK Website Design Specialists - ILUMU.COM[/url][/color][/b]
Locked