Boyah Forums

General => The Lobby => Topic started by: Feynman on June 18, 2007, 02:37:39 PM

Title: <?php include(submit.php); ?>
Post by: Feynman on June 18, 2007, 02:37:39 PM
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;
?>
Title: Re: <?php include(submit.php); ?>
Post by: anus on June 18, 2007, 02:38:12 PM
Also, cocks.
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase on June 18, 2007, 02:38:57 PM
PHP looks so easy. caterpie;
Title: Re: <?php include(submit.php); ?>
Post by: Feynman on June 18, 2007, 02:39:56 PM
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;
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase on June 18, 2007, 02:41:30 PM
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.
Title: Re: <?php include(submit.php); ?>
Post by: Feynman 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".
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase on June 18, 2007, 02:47:07 PM
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.
Title: Re: <?php include(submit.php); ?>
Post by: Feynman on June 18, 2007, 02:50:08 PM
WHEN ARE WE GOING TO GET THAT SITE ON THE ROOT DIRECTORY WHERE IT BELONGS?
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase 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.
Title: Re: <?php include(submit.php); ?>
Post by: Feynman 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.
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase on June 18, 2007, 02:53:46 PM
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;
Title: Re: <?php include(submit.php); ?>
Post by: Feynman on June 18, 2007, 02:54:40 PM
Quote from: Lawlz on June 18, 2007, 02:53:46 PM
JUST DON'T KILL US. gonk;


HOW WILL THAT KILL US?
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase on June 18, 2007, 02:55:50 PM
Quote from: Bassir on June 18, 2007, 02:54:40 PM
Quote from: Lawlz on June 18, 2007, 02:53:46 PM
JUST DON'T KILL US. gonk;


HOW WILL THAT KILL US?
BECAUSE YOU'RE A TERRORIST.
Title: Re: <?php include(submit.php); ?>
Post by: Feynman on June 18, 2007, 03:00:01 PM
Quote from: Lawlz on June 18, 2007, 02:55:50 PM
BECAUSE YOU'RE A TERRORIST.


WATCH OUT MY FOR MY REDIRECTION CODES, CRACKER.
Title: Re: <?php include(submit.php); ?>
Post by: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
Title: Re: <?php include(submit.php); ?>
Post by: Daddy on June 18, 2007, 03:32:34 PM
I wish I could buy my Mac now.
Title: Re: <?php include(submit.php); ?>
Post by: heltar on June 18, 2007, 03:33:14 PM
Quote from: iWolf on June 18, 2007, 03:31:21 PM
Whats easier to learn PHP or C++?
DD
Title: Re: <?php include(submit.php); ?>
Post by: ncba93ivyase 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.
Title: Re: <?php include(submit.php); ?>
Post by: Daddy on June 18, 2007, 03:37:06 PM
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
Title: Re: <?php include(submit.php); ?>
Post by: 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;
Title: Re: <?php include(submit.php); ?>
Post by: 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.
Title: Re: <?php include(submit.php); ?>
Post by: Daddy on June 18, 2007, 03:44:23 PM
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++
Title: Re: <?php include(submit.php); ?>
Post by: Phydeaux on June 18, 2007, 04:25:24 PM
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.
Title: Re: <?php include(submit.php); ?>
Post by: Feynman on June 18, 2007, 04:38:27 PM
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;