Jump to content

[SOLVED] Link isn't working...


ryeman98

Recommended Posts

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

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.