Upload php error: No such file or directory
Posted: 02 Mar 2017, 14:49
Well here i`m again... I wanna use this script
https://coursesweb.net/php-mysql/simple- ... -script_s2
Now i try with an id (int) into this script
Now i try into your code this
I getting errors when i use $users[email]
I tried also with
but still getting the same error
https://coursesweb.net/php-mysql/simple- ... -script_s2
Now i try with an id (int) into this script
Code: Select all
<?php
include('connection.php');
$id = (int) $_GET['id'];
$sql=mysqli_query($conn,"SELECT * FROM `user` WHERE id='" . $id . "' ");
$users=mysqli_fetch_assoc($sql);
?>
Code: Select all
$uploadpath = 'images/$users[email]/'; // directory to store the uploaded files
$max_size = 2000; // maximum file size, in KiloBytes
$alwidth = 1900; // maximum allowed width, in pixels
$alheight = 1800; // maximum allowed height, in pixels
$allowtype = array('bmp', 'gif', 'jpg', 'jpe', 'png'); // allowed extensions
Code: Select all
No such file or directory
Code: Select all
<?php echo $users[email];?>