aram Posted April 29, 2011 Share Posted April 29, 2011 Hi i have this code but its not working why? <title><?php $rows[title] ?></title> Is that wrong?maybe this qwestion is clear to understandSorry for any disturbance im new in php and mysql Link to comment Share on other sites More sharing options...
jeffman Posted April 29, 2011 Share Posted April 29, 2011 1. it is better practice to put your array index in quote marks, like this: $rows['title']2. your PHP statement doesn't do anything. It simply names a variable. You probably mean this:<title><?php echo $rows['title'] ?></title> Link to comment Share on other sites More sharing options...
aram Posted April 29, 2011 Author Share Posted April 29, 2011 1. it is better practice to put your array index in quote marks, like this: $rows['title']2. your PHP statement doesn't do anything. It simply names a variable. You probably mean this:<title><?php echo $rows['title'] ?></title>WorkedThank you very much that was the problem the (echo) word.i have another qwestion here can you help me:http://w3schools.invisionzone.com/index.ph...c=37753&hl=if you couldnt understand i will try to explain it to you.thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.