Browsing all articles in PHP
Oct
10

How to convert SQL to Excel in Php?

Author Arpi    Category PHP     Tags

Many a times while developing a project we want to send the query data to the user or we want to have the query data for any other reason like analysis or report etc.

So to convert the SQL query data into the excel sheet form is many a times useful for developers.

You can do it using following code,

<?      $sql = "select * from wp_db";
	$result = mysql_query($sql);
	$arr_data = array();

	while($data = mysql_fetch_assoc($result)){
                   $arr_data[] = $data;
		}

read more

Oct
1

How to configure mail from localhost ( wamp ) using PHP?

I have searched a lot when I was required to configure mail using my localhost for my project. At many sites I have read that it’s just not possible to send mail using localhost. You have to upload your project on the net.

But after searching a lot I get to know that it’s possible to send mail using localhost without uploading the project.  And today I post this blog so that the PHP programmer can get to know that it’s not that we just cannot send mail from localhost .We can do.

Steps to send mail from localhost:

read more

Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

our sponsors

latest post

latest comments

Find us on Facebook

tag cloud

Top Authors

saurabh
17 posts
16 posts
4 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks