November 16, 2024, 12:32:04 PM

1,531,348 Posts in 46,734 Topics by 1,523 Members
› View the most recent posts on the forum.


<?php include(submit.php); ?>

Started by Feynman, June 18, 2007, 02:37:39 PM

previous topic - next topic

0 Members and 1 Guest are viewing this topic.

Go Down

Feynman

Code Select
<?php
$con 
mysql_connect("mysql","sup","omg");
if (!
$con)
  {
  die(
'Could not connect: ' mysql_error());
  }

mysql_select_db("3106_ncl"$con);

$title $_POST["title"];
$postcontent $_POST["content"];
$content nl2br($postcontent);
$time date('g:i A F j, Y');

mysql_query("INSERT INTO stuff (title, content, time)
VALUES ('
$title','$content','$time')");

mysql_close($con);

echo <<<EOF
Thanks, d00d.
<br /><br />
<a href="manage.php">Go back</a> or to the <a href="index.php">index</a>.
EOF;
?>

anus

dicks

ncba93ivyase


Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Feynman

Quote from: GCD333 on June 18, 2007, 02:38:12 PM
Also, cocks.


Code Select
<?php

if ("$post==SUX")
    echo 
"FAGGOT";
else
    echo 
"wut";
?>



Quote from: Lawlz on June 18, 2007, 02:38:57 PM
PHP looks so easy. caterpie;


That's what I said before I found out it wasn't. gonk;

ncba93ivyase

Quote from: Bassir on June 18, 2007, 02:39:56 PM
That's what I said before I found out it wasn't. gonk;
It seems just like Applescript. The only difference I can see is that PHP requires those little cash symbols and question marks.

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Feynman

Quote from: Lawlz on June 18, 2007, 02:41:30 PM
It seems just like Applescript. The only difference I can see is that PHP requires those little cash symbols and question marks.


"Seems".

ncba93ivyase

Quote from: Bassir on June 18, 2007, 02:46:40 PM
Quote from: Lawlz on June 18, 2007, 02:41:30 PM
It seems just like Applescript. The only difference I can see is that PHP requires those little cash symbols and question marks.


"Seems".
Yes, there are minor differences, but I'm sure I could pick it up fairly easily.

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Feynman

WHEN ARE WE GOING TO GET THAT SITE ON THE ROOT DIRECTORY WHERE IT BELONGS?

ncba93ivyase

Quote from: Bassir on June 18, 2007, 02:50:08 PM
WHEN ARE WE GOING TO GET THAT SITE ON THE ROOT DIRECTORY WHERE IT BELONGS?
NO IDEA WHAT YOU'RE TALKING ABOUT, BUT OKAY.

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Feynman

Quote from: Lawlz on June 18, 2007, 02:51:45 PM
Quote from: Bassir on June 18, 2007, 02:50:08 PM
WHEN ARE WE GOING TO GET THAT SITE ON THE ROOT DIRECTORY WHERE IT BELONGS?
NO IDEA WHAT YOU'RE TALKING ABOUT, BUT OKAY.


WELL, THE CODE IN THE FIRST POST IS A FRACTION OF THE SCRIPT I MADE FOR THE NCL-STYLE SITE I HAVE HOSTED ON MY ULMB ACCOUNT; WE NEED TO GET THAT SITE UP ON BOYAH.NET/ WITH "/" BEING THE ROOT DIRECTORY.

ncba93ivyase

Quote from: Bassir on June 18, 2007, 02:53:03 PM
Quote from: Lawlz on June 18, 2007, 02:51:45 PM
Quote from: Bassir on June 18, 2007, 02:50:08 PM
WHEN ARE WE GOING TO GET THAT SITE ON THE ROOT DIRECTORY WHERE IT BELONGS?
NO IDEA WHAT YOU'RE TALKING ABOUT, BUT OKAY.


WELL, THE CODE IN THE FIRST POST IS A FRACTION OF THE SCRIPT I MADE FOR THE NCL-STYLE SITE I HAVE HOSTED ON MY ULMB ACCOUNT; WE NEED TO GET THAT SITE UP ON BOYAH.NET/ WITH "/" BEING THE ROOT DIRECTORY.
DO IT NOW. JUST DON'T KILL US. gonk;

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Feynman


ncba93ivyase


Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Feynman

Quote from: Lawlz on June 18, 2007, 02:55:50 PM
BECAUSE YOU'RE A TERRORIST.


WATCH OUT MY FOR MY REDIRECTION CODES, CRACKER.

iWolf

Whats easier to learn PHP or C++?

Go Up