Jump to content

No input file specified


craig1978

Recommended Posts

Hi Guys,

 

I'm sorry but to post this again but I am really struggling here. Being a newbie to all this it does take me a little longer to understand.

 

I have currently coded a search form and results page. What I would like to do is link a particular result to a details page. I have tried using the GET method but all I get in the browser is a "No input file specified". I'm not sure why.

 

Any ideas?? The ID number is displaying in the details.php page URL, but not sure if my code on details.php is GETting it properly.

 

Here is the code for the details.php:

 

<?

 

include 'Config.php';

include 'OpenDB.php';

 

 

if (isset($_GET['ID_No']));

$ID_No = $_GET['ID_No'];

//  $result=mysql_query("SELECT * FROM PersonalTrainers WHERE ID_No = '$ID_No'");

//  $row_result=mysql_fetch_assoc($result);

 

$query = "SELECT * FROM PersonalTrainers WHERE ID_No = $ID_No";

$result=mysql_query($query);

 

 

while ($row_result = mysql_fetch_assoc($result)) {

  echo "<center>$row_result['Thumbnail']</center>";

 

$Thumbnail=mysql_result($row_result,"Thumbnail");

$First_Name=mysql_result($row_result,"First_Name");

$Last_Name=mysql_result($row_result,"Last_Name");

$Email=mysql_result($row_result,"Email");

$Suburb=mysql_result($row_result,"Suburb");

$Postcode=mysql_result($row_result,"Postcode");

$Age=mysql_result($row_result,"Age");

 

echo "<center><$First_Name $Last_Name</b><br>Email: $Email<br>Suburb: $Suburb<br>Postcode: $Postcode<br>Age: $Age<br><hr><br></center>";

 

}

 

include 'CloseDB.php';

 

?>

 

Thanks

 

craig1978

Link to comment
https://forums.phpfreaks.com/topic/49641-no-input-file-specified/
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.