Jump to content

Won't display link


adamjones

Recommended Posts

Hi, I'm trying to display an iframe on my website, the source of which will depend on a link from the database. I'm using the GET method from the URL for the ID of the link, which is in the table;

 

<? include('core/dbconn.php');
$app = $_GET['id'];
$result="SELECT * FROM applications WHERE id ='$app'";
while ($row = mysql_fetch_array($result)) {

            echo $row ["link"];
   }
?>

 

I'm getting the following error;

 

The requested URL /<br /><b>Warning</b>: mysql_fetch_array() expects parameter 1 to be resource, string given in <b>/home/suvoocge/public_html/application.php</b> on line <b>34</b><br /> was not found on this server.
Link to comment
https://forums.phpfreaks.com/topic/273589-wont-display-link/
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.