|
![]() Een overzicht van projecten die Autoschade Wielhoven uitvoerde: Here we go!!!! datum: 08 april 2013 ![]() ![]() Een overzicht van projecten die Autoschade Wielhoven uitvoerde: $select = mysql_query("SELECT * FROM $table_containing_news WHERE active='1'"); while ( $row = mysql_fetch_array($select) ) { $id = $row["id"]; $title = $row["title"]; $value_month = substr( $row['date'], 5, -3 ); if ( $value_month == "01" ) { $month_name = "jan"; } if ( $value_month == "02" ) { $month_name = "feb"; } if ( $value_month == "03" ) { $month_name = "mrt"; } if ( $value_month == "04" ) { $month_name = "apr"; } if ( $value_month == "05" ) { $month_name = "mei"; } if ( $value_month == "06" ) { $month_name = "jun"; } if ( $value_month == "07" ) { $month_name = "jul"; } if ( $value_month == "08" ) { $month_name = "aug"; } if ( $value_month == "09" ) { $month_name = "sep"; } if ( $value_month == "10" ) { $month_name = "okt"; } if ( $value_month == "11" ) { $month_name = "nov"; } if ( $value_month == "12" ) { $month_name = "dec"; } $date = substr( $row['date'], 8 ) . " " . $month_name . " " . $value_year = substr( $row['date'], 0, -6 ); echo "bekijk » $date - $title "; } // closing connection to the database mysql_close(); ?> |