At 5:39 -0800 3/19/03, Karthikeyan Balasubramanian wrote:
Hi,

I m using the following query

SELECT id,
       subject,
       news,
       date_format(date, '%m/%d/%Y %h:%i %p') AS date,
       author,
       link
    FROM news
    ORDER BY id DESC LIMIT 5

heres my table structure

CREATE TABLE news (������������������������������������������������������
   id int(10) unsigned DEFAULT '0' NOT NULL auto_increment,��������������
   subject varchar(50) NOT NULL,�����������������������������������������
   news blob NOT NULL,���������������������������������������������������
   date datetime DEFAULT '0000-00-00' NOT NULL,��������������������������
   author varchar(50) NOT NULL,������������������������������������������
   link varchar(150),����������������������������������������������������
   PRIMARY KEY (id)������������������������������������������������������
  );�����

heres the output i get in my web page

3 Test2 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan
2 Test1 [EMAIL PROTECTED] 03/19/2003 06:28 PM karthikeyan

Can i tweak the query so that i can display BLOB data properly.

Possibly, but you specify neither what's wrong the the values as shown above, or how you want them to be displayed, so I see no way to answer your question without additional information.




Have a great day.


Karthikeyan.
--
  Karthikeyan Balasubramanian
  [EMAIL PROTECTED]


--
Paul DuBois
http://www.kitebird.com/
sql, query

---------------------------------------------------------------------
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



Reply via email to