Paste The Last Thing You Copied V.1
- Tzatziki Cfnmpah IV
- Party bird
- Posts: 784
- Joined: Wed Jan 23, 2019 9:43 am
- Tagline: i got the horses in the bacc
- Mood: bored
Paste The Last Thing You Copied V.1
Just paste the last thing you copied! All shibaface rules apply,of course c:
I'll start:
Pet's name: Malcolm
Owner's name: Tzatziki Cfnmpah IV
I'll start:
Pet's name: Malcolm
Owner's name: Tzatziki Cfnmpah IV
tzatzikitheleg on chickensmoothie! have a great day!
- Misty
- Well-known
- Posts: 3380
- Joined: Mon Jan 21, 2019 2:26 pm
- Tagline: Some people need a high five. In the face. With a chair.
- Mood: ay
Re: Paste The Last Thing You Copied V.1
how long do gray parrots live
Christian
She/her
I can do all things through Him who gives me strength
Philippians 4:13
.Kira Nightblade. on CS, Nightblade on DV, Sarahkey8 on some others
If you have any questions about Christianity, feel free to PM me!
I will try to help you in any way I can ^.^
- Tzatziki Cfnmpah IV
- Party bird
- Posts: 784
- Joined: Wed Jan 23, 2019 9:43 am
- Tagline: i got the horses in the bacc
- Mood: bored
Re: Paste The Last Thing You Copied V.1
whatever, you aren't worth my time, you can't even read. your probably like 12. I tried to be nice but you were nothing but rude and ignorant. have a nice life. or don't. I don't really care either way.
tzatzikitheleg on chickensmoothie! have a great day!
- Misty
- Well-known
- Posts: 3380
- Joined: Mon Jan 21, 2019 2:26 pm
- Tagline: Some people need a high five. In the face. With a chair.
- Mood: ay
Re: Paste The Last Thing You Copied V.1
District
Christian
She/her
I can do all things through Him who gives me strength
Philippians 4:13
.Kira Nightblade. on CS, Nightblade on DV, Sarahkey8 on some others
If you have any questions about Christianity, feel free to PM me!
I will try to help you in any way I can ^.^
- Doggos_on_Mars
- Site Admin
- Posts: 4612
- Joined: Sat Dec 08, 2018 10:35 pm
- Tagline: My hands are really cold
- Mood: Nervous
Re: Paste The Last Thing You Copied V.1
┏xxxxxxxxxxxxxxxx┓
Doggos | she/her
┖xxxxxxxxxxxxxxxx┚
Doggos | she/her
┖xxxxxxxxxxxxxxxx┚
- gabrielle
- Well-known
- Posts: 3497
- Joined: Fri Dec 28, 2018 1:53 am
- Tagline: go away bots >:(
- Mood: i love my life !!!
Re: Paste The Last Thing You Copied V.1
voy a decir que no
elle • she/her • esfp
☼ scorpio ☾ leo ↑ taurus
i love the sun,
but in the dark of night,
let me learn
the wisdom of the moon
☼ scorpio ☾ leo ↑ taurus
i love the sun,
but in the dark of night,
let me learn
the wisdom of the moon
- BayoDino
- Spreading the wings
- Posts: 156
- Joined: Fri May 03, 2019 5:44 am
- Tagline: ✧・゚:* StarLight *:・゚✧
- Mood: tired!
- Contact:
Re: Paste The Last Thing You Copied V.1
Code: Select all
<html>
<head>
</head>
<body>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
$user->session_begin();
if ($user->data['user_id'] == ANONYMOUS)
{
login_box('', $user->lang['LOGIN']);
}
require("adopttools.php");
/* Our visitor has picked an adoptable they want, its id is in $_REQUEST['id']. Find that
* adoptable in adoptables.xml
*/
$adoptable=find_adoptable($_REQUEST['id']);
/* To randomly pick a variation from that adoptable, we're going have to do a little maths with
* random numbers.
*
* First we find the sum of all the 'chance' attributes for this adoptable...
*/
$sum=0;
foreach ($adoptable->variation as $variation) {
$sum=$sum + $variation['chance'];
}
/* Now we can generate a random number which goes from 0.0 to that sum. This will help us
* pick a variation.
*/
$random=lcg_value()*$sum;
$sum=0;
foreach ($adoptable->variation as $variation) {
$sum = $sum + $variation['chance'];
if ($random <= $sum) {
//Choose this variation
$v_id=$variation['id'];
break;
}
}
include "config.php";
// Create connection
try {
$conn = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpasswd);
// set the PDO error mode to exception
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
// prepare sql and bind parameters
$stmt = $conn->prepare("INSERT INTO phpbb_exam (pet_type, pet_variation, pet_name, pet_owner) VALUES (:type, :variation, :name, :owner)");
$stmt->bindParam(':type', $type);
$stmt->bindParam(':variation', $v_id);
$stmt->bindParam(':name', $name);
$stmt->bindParam(':owner', $owner);
// insert a row
// set parameters and execute
$type = $_POST["id"];
$name = $_POST["petname"];
$owner = $user->data['user_id'];
$stmt->execute();
echo "Pet Adopted successfully";
}
catch(PDOException $e)
{
echo "Error: " . $e->getMessage();
}
$conn = null;
?>
Lorem
Ispum
Ispum
Lorem
Ispum
Ispum
- Doggos_on_Mars
- Site Admin
- Posts: 4612
- Joined: Sat Dec 08, 2018 10:35 pm
- Tagline: My hands are really cold
- Mood: Nervous
Re: Paste The Last Thing You Copied V.1
┏xxxxxxxxxxxxxxxx┓
Doggos | she/her
┖xxxxxxxxxxxxxxxx┚
Doggos | she/her
┖xxxxxxxxxxxxxxxx┚