shop999 Posted October 28, 2011 Report Share Posted October 28, 2011 Hallo kann jemand eine Anfrage umleiten in eine CSV Datei und per email senden? für Veyton 4.13 Das Anfrage - Formular würde ich dann gerne erweitern zB Artikelnr Stückzahl Bitte um Vorschläge. ( Anfragen and diverse Supporter waren OHNE Rückmeldung!!! Link to comment Share on other sites More sharing options...
9Gleis1/2 Posted October 29, 2011 Report Share Posted October 29, 2011 @shop999 Anfragen and diverse Supporter waren OHNE Rückmeldung!!! Zuvor noch einen großen Schluck auf Adodb . Was ist die Welt schön wenn die Weinflasche daneben ist. Auf der Webseite (ADOdb Library for PHP) steht nachfolgender Quellcode. Ein bisschen umgestellt, die Eingabedaten des Kontaktformulars abgefangen und der EMail-Klasse phpmailer einen csv-Header mit der CSV-Datei uebergeben und fertig ist der Vorschlag.Der Vorschlag spart den Supporter, wenn man das veraendern und umsetzen kann. /* Exporting in CSV or Tab-Delimited Format Some helper functions to export in comma-separated-value (CSV) and tab-delimited formats. Carriage-returns or newlines are converted to spaces. Field names are returned in the first line of text. Strings containing the delimiter character are quoted with double-quotes. Double-quotes are double-quoted again. This conforms to Excel import and export guide-lines. All the functions take as an optional last parameter, $addtitles which defaults to true. When set to false field names in the first line are suppressed. */ $rs = $db->Execute('select fname as "First Name", surname as "Surname" from table'); print "<pre>"; print rs2csv($rs); # return a string, CSV format print '<hr>'; $rs->MoveFirst(); # note, some databases do not support MoveFirst print rs2tab($rs,false); # return a string, tab-delimited false == suppress field names in first line print '<hr>'; $rs->MoveFirst(); rs2tabout($rs); # send to stdout directly (there is also an rs2csvout function) print "</pre>"; $rs->MoveFirst(); $fp = fopen($path, "w"); if ($fp) { rs2csvfile($rs, $fp); # write to file (there is also an rs2tabfile function) fclose($fp); } [/PHP] Link to comment Share on other sites More sharing options...
shop999 Posted October 31, 2011 Author Report Share Posted October 31, 2011 hallo danke für den tip.! sowas liest man selten hier. leider kann ich da snicht umsetzen ,da kein PHP profi. kannst du mir es machen? würde aber ungerne den XT CODE umändern oder kann man evtl die bestellung in eine anfrage umleiten? das wär evtl praktischer? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.