Помогите найти проблему? почему выдает ошибку 500
поле day - формат Y-m-d
с 7-ью днями непрерывно начиная с сегодняшнего дня?
Терминал на такой запрос ругается.
ts, CASE
if(НЕ существует_ли_свойство('отметка_времени_следующей_выдачи_бонуса', profile[message.author.id])
ИЛИ profile[message.author.id].отметка_времени_следующей_выдачи_бонуса <= текущее_время_unix
// говорим ждать формат_времени(profile[message.author.id].отметка_времени_следующей_выдачи_бонуса - текущая_время_unix)
switch ($image_mime){
//if is JPG and siblings
case 'image/jpeg':
case 'image/pjpeg':
//Create a new jpg image
$new_image = imagecreatefromjpeg($this->file_url);
imagejpeg($new_image, $real_destination.$this->new_name_image, $this->quality);
break;
//if is PNG and siblings
case 'image/png':
case 'image/x-png':
//Create a new png image
$new_image = imagecreatefrompng($this->file_url);
imagealphablending($new_image , false);
imagesavealpha($new_image , true);
imagepng($new_image, $real_destination.$this->new_name_image, $png_compression);
break;
// if is GIF
case 'image/gif':
//Create a new gif image
$new_image = imagecreatefromgif($this->file_url);
imagealphablending($new_image, false);
imagesavealpha($new_image, true);
imagegif($new_image, $real_destination.$this->new_name_image);
}
foreach($array_decode['response'] as $key => $user) {}
foreach($array_decode['response'] as $user_data)
{
$key = $user_data['id'];
$user = $user_data['user'];
}
Естественно, название поля login, таблицы users, поля user_id могут отличаться в вашем случае.