View Single Post
Old 12-04-2012, 04:11 PM   PM User | #4
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
You just echo any data in the array wherever you want as Junsee pointed out.

PHP Code:
include_once('mysql.php');  

    
$sql "SELECT * FROM image; ";

while (
$row mysql_fetch_array ($rs)){
        
$id $row['id'];
        
$alt $row['alt'];
        
$name $row['name'];
        
$title $row['title'];
        
$description $row['description'];

      echo 
"Name : ".$name;
    
      echo 
"title : ".$title;
           
      echo 
'Image: \r\n<img src="getimage.php?id=' $id '" alt="' $alt '" title="' $name  .'"/>  <br />';
    
echo 
"Description : ".$description;
        
       
        
    } 
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk

Last edited by Redcoder; 12-04-2012 at 04:14 PM..
Redcoder is offline   Reply With Quote