Jump to content

error in image display coding for database


Spraban9
Go to solution Solved by AyKay47,

Recommended Posts

     <?php
include("include/connection.php");

	$catergory = $_POST['catergory'];
	$price= $_POST['price'];
if(! $conn )
{
  die('Could not connect: ' . mysql_error());
}
$sql = "SELECT * FROM upload where catergory ='$catergory'and price = '$price'";

mysql_select_db('vas');
$retval = mysql_query( $sql, $conn );
if(! $retval )
{
  die('Could not get data: ' . mysql_error());
}
while($row = mysql_fetch_assoc($retval))
{
   echo "TITLE :{$row['title']}  <br> ".
         "CATERGORY : {$row['catergory']} <br> ".
         "DESCRIBION : {$row['des']} <br> ".
		    "--------------------------------<br>".
		 "CONTACT NO:{$row['phone']}  <br> ".
         "ADDRESS : {$row['address']} <br> ".
         "CITY : {$row['city']} <br> ".
		    "--------------------------------<br>".
			"POST DATE :{$row['postdate']}  <br> ".
         "PRICE : {$row['price']} <br> ".
         "{$row['image']} <br> ".
		    "--------------------------------<br>";
}
mysql_free_result($retval);
echo "Fetched data successfully\n";
mysql_close($conn);
?> 

hi friends

 

i get this output for this coding, image not display .

"TITLE :van sale

CATERGORY : mp

DESCRIBION : asssssssssswwwww

--------------------------------

CONTACT NO:778485956

ADDRESS : kokuvil west, kokuvil

CITY : colombo

--------------------------------

POST DATE :2013-03-12

PRICE : 0

JFIFC !"$"$C" }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr $4% &'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ?;FN)`GJ_03{}k<?bΊY2˹B)eTa zUx^H\Ku vGTRVZԭՑXБk>+H!뷗Uo.> VB.~ly'{42/QelmݠC}i\G,xPk|Q^%EN8sFp8 °NS]40izRb櫪Oe <EIyOIS9qϷ0W*eOzZ`Ǟ8C"M/H\78NAswpG2z '"

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.