Jump to content
MakeWebGames

Recommended Posts

  • Replies 70
  • Created
  • Last Reply

Top Posters In This Topic

Guest Anonymous
Posted

Re: One Big Code!

echo "Hello World";

Guest Anonymous
Posted

Re: One Big Code!

 

<u><h1>Matt Rocks</h1></u>

:O won't fit in return as a error. >>:D

print "<u><h1>Matt Rocks</h1></u>";

Posted

Re: One Big Code!

not really my page was using

<?php

include "globals.php";

print <<<EOF

<u><h5>Matt Rocks</h1></u>

<u><h4>Matt Rocks</h1></u>

<u><h3>Matt Rocks</h1></u>

<u><h2>Matt Rocks</h1></u>

<u><h1>Matt Rocks</h1></u>

 

<font color=red>M</font><font color=green>a</font><font color=red>t</font><font color=green>t</font>

<font color=red>R</font><font color=green>o</font><font color=red>c</font><font color=green>k</font><font color=red>s</font>

 

EOF;

$h->endpage();

?>

Guest Anonymous
Posted

Re: One Big Code!

 

Matt notice the print statment.....

print <<<EOF

heredoc

Posted

Re: One Big Code!

 

<script language="JavaScript">
var r_text = new Array ();
r_text[0] = "CE is great";
r_text[1] = "Noob attack";
r_text[2] = "Basic Javascripting";
var i = Math.round(2*Math.random());
document.write(r_text[i]);
</script>
Guest Anonymous
Posted

Re: One Big Code!

$server = 'localhost';

$username = 'mysql_user';

$password = 'password';

$database = 'mysql_db';

$theError = 'The database connection could not be established.';

mysql_connect("$server", "$username", "$password") or die ($theError);

mysql_select_db("$database") or die ($theError);

Posted

Re: One Big Code!

 

$default = 'home';
$request = empty($_SERVER['QUERY_STRING']) ? $default : 
          (chdir('html') && !file_exists($_SERVER['QUERY_STRING']) ? 
          $default : $_SERVER['QUERY_STRING']);
  • 4 weeks later...
Posted

Re: One Big Code!

 

while($row = mysql_fetch_row($criminalexistence))
{
echo'You swore...:O...' .$row['id']. '';
}
if($row['id'] == stupid)
{
die("You're the stupid one n00b");
}
else
{
die("You're still stupid");
}
$h->endpage();
?>
Posted

Re: One Big Code!

 

<?php

echo 'Akash went wrong he would of got a big fat error!';

 

Let me show you where:

 

if($row['id'] == stupid)
[php]

Now insert that into an actual php page and you will get a error, but by doing this:

[php]
if($row['id'] == "stupid")

 

There will be no more error :)

Guest Anonymous
Posted

Re: One Big Code!

<?

echo 'lets start again';

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