Jump to content

how should this line be??


seany123

Recommended Posts

Forgot to escape the first double quote before the username variable.

<?php
echo "<b><font color=\"$color\"><a href='../profile.php?id=\"$username\"'></b></td>";
?>

 

this works too but i prefer to have definition

 

 

actualy thats still wrong

 

<a href='../profile.php?id=\"$username\"'>    WRONG

 

CORRECT

<a href=\"../profile.php?id=$username\">

<a href=\"../profile.php?id=".$username."\">

<a href=\"../profile.php?id={$username}\">

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.