Hello everyone,I am a beginner to php and nodejs. My situation is that I want to use php in my ejs file to display data in my webpage. This is my code for data display:$selectSQL = 'SELECT id FROM temp'; if( mysql_num_rows( $selectRes )==0 ){ echo ''; }else{ while( $row = mysql_fetch_assoc( $selectRes ) ){ echo "\n"; } }But I think I am missing something in my file. Can someone give me an idea on how to use php in an ejs file?Thanks
Submitted April 01, 2017 at 11:50PM by theflyingmonkey3
No Rows Returned |
{$row['id']} |
No comments:
Post a Comment