Jump to content

[SOLVED] Is it possible to add symbols without the php 'breaking'?


Recommended Posts

I get this error when i change from this;

<td valign=\"bottom\" halign=\"right\">$price</td>

to;

<td valign=\"bottom\" halign=\"right\">£$price</td>

is there any way to surpass this or a solution?

Thanks lots!

Sorry special here forgot to say the error;

Warning: Illegal or truncated character in input: offset 40

Erm well im adding it all to a variable... Heres the script;

$display_block .= 
"<table width=800 columns=4 cellspacing=5 cellpadding=3 border=\"5\" 
bordercolor=\"orange\">
<tr>
<td rowspan=\"2\"><img src=\"images/$picture\" width=\"10\"
height=\"10\" align = \"center\"></td>
<td Valign=\"top\" halign=\"left\"><a href = \"$id.html\"><strong>
<font color=black size=5>
$title</font>
</strong></a></td><td valign=bottom>    Gender: $sex </td>
<td width=110 align= \"center\">$price</td>
</tr>
<tr>
<td halign = \"left\">$brand</td>
<td halign = \"center\">$notes</td>
<td halign = \"right\" valign=\"bottom\"><font size=2> Ref number = $id</font></td>
</tr>
</table>
<br>
<br>
";

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.