Posted By

pootify on 04/07/11


Tagged

php text truncate


Versions (?)

Truncate Text at Word Break


 / Published in: PHP
 

  1. $query = "select UNIX_TIMESTAMP(date_field) as mydate from mytable where 1=1";
  2. $records = mysql_query($query) or die(mysql_error());
  3. while($row = mysql_fetch_array($records))
  4. {
  5. echo $row;
  6. }

Report this snippet  

You need to login to post a comment.