Posted by: Anil Kumar Panigrahi in: ● July 2, 2010
Hi friends,
In this post i want to explain how to create rss feeds using php code and get the data from mysql table.
1) Connect to database:
We already discussed about how to connect database using php code.See the following code to connect database:
1
2
3
4
5
6
7
8
9
10
11
<?php
DEFINE (’DB_USER’, ‘root’);
DEFINE (’DB_PASSWORD’, ‘root’);
DEFINE (’DB_HOST’, ‘localhost’);
DEFINE (’DB_NAME’, ‘rss’);
// Make the connnection and then [...]
Posted by: Anil Kumar Panigrahi in: ● March 5, 2010
Hello friends,
I have code for how to create a excel file with mysql data using php code.
Follow the below steps to retrieve the data from database:
1) Connect to database:
$dbhost= “Mysql server name”; //your MySQL Server
$dbuser = “Username”; //your MySQL User Name
$dbpass = “password”; //your MySQL Password
$dbname = “database name”;
//your MySQL Database Name of which database [...]
Comments