When I was working with a project with file uploads, I had a thought of deleting those files with php. unlink is used to delete a file from a folder. It takes the file path along with the file name as parameter. This funtion can be simply written as shown below. unlink("path_to_img/file_name.extension"); For example if you want to delete a text file sample.txt ...
Labels:
PHP,
Web Development
We have seen how to fetch youtube videos using simple javascript in our previous tutorial. Today's tutorial is about connecting our database using PHP. Since PHP is a dynamic scripting language and it uses mysql database in the back end to store the data. That means the php file has to be configured to connect the database. This can be done very easily with...
Labels:
MySQL,
PHP
Hi friends, we have discussed about pagination tutorial using PHP and MySql in previous post. In this tutorial I came up with a script to fetch youtube videos on the client side using javascript. Sometimes we need to put video thumbnail and it's title to show as gallery. I worried about fetching videos into my website first. I googled for the code and...
Labels:
Javascript,
Tips and Tricks,
Web Development,
Youtube
Hi friends, todays tutorial is about creating a simple pagination using PHP and MySQL. I am going to explain you about creating a page with PREVIOUS and NEXT links at the bottom of your page with numberings. Before looking at the code let's discuss about pagination concept. Pagination let's you create links that contains the data which is the continuation of the current...
Labels:
MySQL,
PHP,
Web Design,
Web Development
Hi friends, we have discussed about creating a beautiful contact form before. We also discussed about the importance of a contact form. You must know why a contact form is important. If you are running a business and you own a website for your business then your customers can easily contact you through your website. This will let you get new customers through...
Labels:
PHP,
Web Design
0 comments: