PHP Link

This does not seem to work can someone help
The $google goes to the DB
the link has the full url (http://www.google.com)
This way I can chane the link to what ever I want, but it errors out

<?php echo "Google"; ?>

It should be
[php]<?php echo 'Google'; ?>[/php]

instead of
[php]<?php echo "Google"; ?>[/php]

However, I don’t understand what you mean it goes to the DB?

TY but the name come up not the link to the name

<?php echo 'Google'; ?> // the link part is not working

it more like this <?php echo Google; ?>

it a mysql db the http://www.google.com in the database $google[link]
click on Google and it take you to google

Show more of your code to see how exactly you pull the link into the array and maybe someone here can give you a better answer. My suspicion is you don’t totally understand anchor tags in HTML, but I could be wrong?

For example this would set the array to the link:

[php]$google[‘link’] = “http://www.google.com”;[/php]

What I gave you should work if you click on the word Google, even if you don’t click on it you should see the name of the link on some browsers on the bottom when you hover over Google.?

I personally avoid using arrays in links, I just normally use a variable.

TY for your help. It could be my fault but you have try to help me

Sponsor our Newsletter | Privacy Policy | Terms of Service