<?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;
?>
Also, cocks.
PHP looks so easy. caterpie;
Quote from: GCD333 on June 18, 2007, 02:38:12 PM
Also, cocks.
<?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;
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: 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".
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.
WHEN ARE WE GOING TO GET THAT SITE ON THE ROOT DIRECTORY WHERE IT BELONGS?
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: 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.
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: Lawlz on June 18, 2007, 02:53:46 PM
JUST DON'T KILL US. gonk;
HOW WILL THAT KILL US?
Quote from: Lawlz on June 18, 2007, 02:55:50 PM
BECAUSE YOU'RE A TERRORIST.
WATCH OUT MY FOR MY REDIRECTION CODES, CRACKER.
Whats easier to learn PHP or C++?
I wish I could buy my Mac now.
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
Applescript is probably the easiest, followed by PHP, then Java, then Perl and C++.
There's loads more and even more complex languages, but I know jack shit about them.
Quote from: Lawlz on June 18, 2007, 03:34:08 PM
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
Applescript is probably the easiest, followed by PHP, then Java, then Perl and C++.
There's loads more and even more complex languages, but I know jack shit about them.
HI I'M BASIC
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
first, why?
second, completely different uses and purposes psyduck;
Quote from: Phydeaux on June 18, 2007, 03:42:42 PM
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
first, why?
second, completely different uses and purposes psyduck;
I'm bored out of my mind and I have nothing else to do.
Quote from: iWolf on June 18, 2007, 03:43:32 PM
Quote from: Phydeaux on June 18, 2007, 03:42:42 PM
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
first, why?
second, completely different uses and purposes psyduck;
I'm bored out of my mind and I have nothing else to do.
If you are interested in coding for websites learn PHP. For actual programs learn C++
Quote from: JMV290 on June 18, 2007, 03:44:23 PM
If you are interested in coding for websites learn PHP. For actual programs learn C++
Python, Ruby, and a few others are sometimes used in place of PHP. And your best bet for actual interactivity would be Javascript.
Learn C first. Better yet, learn Python first.
Quote from: iWolf on June 18, 2007, 03:43:32 PM
Quote from: Phydeaux on June 18, 2007, 03:42:42 PM
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
first, why?
second, completely different uses and purposes psyduck;
I'm bored out of my mind and I have nothing else to do.
Learn HTML. powerofone;