ryeman98 Posted June 30, 2007 Share Posted June 30, 2007 Ok, so the link is supposed to go to editCloth.php?edit=name name is going to be the pet's name that will be pulled out of the database... but that's beside the point. The code I have here is editClothes.php and instead of the link sending the admin to editCloth.php, it stays at editClothes.php Any ideas? <?php $pagetitle = "xxxxxxxxxxx"; include($_ENV['SITE_HTMLROOT']."/header.php"); require($_ENV['SITE_HTMLROOT']."/includes/dbconnect_class.php"); $db = new DB; $sPHPSELF = $_SERVER['PHP_SELF']; ?> <h1>Edit Clothing</h1> <?php // Display the list $query = mysql_query("SELECT * FROM CustomisationClothes ORDER BY name") or die(mysql_error()); while($result = mysql_fetch_array($query)) { echo "<a href\"/editCloth.php?edit=".$result['name']."\">".$result['name']."</a><br />"; } // End while ?> <?php include($_ENV['SITE_HTMLROOT']."/footer.php"); ?> Link to comment https://forums.phpfreaks.com/topic/57891-solved-link-isnt-working/ Share on other sites More sharing options...
pocobueno1388 Posted June 30, 2007 Share Posted June 30, 2007 Your forgot the "=" sign. change this: echo "<a href\"/editCloth.php?edit=".$result['name']."\">".$result['name']."</a><br />"; To: echo "<a href=\"/editCloth.php?edit=".$result['name']."\">".$result['name']."</a><br />"; Link to comment https://forums.phpfreaks.com/topic/57891-solved-link-isnt-working/#findComment-286860 Share on other sites More sharing options...
ryeman98 Posted June 30, 2007 Author Share Posted June 30, 2007 Your forgot the "=" sign. change this: echo "<a href\"/editCloth.php?edit=".$result['name']."\">".$result['name']."</a><br />"; To: echo "<a href=\"/editCloth.php?edit=".$result['name']."\">".$result['name']."</a><br />"; I hate myself. Link to comment https://forums.phpfreaks.com/topic/57891-solved-link-isnt-working/#findComment-286862 Share on other sites More sharing options...
pocobueno1388 Posted June 30, 2007 Share Posted June 30, 2007 Haha, happens to the best of us Link to comment https://forums.phpfreaks.com/topic/57891-solved-link-isnt-working/#findComment-286863 Share on other sites More sharing options...
corbin Posted June 30, 2007 Share Posted June 30, 2007 I do stuff like that all the time.... Always takes me forever to find stuff like that too lol Link to comment https://forums.phpfreaks.com/topic/57891-solved-link-isnt-working/#findComment-286865 Share on other sites More sharing options...
ryeman98 Posted June 30, 2007 Author Share Posted June 30, 2007 lol true. I feel like such a tool though Link to comment https://forums.phpfreaks.com/topic/57891-solved-link-isnt-working/#findComment-286873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.