Jump to content

Getting title page from mysql


aram

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...