href in mysql databse
10 Message(s) by 7 Author(s) originally posted in php sql
| From: Matt Barbadian |
Date: Tuesday, August 21, 2007
|
I have a html
link in a mysql
data base
field that is getting queried
using PHP. My problem is when the page is rendered, the link displays
the html not an actual clickable link. Any help'd be greatly
appreciated.
Thanks
| From: ZeldorBlat |
Date: Tuesday, August 21, 2007
|
wrote in message:
I have a html link in a mysql database field that is getting queried
using PHP. My problem is when the page is rendered, the link displays
the html not an actual clickable link. Any help'd be greatly
appreciated.
Thanks
Tough to say what the problem might be -- you have not provided any of
your code.
| From: Captain Paralytic |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
> I have a html link in a mysql database field that is getting queried
> using PHP. My problem is when the page is rendered, the link displays
> the html not an actual clickable link. Any help'd be greatly
> appreciated.
> Thanks
Tough to say what the problem might be -- you have not provided any of
your code.
Seconded
| From: mbarbs |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
wrote in message:
> > I have a html link in a mysql database field that is getting queried
> > using PHP. My problem is when the page is rendered, the link displays
> > the html not an actual clickable link. Any help'd be greatly
> > appreciated.
> > Thanks
> Tough to say what the problem might be -- you have not provided any of
> your code.
Seconded
This is the PHP i'm using to
talk with the mysql database:
<?php
require_once('../../includes/scripts/db_connector.php');
$connector = new DB_Connector();
$result = $connector -> query('SELECT * FROM questions WHERE topic_id
= 0');
echo '
<span class="title">Questions: Top 5
</span>';
echo '
<div class="title_rule"></div>';
while($row = $connector -> fetchArray($result)) {
echo '
<div class="question">'.$row['question'].'
</div>';
echo nl2br('
<div class="answer">'.$row['answer'].'
</div>');
echo '
<div id="faq_bttn" class="faq_more"></div>';
echo '
<div class="dotted_rule"></div>';
}
?>
The problem is I have this for example
<a href="link.html">Link
</a> in
one of the fields in the mysql database. When the page loads it shows
the html
<a href="link.html">Link
</a> NOT a clickable link.
| From: J.O. Aho |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
wrote in message:
wrote in message:
I have a html link in a mysql database field that is getting queried
using PHP. My problem is when the page is rendered, the link displays
the html not an actual clickable link. Any help'd be greatly
appreciated.
Thanks
Tough to say what the problem might be -- you have not provided any of
your code.
Seconded
This is the PHP i'm using to talk with the mysql database:
<?php
require_once('../../includes/scripts/db_connector.php');
$connector = new DB_Connector();
$result = $connector -> query('SELECT * FROM questions WHERE topic_id
= 0');
echo '
<span class="title">Questions: Top 5
</span>';
echo '
<div class="title_rule"></div>';
while($row = $connector -> fetchArray($result)) {
echo '
<div class="question">'.$row['question'].'
</div>';
echo nl2br('
<div class="answer">'.$row['answer'].'
</div>');
echo '
<div id="faq_bttn" class="faq_more"></div>';
echo '
<div class="dotted_rule"></div>';
}
?>
The problem is I have this for example
<a href="link.html">Link
</a> in
one of the fields in the mysql database. When the page loads it shows
the html
<a href="link.html">Link
</a> NOT a clickable link.
The problem is how you
store the value to the database, you most likely used
htmlentities() or a simialr
function on the
string before you stored it, which
makes it to be displayed as it's written and not parsed by the
browser as
html-code.--
//Aho
| From: mbarbs |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
wrote in message:
wrote in message:
wrote in message:
I have a html link in a mysql database field that is getting queried
using PHP. My problem is when the page is rendered, the link displays
the html not an actual clickable link. Any help'd be greatly
appreciated.
Thanks
> Tough to say what the problem might be -- you have not provided any of
> your code.
Seconded
> This is the PHP i'm using to talk with the mysql database:
> <?php
> require_once('../../includes/scripts/db_connector.php');
> $connector = new DB_Connector();
> $result = $connector -> query('SELECT * FROM questions WHERE topic_id
> = 0');
> echo '<span class="title">Questions: Top 5</span>';
> echo '<div class="title_rule"></div>';
> while($row = $connector -> fetchArray($result)) {
> echo '<div class="question">'.$row['question'].'</div>';
> echo nl2br('<div class="answer">'.$row['answer'].'</div>');
> echo '<div id="faq_bttn" class="faq_more"></div>';
> echo '<div class="dotted_rule"></div>';
> }
> ?>
> The problem is I have this for example <a href="link.html">Link</a> in
> one of the fields in the mysql database. When the page loads it shows
> the html <a href="link.html">Link</a> NOT a clickable link.
The problem is how you store the value to the database, you most likely used
htmlentities() or a simialr function on the string before you stored it, which
makes it to be displayed as it's written and not parsed by the browser as
html-code.
--
//Aho
Aho,
How'd you recommend the best way to do this?
| From: J.O. Aho |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
The problem is I have this for example
<a href="link.html">Link
</a> in
one of the fields in the mysql database. When the page loads it shows
the html
<a href="link.html">Link
</a> NOT a clickable link.
The problem is how you store the value to the database, you most likely used
htmlentities() or a simialr function on the string before you stored it, which
makes it to be displayed as it's written and not parsed by the browser as
html-code.
How'd you recommend the best way to do this?
If you use a form to input the data, you may need to use
html_entity_decode() to get rid of all htm encoded characters (you do not want
those)
Before you store data into the database, you want to
run addslashes(), this
prevents problems with " or ' in the strings.
And when you fetched the data from the database, use stripslashes(), before
you echo things out.
--
//Aho
| From: mbarbs |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
wrote in message:
> The problem is I have this for example <a href="link.html">Link</a> in
> one of the fields in the mysql database. When the page loads it shows
> the html <a href="link.html">Link</a> NOT a clickable link.
The problem is how you store the value to the database, you most likely used
htmlentities() or a simialr function on the string before you stored it, which
makes it to be displayed as it's written and not parsed by the browser as
html-code.
> How'd you recommend the best way to do this?
If you use a form to input the data, you may need to use
html_entity_decode() to get rid of all htm encoded characters (you do not want
those)
Before you store data into the database, you want to run addslashes(), this
prevents problems with " or ' in the strings.
And when you fetched the data from the database, use stripslashes(), before
you echo things out.
--
//Aho
Thanks Aho. But for right now i'm manually entering the data into
mysql.
| From: Paul Lautman |
Date: Wednesday, August 22, 2007
|
wrote in message:
wrote in message:
wrote in message:
The problem is I have this for example <a
href="link.html">Link</a> in one of the fields in the mysql
database. When the page loads it shows the html <a
href="link.html">Link</a> NOT a clickable link.
The problem is how you store the value to the database, you most
likely used htmlentities() or a simialr function on the string
before you stored it, which makes it to be displayed as it's
written and not parsed by the browser as html-code.
How'd you recommend the best way to do this?
If you use a form to input the data, you may need to use
html_entity_decode() to get rid of all htm encoded characters (you
do not want those)
Before you store data into the database, you want to run
addslashes(), this prevents problems with " or ' in the strings.
And when you fetched the data from the database, use stripslashes(),
before you echo things out.
Forget the stripslashes!
| From: Tom |
Date: Thursday, August 23, 2007
|
wrote in message...
I have a html link in a mysql database field that is getting queried
using PHP. My problem is when the page is rendered, the link displays
the html not an actual clickable link. Any help'd be greatly
appreciated.
Thanks
I'm guessing some special characters we likely converted, such as "
<" to "<
or ">" to ">". Might be how it was stored in MySQL, or maybe a function
you're passing the results through before being output.
Tom
--
NewsGuy Takes
Usenet Cellular!
Download
newsgroup MP3's to your Cell or PDA
Free Trial -
http://newsguy.com/cell phone.htm
Next Message: mySql - find and replace.
Blogs related to href in mysql databse
Magazine publishing independent motor news and reviews.
... naruto videos for sale michelle livingston ps 188 kipkay marsupials teen girl holes casey stengel trattoria branica Jack sparrow/will turner epilepsy foundation fl k sallee proxy myspace acuvue oasys
php mysql no
database selected
...
Our site isn't just for kids.
used cars for under $1000
php mysql no
database selected 92 28710355 7 thin woman free porn 966 25703462 orange and white gingham medium weight fabric bt adsl router 96 63351481 airsoft increase rate of fire asbestos los angeles dwp
...
Simplifying Security Management With Check Point's SMART ...
... indians personalized refrigerator magnet south of heaven west of hell hack crack chopper hats gran flamenco punta cana michigan detroit child chairs beam clamps eating habits ohio dog lexus nexus
php mysql database leathers 81505
...
Top 100 OpenOffice.org Search Report
Newsforge publishes a tutorial on Hooking OOo to
MySQL. “Did you know that you can connect the OpenOffice.org office suite to a
MySQL database? By combining the power of these two open source applications you can do things like .
...
Home of the funny and useful products.
diors farenheit notes naked schoolboys inca peru 92 3036 4954 29 they never love culture pdf annual report free companies ncic
database 962 272 401 71 529 evaluations free pictures of bookmarks new hampshire bagppipe band or Natural gas
...
Welcome to my awesome website! Word up, you all.
brazilian clean up tv ad 92 3015 5980 90 9224 077 041 6 recent trends in crisil melissa schafner. e5900b att telephone download of imffilter manager the stock fund that never loses money
mysql database dump chuck schaden flex shaft
...