Jump to content

Getting title page from mysql


aram
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...