Jump to content

php creating weird source code on client side


ob1wan

Recommended Posts

I wrote the script and the wierd part is some links work others dont

 

echo "echo "<TR bgcolor=".$evenOdd."><TD><a onClick=\"window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=".$row['Name']."', 'Gather',  'width=800, height=800') \" HREF='#' onmouseover=\"document.card.src='cards/".$row['Edition']."/".$row['Name'].".jpg'\">".$row['Name']."</a></TD><TD align='center'>  ".$row['Edition']."  </TD><TD align='center'><font color=''> ".$row['Color']." </font></TD><TD >".$row['Type']."</TD><TD align='right'>";

 

ie.....

<a onclick="window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=Elemental Token', 'Gather',  'width = 800, height = 800') " href="#" onmouseover="document.card.src='cards/Conflux/Elemental Token.jpg'">Elemental Token</a>

works fine but it prints a lot of them

 

<a onclick="window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=Elder

 

Mastery', 'Gather',  'width = 800, height = 800') " href="#" onmouseover="document.card.src='cards/Conflux/Elder

 

Mastery.jpg'">Elder

 

Mastery</a>

 

it's in a loop and i don't understand what i can do to force the way it prints the source code for the client

 

echo  "<TR bgcolor=".$evenOdd."><TD><a onClick=\"window.open('http://beta.gatherer.wizards.com/Pages/Card/Details.aspx?name=".$row['Name']."', 'Gather',  'width=800, height=800') \" HREF='#' onmouseover=\"document.card.src='cards/".$row['Edition']."/".$row['Name'].".jpg'\">".$row['Name']."</a></TD><TD align='center'>  ".$row['Edition']."  </TD><TD align='center'><font color=''> ".$row['Color']." </font></TD><TD >".$row['Type']."</TD><TD align='right'>";

 

Archived

This topic is now archived and is closed to further replies.

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