conan318 Posted December 30, 2011 Share Posted December 30, 2011 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>"; ?>' Quote Link to comment https://forums.phpfreaks.com/topic/254058-passing-variable-to-next-page-something-strange/ Share on other sites More sharing options...
trq Posted December 30, 2011 Share Posted December 30, 2011 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;' />"; Quote Link to comment https://forums.phpfreaks.com/topic/254058-passing-variable-to-next-page-something-strange/#findComment-1302423 Share on other sites More sharing options...
conan318 Posted December 30, 2011 Author Share Posted December 30, 2011 That will do it lol thanks Quote Link to comment https://forums.phpfreaks.com/topic/254058-passing-variable-to-next-page-something-strange/#findComment-1302426 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.