Jump to content

passing variable to next page something strange


conan318

Recommended Posts

id not passing onto next page.

when i view the source code the id value is there. <a href='view_designs2.php?id='198'>

but when the next page loads there is nothing in the address bar.

 

 

 

<?php
echo "<table width='1000'  align='center'>";
$data=mysql_query("SELECT * FROM design WHERE jobno='$id' AND status!='rejected'") or die (mysql_error());
$counter = 0;
while ($info=mysql_fetch_array($data)){
  $img5=$info['name'];
  $id=$info['id'];
  $img=$info['thumbs'];

  



echo "<td>";
echo "Design By "."$img5 "."<br><br>";
echo "<a href='view_designs2.php?id='$id'><img src='../dthumbs/$img' style='text-align: center; width:250px; max-height:250px; border: solid 10px; border-radius: 5px; border-color:tan; -moz-box-shadow: 3px 3px 4px #000;
-webkit-box-shadow: 3px 3px 4px #000;
box-shadow: 3px 3px 4px #000;
-ms-filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000');
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#000000'); ''>";
echo "<br><br></td>";

$counter = $counter + 1;

if ($counter==3){
  echo "<tr>";
  $counter=0;
}
}
echo "</tr></table>";
?>'

Link to comment
Share on other sites

You have an extra quote which is making your link cutoff after the id= part.

 

echo "<a href='view_designs2.php?id=$id'><img src='../dthumbs/$img' style='text-align: center; width:250px; max-height:250px; border: solid 10px; border-radius: 5px; border-color:tan; -moz-box-shadow: 3px 3px 4px #000;' />";

 

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.