Jump to content

echo links stored in the database


swampone

Recommended Posts

I can print any info from my database to the screen but the links i have stored in the rows will not print. Im sure it has something to do with the special characters that make up a link. I think escaping the characters will help, but i have tried different ways to do it and cant get any to work.

 

heres my test code

 

<?php

 

include 'config/db_connect.php';

 

$search ="play";

 

$query ="SELECT meta, link FROM videos WHERE meta LIKE '%$search%'";

 

$result = mysql_query($query);

 

$row = mysql_fetch_row($result);

 

$meta = $row[0];

$link = $row[1];

 

 

echo $meta;

echo $link;

?>

Link to comment
https://forums.phpfreaks.com/topic/196732-echo-links-stored-in-the-database/
Share on other sites

Ok, i viewed the source in chrome and then i viewed it in firefox. It shows to link in the source firefox file, but not in the chrome. Also, although i can see it in the source, it not showing on the page.

 

here is the source from firefox.

 

Roleplay With Eve Angel00:17:21<a href="http://www.pornhub.com/view_video.php?viewkey=2134714177" class="title" titl

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.