|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
We found a code to get the image to show up but we don't understand what
$_get means. any would be appreciated -- Steve Warburton 0161 217 2200 07760 164990 Stevew@Parkforce.com |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
On 10 Jun 2008 in macromedia.dreamweaver, SteveW wrote:
> We found a code to get the image to show up but we don't understand > what $_get means. http://www.php.net/manual/en/reserved.variables.get.php > any would be appreciated Some context would ... -- Joe Makowiec http://makowiec.net/ Email: http://makowiec.net/contact.php |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
<?php
$username = ""; $password = ""; $host = "localhost"; $database = ""; @mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); @mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $id = $_GET['id']; if(!isset($id) || empty($id)){ die("Please select your image!"); }else{ $query = mysql_query("SELECT * FROM tbl_images WHERE id='".$id."'"); $row = mysql_fetch_array($query); $content = $row['image']; header('Content-type: image/jpg'); echo $content; } ?> |
|
![]() |
| Outils de la discussion | |
|
|