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

 

Link to comment
Share on other sites

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'>";

 

Link to comment
Share on other sites

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.