Jump to content

Search the Community

Showing results for tags 'ошибкаphp'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Development
    • HTML Coding
    • JavaScript
    • PHP
    • CMS
    • Database
    • Web Server
    • Web-site Development
    • Internet Marketing, SEO
  • Library
    • Tricks and solutions
    • Books
  • Commercial services
    • Freelance
    • Job
    • Goods and Services
  • Our Forum
    • Flame
    • Contests
    • Feedback and Ideas

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Web site


Telegram


Signal


Viber


Skype


From


Interests

Found 1 result

  1. Вот ошибка которую мне выдает скрипт.: Notice: Undefined offset: 0 in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Undefined offset: 1 in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Undefined offset: 2 in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Undefined offset: 3 in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Undefined index: nalichie in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Undefined index: id_category in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Undefined variable: id in C:\OpenServer\domains\china-products.com\update_prod.php on line 28 Notice: Use of undefined constant data - assumed 'data' in C:\OpenServer\domains\china-products.com\update_prod.php on line 30 All Bad В чем проблема? <?php ini_set('display_errors',1); error_reporting(E_ALL); if (isset($_GET['id'])) { $id = $_GET['id']; } ini_set("display_errors","1"); include("connect_bd.php"); //print_r($_FILES); $uploaddir = 'images/'; // Каталог, в который мы будем перемещать файл $images = array(); if($_FILES) { for($i=0;$i<count($_FILES['file']['name']);$i++) { if($_FILES['file']['size'][$i]>0) { $uploadfile = $_FILES['file']['name'][$i]; // Имя загружаемого файла $up_temp = $_FILES['file']['tmp_name'][$i]; // Путь к загружаемому файлу во временной папке move_uploaded_file($up_temp, $uploaddir.$uploadfile); $images[] = 'images/'.$uploadfile; } } } $data = mysql_query("UPDATE products SET name='".$_POST['name']."',price='".$_POST['price']."',img='".$images[0]."',img1='".$images[1]."',img2='".$images[2]."',img3='".$images[3]."',text='".$_POST['text']."',nalichie='".$_POST['nalichie']."',garant='".$_POST['garant']."',klass='".$_POST['klass']."',id_category='".$_POST['id_category']."' WHERE id='$id'"); if(data == 'true') { echo'All good'; } else{ echo'All Bad'; } ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy