Truncate Text at Word Break


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.