-
Content Count
7 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout Luqman
-
Rank
Newbie
-
how to use the option value in javascript, for example when on select Volvo and it will automatically appear in the input price is $ 1,500 bertype name is read only
-
Notice: Undefined index: pictures in /opt/lampp/htdocs/magazine/upload.php on line 2Notice: Undefined index: pictures in /opt/lampp/htdocs/magazine/upload.php on line 3 <?php $tmp_name =$_FILES ['pictures']['tmp_name']; $uploadfilename = $_FILES ['pictures']['name']; $savedate=date('mdy-Hms'); $newfilename = '/pictures/'.basename($savedate."_".$uploadfilename); if (move_uploaded_file($tmp_name, $newfilename)){ echo "<p> file terupload</p>n"; } ?> what is problem ?
-
<?php $uploads_dir = '/opt/lampp/htdocs/magazine/upload'; foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK ) { $tmp_name = $_FILES["pictures"]["tmp_name"][$key]; $name = $_FILES["pictures"]["name"][$key]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); } } ?> Notice: Undefined index: pictures in /opt/lampp/htdocs/magazine/upload.php on line 3Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/magazine/upload.php This could be why the error?
-
how to use pdf files in php, which is where the calling file in mysql