From: Yves G. <yg...@mi...> - 2005-08-14 08:09:03
|
On Saturday 13 August 2005 12:14, Thomas Andrews wrote: > Hi, Hello! > I've never done any php before, so I'm having a bit of difficulty > trying to make a tiny change to table_browse.php. All I want to do is > have a heading on top of each table column when browsing tables. Like > when you have ".explain ON" in sqlite. How would I do that ? This feature exists already in the cvs version of phpsqliteadmin, you can see the code here: http://cvs.sourceforge.net/viewcvs.py/phpsqliteadmin/phpsqliteadmin/table_browse.php?rev=1.3&view=markup The part responsible for adding the headers is here: for ($i=0; $i<$userdbh->numFields(); $i++) { print "<th>" . $userdbh->fieldName($i) . "</th>\n"; } If you plan to tinker with phpsqliteadmin, I would suggest that you check out the cvs version, it has had some changes since 0.2 best regards!, Yves > Many thanks! > Thomas > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices Agile & Plan-Driven Development * Managing Projects & Teams > * Testing & QA Security * Process Improvement & Measurement * > http://www.sqe.com/bsce5sf > _______________________________________________ > Phpsqliteadmin-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpsqliteadmin-devel -- Linux 2.6.12 #1 Sat Jul 9 23:28:04 CEST 2005 i686 10:05:30 up 1 day, 7:07, 1 user, load average: 1.76, 1.15, 1.23 |