Jump to content

[SOLVED] actually two things: ip address and adding style in php ?


jd2007

Recommended Posts

1. how do i get the ip address of the user visiting a page ?

 

2.

echo "<span><pre>  $row[0]      $row[3]    This link worked for $row[1] out of $total people.  DID THIS LINK WORK FOR YOU ? <a href='worked.php'>YES</a>      <a href='notworked.php'>NO</a> </pre> </span>";
echo "<br>";

 

i want the output above display text with gray background color...how ?

Link to comment
Share on other sites

...

i want the output above display text with gray background color...how ?

 

You will need to drop out of php and do a bit of html.

 

Like so:

 

<body bgcolor="#CCCCCC" text="#000000">

<?php
echo "wtf?  colour!  (Of a sort...)";
?>

</body>

Link to comment
Share on other sites

i don't want the page background color...i want the text to have a background color, in other words text highlight...

 

Plech.  Give me a moment.

 

<span style="background-color:#CCCCCC;">
<?php
echo "This is another paragraph";
?>
</span>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.