hai..i try to but why the data not insert into my database??
Uploading Images with PHP Build the next Flickr! (DICr???)
#32
Posted 21 March 2011 - 04:02 AM
In a class I took on PHP, we were taught to create a blob record for the image in our database and then use that to create a thumbprint. I see that your method would significantly reduce database size and probably time to open a webpage.
But, I wonder if you could list pros and cons for the two ways to handle images. I am right now creating a webpage using images in a storefront and think I should change my method and use yours but am wondering why I was taught the other method and if there are downsides to your method.
But, I wonder if you could list pros and cons for the two ways to handle images. I am right now creating a webpage using images in a storefront and think I should change my method and use yours but am wondering why I was taught the other method and if there are downsides to your method.
#33
Posted 29 March 2011 - 10:12 PM
Hi all. This tutorial have been useful for newbies like me. Now it has been easy to upload and fetch the images from database while executing on localhost. But I am having the problem with uploading the image when I am executing program on server. can anybody help me with this?
#34
Posted 27 September 2011 - 02:07 AM
$image = $_FILES['image'];
$image['name'] = mysql_real_escape_string($image['name']);
problem is, it is clear we can pass data to image varibale but how do we passe $image['name'] to mysql_real_escape_string instead of $image variable.
can anybody explain this?
thx
$image['name'] = mysql_real_escape_string($image['name']);
problem is, it is clear we can pass data to image varibale but how do we passe $image['name'] to mysql_real_escape_string instead of $image variable.
can anybody explain this?
thx
#35
Posted 27 September 2011 - 02:55 AM
please show me tutorial to upload on server lol
#36
Posted 28 September 2011 - 06:53 PM
Really easy one for beginner like me, thank you!
#37
Posted 11 December 2011 - 10:49 AM
Lovely tutorial. I may use the concepts that you provide with Codeigniter
#38
Posted 06 September 2012 - 02:21 AM
I must congratulate you, this tutorial is most useful! Great job!
I have 2 questions though:
1.) When my users upload images, they come on the bottom of the website. What do I need to do for new images to come on top of the previously published images?
2.) I know this is probably foolish question (new to websites'n'codes) but how can I put a restrict on uploaded images, lets say that their width must be less than 600 and height less than 500 for them to be uploaded? Can you write the code for this? I would be most grateful.
I have 2 questions though:
1.) When my users upload images, they come on the bottom of the website. What do I need to do for new images to come on top of the previously published images?
2.) I know this is probably foolish question (new to websites'n'codes) but how can I put a restrict on uploaded images, lets say that their width must be less than 600 and height less than 500 for them to be uploaded? Can you write the code for this? I would be most grateful.
#39
Posted 08 September 2012 - 05:38 AM
Can u make a tutorial that it with PHP and MSSQL (not MySQL) ... cuz there is a lot of function different between MSSQL - MySQL .....
#40
Posted 02 November 2012 - 05:48 AM
Nice ur my best developer
How to create with thumbnail image in this scrip
for exp:
large images in path /images
thumbnail images in path /image_th
image width 100px and height 150px
please i don't PHP
How to create with thumbnail image in this scrip
for exp:
large images in path /images
thumbnail images in path /image_th
image width 100px and height 150px
please i don't PHP
|
|







MultiQuote






|