For those of you getting the error "mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool " for the connection & while loop you can try the following line of codes $conn = mysqli_connect("localhost", "root", "", "db_name"); $sql = "SELECT * FROM table_name"; $result = mysqli_query($conn, $sql); while($row = mysqli_fetch_array($result)) It worked for me. hope it works for you guys as well.
Nice video. But I already know how to do that. It is relatively easy. But what I care to know is. Once you have retrieved the images from the database table and displayed it on a screen. How can you make each image clickable so that only the data from the table where the image is stored is displayed.
hi is it possible for you to make a tutorial on how to download these files aswell with their original file extension because i realized all we need to do is figure out how to change the extension on download
I made this example, but as I have many records in the database with photos, it doesn't work. It gives the error "Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2893560 bytes)".
PROBLEM FIXED BY ME: ANDREA MAE BUTALID FOR THOSE IMAGES STILL NOT APPEAR IMAGE DATA TYPE (TYPE) WILL BE BLOB IN DATABASE WHILE MAKING TABLE AND INSERT YOUR DATA IN DATABASE BY UPLOADING THE IMAGE FILE IN DATABASE THANKS ME LATER HOPE YOU UNDERSTAND.
Bro, I'm your subscriber. Now I need your help to retrieve the same content procedure using search. I mean to say it should be able to retrieve like students marksheet with photo. Thank you in anticipation.
To Insert Video into Database u can use Upload in php th-cam.com/video/QT2aFYbWP74/w-d-xo.html Searching your video on the table ... by stored names u can use.. datatables th-cam.com/video/oOL--VASs8Q/w-d-xo.html
Much helpful bro, 9 hours on just a from i couldn't pull through but your video help, now am going to sleep.
Thanks brother, this content is pure gold. You help me so much :)
Thanks Sir I Total Opretion Lern For You Are You Tube Channel Thanks Best Of Luck
My go to channel for php thanks for sharing your knowledge
Thanks a lot, even ChatGPT didnt know how to solve this, u showed it correctly lol
Thank you bro. You're a life saver 😂🙌
For those of you getting the error "mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool "
for the connection & while loop you can try the following line of codes
$conn = mysqli_connect("localhost", "root", "", "db_name");
$sql = "SELECT * FROM table_name";
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_array($result))
It worked for me. hope it works for you guys as well.
thank you
Nice video. But I already know how to do that. It is relatively easy. But what I care to know is. Once you have retrieved the images from the database table and displayed it on a screen. How can you make each image clickable so that only the data from the table where the image is stored is displayed.
Hello did you find the solution am also looking for this ... Can we connect via WhatsApp?
image is not showing, what can be the reason? My code is: echo '';
how did you solve this error?
@@shaikhnabeel6443 $typ = "jpeg";
$bildname = $row['bildurl'];
if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".jpg") == 0) { $typ = "jpeg"; }
if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".png") == 0) { $typ = "png"; }
if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".tif") == 0) { $typ = "tif"; }
if (strcmp( strtolower( substr($bildname, strlen($bildname) - 4)), ".bmp") == 0) { $typ = "bmp"; }
try {
$imagick = new Imagick();
$imageblob = $row2['file'];
$imagick->readImageBlob( $imageblob );
//$imagick_properties = $imagick->getImageProperties('*', FALSE);
$height = $imagick->getImageHeight();
$width = $imagick->getImageWidth();
if ($width > 400) {
$factor = 400 / $width;
$height = $height * $factor;
$width = 400;
}
echo '';
echo $bilddaten . "";
} catch (Exception $e) {
}
@@StephanPetrowitsch thanx bro i solved it.
Thank You , Solved my PROBLEM ☺
Thank you very much you saved me
Parse error: syntax error, unexpected end of file in C:\wamp64\www\g\displayimage.php showing last line
Onek vlo🙂
hi is it possible for you to make a tutorial on how to download these files aswell with their original file extension because i realized all we need to do is figure out how to change the extension on download
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, boolean given in C:\xampp\htdocs ye error aa raha he sir plz help
If ke aandar dalo aur $result saath mysqli_num pass karo
@@rtxcomet3681 bro pls tell the format
Can i insert the code for audio files the same way?
I made this example, but as I have many records in the database with photos, it doesn't work. It gives the error "Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 2893560 bytes)".
Hello, can you please show us how to zoom-in the picture (took from the data-base) in another page using a link ()
image isnt displaying else all other data is dislayed plss help
followed your steps to fetch images from the database but the image cannot be displayed, the image is broken, why?
how can i update image from mysql using php ?
Thank you. It worked!
why don't you just post a link for us to download the code?
Awesome it works. What about inserting?
Image is not shown ...instead of it cross mark over is shown 😑
i have the same problem. did you solve it?
Between MySQLI and PDO which one is best? 🤦♂
Dear, have you accounts software for school or university?
how ican create search bar which my search artist videos from the database using php and mysqli
PROBLEM FIXED BY ME: ANDREA MAE BUTALID
FOR THOSE IMAGES STILL NOT APPEAR
IMAGE DATA TYPE (TYPE) WILL BE BLOB IN DATABASE WHILE MAKING TABLE AND INSERT YOUR DATA IN DATABASE BY UPLOADING THE IMAGE FILE IN DATABASE THANKS ME LATER HOPE YOU UNDERSTAND.
no, can you elaborate?
Hi Sir, Im just getting the alt value only... No image is displaying
keep img save into the same folder as where your file
Bro, I'm your subscriber. Now I need your help to retrieve the same content procedure using search. I mean to say it should be able to retrieve like students marksheet with photo. Thank you in anticipation.
Is it possible to save image in database by entering path in php??
Here, it is for image upload with saving path in database.
th-cam.com/video/7S42lpImZ4s/w-d-xo.html
Thank you so much bro
If you post it to the web, can people see your database password when they check the page source?
People will not be able to see what's written in the PHP code because all the php the code get hidden
Why is only half of my picture coming out? pls😭😭
frumos!
image not showing, this is my code
Images/images/field how to get image from this path plz explain i will thankful to you
th-cam.com/video/e-vmQhNqLMM/w-d-xo.html
thanksss uuuuu !!!
sorry iwant to learn how to search videos from mysql database using php and mysql help me
To Insert Video into Database u can use Upload in php
th-cam.com/video/QT2aFYbWP74/w-d-xo.html
Searching your video on the table ... by stored names u can use.. datatables
th-cam.com/video/oOL--VASs8Q/w-d-xo.html
Nice
image is not showing, plz help me
not working - get an error unexpected T_string. why?
it still works great today
thank you!!!very useful!!!!!!!!!!
Thank you bro!
undefined index error dekha rha hai??plz help...
Its a nice video. Can you a code to print it in pdf?
Sir image tag ka Samaj nhi aaya ...plz explain??
Doubt pucho... tab hi I can explain... like.. ur image is nt fetched ya.. aur kch..
@@fundaofwebit hi sir it shows fatal error: Uncaught TypeError: mysqli_fetch_array():
awsome
Image fetch nhi ho rahe please solve it
bro dont mind but in this video you are doing only your work , you are not teaching how to do that... but well effort...
Where its data base video?
ty
Sir issko agar delete karna ho toh kaise kareinge??plz reply...
Haa... we can delete by its id..
Sorry for late reply.. ws lil busy..
th-cam.com/video/gj5c8lfnEuo/w-d-xo.html
thank you
sir meri image show nhi ho rhi??
another one down thanks
Thanks B)
can you send source code
i want source code sir
upload image code
Funda meyer
I have use the code same as you used..
here it is:
Thank You