General Community > Scripting Help
zChat Smily Help...
eFishie:
Hello,
Can someone tell me if this code should work?
--- Code: --- $ucd = str_replace ( ":)", "<IMG SRC=\"smile.png\">", $uc );
$ucd = str_replace ( ":(", "<IMG SRC=\"sad.png\">", $uc );
$ucd = str_replace ( ";)", "<IMG SRC=\"wink.png\">", $uc );
$ucd = str_replace ( ":D", "<IMG SRC=\"lol.png\">", $uc );
$ucd = str_replace ( ":'(", "<IMG SRC=\"crying.png\">", $uc );
$ucd = str_replace ( ":/", "<IMG SRC=\"unsure.png\">", $uc );
$ucd = str_replace ( ":X", "<IMG SRC=\"sealed.png\">", $uc );
$ucd = str_replace ( "8)", "<IMG SRC=\"cool.png\">", $uc );
--- End code ---
I'm new with str_replace().
If this doesn't work, can anybody tell me what will?
Parham:
are you sure the $uc on the right shouldn't be $ucd?
eFishie:
If that's what I was doing wrong I'm going to eat myself.
Let me see here...
AAH! Dammit! It works! THanks, Parham.
Now I have to eat myself! :'(
Anyways, see zChat here: http://ballistix.xgt.us/zchat
Parham:
works great, good job...
* Parham is waiting for php piranha (how ironic your name) to chew off his own leg :P
eFishie:
Fish don't have legs, Mister PHP Expert.
Navigation
[0] Message Index
[#] Next page
Go to full version