Click here to Skip to main content
15,614,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to showing news scroling in Index.php but, I am showing the code in my page. Very funny.
$query="select * from newsroom order by nwsroom_date desc limit 0,4";


list($year, $month, $day) = preg_split('/[: -]/', $e_dat1);
//list ($year, $month, $day) = split ('[-./]', $e_dat1);

$homenews .='<a class=news href=news_detail.php?nid='.$row->newsroom_id.'>'.$row->nwsroom_title.'</a><br>'.$e_dat.'<br><br>';

Please, help me how can I do it ?
Thank you

1 solution

Enable PHP short tags in your php.ini


or start your code with

also it could be possible, that you don't have php configured at all.
Share this answer
UL UL ALBAB 1-Aug-13 8:19am    
Thank You...
UL UL ALBAB 1-Aug-13 8:19am    
Perfect answer. Thanks Again.
UL UL ALBAB 1-Aug-13 8:21am    
I want to learn Symphony Framework in PHP wins 8. Can you all help me ?
Vyacheslav Voronenko 1-Aug-13 8:24am    
I believe you have to start from reading and your own experiments.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900