Jump to content
MakeWebGames

Need something to code


ignite

Recommended Posts

Re: Need something to code

can i write the script for you?

Then you rewrite :)

$rs = mysql_query("SELECT * FROM users");
echo "<table><tr><th>Name</th><th>IP</th></tr>";
while ($r = mysql_fetch_array($rs)){
echo "<tr><td>".$r['username']."</td><td>".$r['lastip']."</td></tr>"; }
echo "</table>";

 

THere XD

Link to comment
Share on other sites

Re: Need something to code

<center><form method='post' onsubmit="browse()"><input type='text' name='browser'><input type='submit' value='browse'></form>

viewing website: logo_plain.png

<iframe width=100% height=100% src='http://google.com'></iframe>

 

:-D

Link to comment
Share on other sites

Re: Need something to code

Here it is:

<?php
session_start();
echo "<center><form method='post' onsubmit=\"browse()\"><input type='text' name='browser'><input type='submit' value='browse'></form>
";
if (!$_POST){
$loc = "http://google.com";
}
elseif ($_POST){ 
$loc = $_POST['browser'];}
echo "viewing website: ";
if ($loc == "http://google.com" || $loc == "http://www.google.com"){
echo "[img=http://www.google.co.za/intl/en_com/images/logo_plain.png]";}
else {
echo $loc;}
echo "
<iframe width=100% height=100% src='$loc'></iframe>";
?>
Link to comment
Share on other sites

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.   Paste as plain text instead

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