Visa ett inlägg
Oläst 2008-07-27, 21:53 #3
mcfluff mcfluff är inte uppkopplad
Flitig postare
 
Reg.datum: Dec 2007
Inlägg: 477
mcfluff mcfluff är inte uppkopplad
Flitig postare
 
Reg.datum: Dec 2007
Inlägg: 477
Citat:
Originally posted by Drew@Jul 27 2008, 21:39
$sql = "SELECT LEFT('description', 25) FROM page_content WHERE status='online' ORDER BY id DESC LIMIT 5";

eller

<?php echo substr($record->description, 0, 25); ?>
Tack för ett snabbt svar!
mcfluff är inte uppkopplad   Svara med citatSvara med citat