Storing Image in database and how to add comment

Hi all,Like every time this time also I need your precious help. I need to know that how can I store Image, delete Image or update Image by sql query in PHP code.

Also need some help in coding of commenting. Like there is a article and the visitors can comment on that article which is visible to all. Like forum commenting.

Also need help about getting payment from people by their credit cards or gift cards. I got the code for getting payment in paypal. But I don't get the code for getting payment online by cards. Google checkout is not working for me because I am not from US or UK.

Please help me with the code or where I can found those codes and a good tutorial on it.Thanks in advance for your help and support.

The binary of the uploaded file is now in $file_content, just insert that into a BLOB type MySQL column like you would anything else.

From the questions you're asking, I suggest you spend some time on http://php.net and http://dev.mysql.com and familiarize yourself with the technologies you're trying to use. Also, it's proper to have 1 question per thread so others may find solutions to their similar problems easier. I'm reading this as "how do I upload images to a database?", "How do I write blogging software?" and "How do I interface with the payment gateway of my choosing?".

Rabid Dog

Web Master

Posts: 3243

Loc: South Africa

3+ Months Ago

Had this question so many times in the past wrote a tutorial

http://www.rabiddog.co.za/tutorial.php? ... usingMySQL

Are we still allowed to do that? Post external links?

joy1986joy

Novice

Posts: 27

3+ Months Ago

@Rabid DogThanks for the link and wonderful tutorial. Its worked for me well and good. I did not find my other answers. For that as per the suggestion of this213 I am starting two new thread by dividing this thread.