RE: [PHP-WIN] dates

2002-11-05 Thread Asendorf, John
Actually, you'd probably want to do that in the SQL for whatever database you're using. i.e. ORDER BY story_date LIMIT 4 - John Asendorf - [EMAIL PROTECTED] Web Applications Developer http://www.lcounty.com - NEW FEATURES ADDED DAILY! Licking County, Ohio, USA 740-349-3631

RE: [PHP-WIN] dates

2002-10-04 Thread Rich Gray
Tim In your select statment you have labeled the returned column as date yet your mysql_fetch_array uses the label 'tutdate' - the labels don't match... To fix it, either do this... $query = "SELECT DATE_FORMAT(tutdate, '%b-%e %l%p') as tutdate FROM tutorial_table"; or do this ... $vardate =

Re: [PHP-WIN] dates

2002-10-04 Thread Luis Moreira
Tim, This simple script works $row = "abcd\efg"; $r1 = stripslashes($row); print "NO STRIP >$row< "; print "STRIP >$r1< "; And gives the output NO STRIP >abcd\efg< STRIP >abcdefg< What do you mean by "doesn't work"? Have you checked if you are stripping an empty string, for instance ?