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

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

 

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.