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 ?

...

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>

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.