Help with problem in the address bar.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rigy73
Forum Newbie
Posts: 3
Joined: Wed Mar 10, 2010 10:46 am

Help with problem in the address bar.

Post by rigy73 »

Hey guys i am having a problem with my script,
the index page loads just fine but when i click on any other function
like search something goes wrong. The page that should open up sud be

Code: Select all

http://www.domain.com/search.php
but this page tries to load

Code: Select all

http://www.domain.com/www.domain.com/search.php
can anybody tell me what is the error in my script.
Here is the website

Code: Select all

http://www.megastuffs.com
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Help with problem in the address bar.

Post by AbraCadaver »

In your hrefs, you either need to put the full URL with http:// or remove the http://www.megastuffs.com/.

So either:

http://www.megastuffs.com/search.php

or

search.php
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply