Okie Dokie .... here it is folks!
A complete php script with date range selection capabilities and export to excel (csv format)....
2 - Update ttx_sql_output.php with you server login info (Lines 10 thru 14)
Hi arvin, thanks a lot for sharing.
I've some doubts_
In this line
$link = mysql_connect("SQL Server Name here:Port here","your userID here","your password here");
I don't understand which values to use
same in this line
mysql_select_db("your Db Name", $link);
- 1.- SQL Server Name here
- 2.- Port here
- 3.- your password here
- 4.- your Db Name
using
http://MYDOMAIN.COM/sqlsetup.cgi I can see these data:
MySQL Module Setup
MySQL database access info. Please contact your hosting provider or system admin if not sure.
MySQL Host: localhost
MySQL Port: 3306
Database ID: xxxx_TTE
MySQL User: xxxx_tte
MySQL Password: xxxxpw
using this lines
$link = mysql_connect("localhost:3306","xxxx_tte","xxxxpw");
mysql_select_db("xxxx_TTE", $link);
reports the error
Could not connect: Access denied for user 'xxxx_tte'@'domain.com' (using password: YES)
"1.-" is the domain url? or is the database? or it'is correct "localhost"?
"2.-" for this value I've used the 3306 as show in sqlsetup.cgi
"3.-" the password is the pw of the db? or the password of domain/admin?
"4.-" is the "Database ID" as show in sqlsetup? or some as xxxx_TTE.tickets or xxxx_TTE.messages
I've tested with several differences but no luck.
Thanks very much.[/list]