473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to fix my link problem

123 100+
when i test the code below on my localhost it will display the name of the url which i select from my database but while online when move my mouse to the link it will display my domain name and the link eg http//:mydomainname.com/www.thelink.com how can i fix these.

Expand|Select|Wrap|Line Numbers
  1. $result = @mysql_query("SELECT * FROM user");
  2. $line = mysql_fetch_array($result);
  3. $dweb = $line[web];
  4. $dbuz = $line[title];
  5.  
  6. echo"<a href= '$dweb' target = '_blank'>$dbuz</a>";
  7.  
Dec 6 '10 #1
1 1423
chazzy69
196 100+
My guess would be one of two things; First check that the url that you stored in your mysql database/table is correct, if so just try to echo $dweb by itself and see what outputs. The other thing that may be wrong is when writing urls make sure you use 'http://www.thelink.com' not just 'www.thelink.com' otherwise it won't point outside of your current domain.
Dec 7 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: JW | last post by:
I'm having a bit of a problem with a navigation bar in IE that was discovered when I removed a Search form from the navigation. What happened is that the links are no longer active in the blank...
3
by: VIJAY KUMAR | last post by:
Hi pals, I am using 2 web forms (pages). In first page, i have Datagrid control and on second page i have a hyper link control to the first page and Add value to the data grid/Database. ...
4
by: kevinm3574 | last post by:
I've got a link defined in my html as href="abc123.html" in a <div id="abc123"> block. The link text displays just fine but the link won't show as an available link. If I change the <div id from...
7
by: Kristof Thys via .NET 247 | last post by:
Post a new message to microsoft.public.dotnet.languages.vc http://www.dotnet247.com/247reference/default.aspx Hello, I've been struggling for weeks with this problem, I hope I find some...
4
by: Mike Woinoski | last post by:
(I'm new to VS, so please forgive me if this is a faq.) I'm writing some Java web services and need to test them with C++ clients. I can use either a Windows Form application or an MFC application....
2
by: Mitul | last post by:
Hello friends, I need some help for link redirect. I am currently working with a b2b site. I had define some rules in htaccess but due to auto append of PHPSessionID at the end of link I could...
4
by: arcimboldo | last post by:
Hello, I got a strange link problem; here are the simplest files showing the error: a.h:: #include <utility> class a{ public:
2
by: Jeff Kish | last post by:
Hi. I'm stuck using a very old c++ compiler, and I'm trying to figure out how to add a declaration so that an algorithm can be used. This is really a compiler specific problem, however I was...
0
by: paulseeker | last post by:
This is my testing... In main.php: <html> <head><title></title></head> <body> <? imclude("new.php") ?> <? include("detail.php") ?> </body> </html>
2
by: su131 | last post by:
Hello guys. I have a little problem with css on my pages - when i click on the link - the link text becomes very small, but there is no such a property for links anywhere in my css. Maybe...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.