View Single Post
Old 04-05-2012, 06:09 PM   PM User | #3
vipaka
New Coder

 
Join Date: Oct 2011
Posts: 15
Thanks: 1
Thanked 0 Times in 0 Posts
vipaka is an unknown quantity at this point
right now the php looks like this (and still doesn't work).

PHP Code:

$save 
= (isset($_POST['save'])) ? true false;

if (
$save)
{
$image file_get_contents($_POST['image_data'])
$title = ($_POST['&title']);

echo 
$title;
echo 
$image;

$insert_array = array(
'title' => $title// need this to avoid discrepancies lol
'username' => $user->data['username'],
'image' => $image,
);

$sql "INSERT INTO " EASTER_CONTEST_TABLE " " $db->sql_build_array('INSERT'$insert_array);
$db->sql_query($sql);

vipaka is offline   Reply With Quote