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>

Sorry if I didn't explain well but I switched it from to to $result and still gives me


Title:
Uploaded By:
Descrip:
Delete Approve

Click here to return

emtpy.... so its not the blank query, would it change from a row to a column using the WHERE ID?

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.