Jump to content

[SOLVED] Problem not displaying from databse


pspfreak101

Recommended Posts

I can't figure out why its not displaying should be grabbing from row of the id number and displaying it or do I need to add something else to it?

 

<?php
//****************************************
//AppWarez 2008//
//****************************************
require('connection.php');
require('header.php');

$id = $_GET['id'];
?>

<div id="Main"> 

<?

//delete entrie
if ($_GET['id']) {
if ($row["admin"] == "1") {

$query = 
"SELECT * FROM downloads " .
"WHERE ID=$id";

$app = $row["app"];
$uploadby = $row["uploadby"];
$decrip = $row["descrip"];

$result = mysql_query($query);

if(!$result) { 
                
	echo "Your query failed. " . mysql_error();
} else {

	echo("<P>Title: $app<br>" .
          "Uploaded By: $uploadby<br>" .
	  "Descrip: $descrip<br>" .
	  "<A HREF='entriedelete.php?id=$id'>" .
           "Delete</A> " .
	   "  <A HREF='entrieapprove.php?id=$id'>" .
           " Approve </A></P>");
}
  }
}
?>
    <br />
<p><a href=index.php?action=admin> Click here to return</a></p>
</div>
</div>
</div>

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.