Click here to Skip to main content
15,910,234 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
QuestionI want to integrate Nochex Creditcard payment within my PHP website itself. Pin
kvsuba21-Apr-09 19:30
kvsuba21-Apr-09 19:30 
AnswerRe: I want to integrate Nochex Creditcard payment within my PHP website itself. Pin
Marc Firth22-Apr-09 1:35
Marc Firth22-Apr-09 1:35 
AnswerRe: I want to integrate Nochex Creditcard payment within my PHP website itself. [modified] Pin
Marc Firth22-Apr-09 1:36
Marc Firth22-Apr-09 1:36 
Questionhow to save pdf file in mysql database using PHP code Pin
chandru7020-Apr-09 5:15
chandru7020-Apr-09 5:15 
AnswerRe: how to save pdf file in mysql database using PHP code Pin
Marc Firth20-Apr-09 22:12
Marc Firth20-Apr-09 22:12 
GeneralRe: how to save pdf file in mysql database using PHP code Pin
Marc Firth21-Apr-09 22:45
Marc Firth21-Apr-09 22:45 
GeneralRe: how to save pdf file in mysql database using PHP code Pin
robcole99925-Jun-09 10:32
robcole99925-Jun-09 10:32 
QuestionExport mysql to excel with php Pin
hqi8819-Apr-09 0:48
hqi8819-Apr-09 0:48 
I Export the data from Excel to mysql with php,but it cause word in unicode look vague, is there a way to solve this problem

the code:
<br />
// Connect database. <br />
mysql_connect("localhost","","");<br />
mysql_select_db("tutorial");<br />
<br />
// Get data records from table. <br />
$result=mysql_query("select * from name_list order by id asc");<br />
<br />
// Functions for export to excel.<br />
function xlsBOF() { <br />
echo pack("ssssss", 0x809, 0x8, 0x0, 0x10, 0x0, 0x0); <br />
return; <br />
} <br />
function xlsEOF() { <br />
echo pack("ss", 0x0A, 0x00); <br />
return; <br />
} <br />
function xlsWriteNumber($Row, $Col, $Value) { <br />
echo pack("sssss", 0x203, 14, $Row, $Col, 0x0); <br />
echo pack("d", $Value); <br />
return; <br />
} <br />
function xlsWriteLabel($Row, $Col, $Value ) { <br />
$L = strlen($Value); <br />
echo pack("ssssss", 0x204, 8 + $L, $Row, $Col, 0x0, $L); <br />
echo $Value; <br />
return; <br />
} <br />
header("Pragma: public");<br />
header("Expires: 0");<br />
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); <br />
header("Content-Type: application/force-download");<br />
header("Content-Type: application/octet-stream");<br />
header("Content-Type: application/download");;<br />
header("Content-Disposition: attachment;filename=orderlist.xls "); <br />
header("Content-Transfer-Encoding: binary ");<br />
<br />
xlsBOF();<br />
<br />
/*<br />
Make a top line on your excel sheet at line 1 (starting at 0).<br />
The first number is the row number and the second number is the column, both are start at '0'<br />
*/<br />
<br />
xlsWriteLabel(0,0,"List of car company.");<br />
<br />
// Make column labels. (at line 3)<br />
xlsWriteLabel(2,0,"No.");<br />
xlsWriteLabel(2,1,"Company");<br />
<br />
$xlsRow = 3;<br />
<br />
// Put data records from mysql by while loop.<br />
while($row=mysql_fetch_array($result)){<br />
<br />
xlsWriteNumber($xlsRow,0,$row['id']);<br />
xlsWriteLabel($xlsRow,1,$row['name']);<br />
<br />
$xlsRow++;<br />
} <br />
xlsEOF();<br />
exit();<br />
?><br />
<br />

thanks
AnswerRe: Export mysql to excel with php Pin
Marc Firth20-Apr-09 22:09
Marc Firth20-Apr-09 22:09 
QuestionAttendance tracking from card Reader in PHP Pin
Ritu066618-Apr-09 21:03
Ritu066618-Apr-09 21:03 
AnswerRe: Attendance tracking from card Reader in PHP [modified] Pin
fly90418-Apr-09 23:23
fly90418-Apr-09 23:23 
JokeRe: Attendance tracking from card Reader in PHP Pin
Smithers-Jones20-Apr-09 23:56
Smithers-Jones20-Apr-09 23:56 
GeneralRe: Attendance tracking from card Reader in PHP Pin
Ritu066621-Apr-09 20:11
Ritu066621-Apr-09 20:11 
GeneralRe: Attendance tracking from card Reader in PHP Pin
fly90422-Apr-09 0:55
fly90422-Apr-09 0:55 
RantRe: Attendance tracking from card Reader in PHP Pin
fly90424-Apr-09 2:06
fly90424-Apr-09 2:06 
RantRe: Attendance tracking from card Reader in PHP Pin
nickmaroulis1-May-09 19:46
nickmaroulis1-May-09 19:46 
GeneralRe: Attendance tracking from card Reader in PHP Pin
fly9041-May-09 23:32
fly9041-May-09 23:32 
QuestionHow to handle SIGKILL? Pin
Divyang Mithaiwala17-Apr-09 1:58
Divyang Mithaiwala17-Apr-09 1:58 
AnswerRe: How to handle SIGKILL? Pin
Jimmanuel17-Apr-09 3:23
Jimmanuel17-Apr-09 3:23 
Questionchanging two frames sources Pin
ahmed mega14-Apr-09 23:56
ahmed mega14-Apr-09 23:56 
AnswerRe: changing two frames sources Pin
Marc Firth15-Apr-09 21:48
Marc Firth15-Apr-09 21:48 
GeneralRe: changing two frames sources Pin
ahmed mega16-Apr-09 1:09
ahmed mega16-Apr-09 1:09 
QuestionPlaying an flv file in php... Pin
Malayil alex14-Apr-09 9:02
Malayil alex14-Apr-09 9:02 
AnswerRe: Playing an flv file in php... Pin
EliottA14-Apr-09 10:34
EliottA14-Apr-09 10:34 
QuestionPHP Pin
Dave Mackson13-Apr-09 7:49
Dave Mackson13-Apr-09 7:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.