Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-13-2004, 07:44 PM
bw
Unregistered

Posts: n/a

link problem

[code:1:0971e54d64]<?
mysql_connect("localhost","username ","pass");
mysql_select_db("test");

$search=$_GET["search"];
$result = mysql_query("SELECT * FROM cheaterlist WHERE pcid LIKE '%$search%'");

while($r=mysql_fetch_array($result))
{

$pcid=$r["pcid"];
$playername=$r["playername"];
$statlink=$r["statlink"];

echo "<table border=1 width=100% align=center><tr><td align=left WIDTH=14%>$pcid</td><td align=left WIDTH=10%>$playername</td><td align=left WIDTH=80%>$statlink</td></tr></table>";
}
?>[/code:1:0971e54d64]

this is the code in my results.php but my problem is in this part :

[code:1:0971e54d64]echo "<table border=1 width=100% align=center><tr><td align=left WIDTH=14%>$pcid</td><td align=left WIDTH=10%>$playername</td><td align=left WIDTH=80%>$statlink</td></tr></table>";[/code:1:0971e54d64]

how do i make [code:1:0971e54d64]<td align=left WIDTH=80%>$statlink</td>[/code:1:0971e54d64] turn into a link to the players stat page? if i put <a href="$statlink">click here</a> it makes my result page not return anything just be a plain white page... i think its because of the " in it but i cant seem to figure out a way around this :cry:

this is for the return search of a mysql database if that helps at all...
Reply With Quote
  #2  
Old 11-20-2004, 01:26 PM
PHP-Largo
Unregistered

Posts: n/a

Re: link problem

[quote:352c415213="bw"][code:1:352c415213]<?
mysql_connect("localhost","username ","pass");
mysql_select_db("test");

$search=$_GET["search"];
$result = mysql_query("SELECT * FROM cheaterlist WHERE pcid LIKE '%$search%'");

while($r=mysql_fetch_array($result))
{

$pcid=$r["pcid"];
$playername=$r["playername"];
$statlink=$r["statlink"];

echo "<table border=1 width=100% align=center><tr><td align=left WIDTH=14%>$pcid</td><td align=left WIDTH=10%>$playername</td><td align=left WIDTH=80%>$statlink</td></tr></table>";
}
?>[/code:1:352c415213]

this is the code in my results.php but my problem is in this part :

[code:1:352c415213]echo "<table border=1 width=100% align=center><tr><td align=left WIDTH=14%>$pcid</td><td align=left WIDTH=10%>$playername</td><td align=left WIDTH=80%>$statlink</td></tr></table>";[/code:1:352c415213]

how do i make [code:1:352c415213]<td align=left WIDTH=80%>$statlink</td>[/code:1:352c415213] turn into a link to the players stat page? if i put <a href="$statlink">click here</a> it makes my result page not return anything just be a plain white page... i think its because of the " in it but i cant seem to figure out a way around this :cry:

this is for the return search of a mysql database if that helps at all...[/quote:352c415213]


make it <a href=\"$statlink\">$statlink</a>
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Link BADDOG General Chat 8 01-06-2005 08:57 AM
D-Link problem Gen.Maximus*RGW Tech Support 6 09-20-2004 11:53 AM
Link FLASH-SSO- General Chat 0 07-28-2004 07:04 PM
Link *M*2 General Chat 5 01-14-2004 08:54 AM
link for ICQ# fhqwgads Web design and Programming 3 04-23-2003 09:47 PM


All times are GMT -5. The time now is 04:56 AM.




Powered by vBulletin®