For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2005 > getting rows by an ID field or by another field in a table









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author getting rows by an ID field or by another field in a table
Eternity Records Webmaster

2005-12-06, 6:57 pm

I have a table with the fields:
CREATE TABLE `journal` (
`Date` date NOT NULL,
`subject` varchar(100) NOT NULL,
`entry` longtext NOT NULL
) TYPE=MyISAM COMMENT='Journal table';

I was wondering if I should get the rows out by an ID field of some kind or
maybe do a select on the subject? what would be the real best way? I am
trying to get the date/subject to list on a webpage in a table and then when
someone clicks on the subject (it will be a link), it will take them to a
popup window (target=_blank) and then display the whole entry
date/subject/entry. whats the best practice for that sort of thing?

thanks
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com