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

Linux, Apache, MySQL, PHP

 
QuestionIRDA without IR Pin
lukeer25-Feb-13 22:30
lukeer25-Feb-13 22:30 
AnswerRe: IRDA without IR Pin
Richard MacCutchan25-Feb-13 23:52
mveRichard MacCutchan25-Feb-13 23:52 
QuestionRecord insertion error in php Pin
maniedru7-Feb-13 0:59
maniedru7-Feb-13 0:59 
AnswerRe: Record insertion error in php Pin
Graham Breach7-Feb-13 2:32
Graham Breach7-Feb-13 2:32 
GeneralRe: Record insertion error in php Pin
maniedru7-Feb-13 5:08
maniedru7-Feb-13 5:08 
GeneralRe: Record insertion error in php Pin
Graham Breach7-Feb-13 7:10
Graham Breach7-Feb-13 7:10 
GeneralRe: Record insertion error in php Pin
maniedru28-Feb-13 3:14
maniedru28-Feb-13 3:14 
Questionrevenue, tax and shipping not working in google analytics tracking code! how to do it working? Pin
Lê Đình Thanh Hải28-Jan-13 20:17
Lê Đình Thanh Hải28-Jan-13 20:17 
Transactions ID and Quantity is working! But tax, shipping and Revenue not working!
This is my php code:
PHP
 <?php
$gaorder="<script type='text/javascript'> ";
$gaorder=$gaorder."var _gaq = _gaq || []; ";
$gaorder=$gaorder."_gaq.push(['_setAccount', 'UA-32542684-1']); ";
$gaorder=$gaorder."_gaq.push(['_trackPageview']); ";
$tax=($totalCost/100)*5;
$gaorder=$gaorder."_gaq.push(['_addTran','".$code_order."','haxata.com','".$totalCost."','".$tax."','0','ThanhPho','Tinh','VietNam']); ";
global $db;
$db->getConnect();
while($row = mysql_fetch_array($result))
{
$gaorder=$gaorder."_gaq.push(['_addItem','".$code_order."','".$row[Product]."','".$row[Name]."','".$row[Name]."','".$row[Cost]."','".$row[Number]."']); ";
}
$db->closeConnect();
$gaorder=$gaorder."_gaq.push(['_trackTrans']); ";
$gaorder=$gaorder."(function() {";
    $gaorder=$gaorder."var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ";
    $gaorder=$gaorder."ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'stats.g.doubleclick.net/dc.js';";
    $gaorder=$gaorder."var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);";
$gaorder=$gaorder."})();";
$gaorder=$gaorder."</script>";
echo $gaorder;
?>


Please help me! thank you so much!
Questionsum of all the fields in columns. where columns are dynamic Pin
Indudhara28-Jan-13 3:22
Indudhara28-Jan-13 3:22 
AnswerRe: sum of all the fields in columns. where columns are dynamic Pin
Mohibur Rashid11-Mar-13 22:14
professionalMohibur Rashid11-Mar-13 22:14 
Questionhow to get a object according the name of class Pin
Keanu L18-Jan-13 16:31
Keanu L18-Jan-13 16:31 
AnswerRe: how to get a object according the name of class Pin
Graham Breach18-Jan-13 22:31
Graham Breach18-Jan-13 22:31 
GeneralRe: how to get a object according the name of class Pin
Keanu L6-Feb-13 1:28
Keanu L6-Feb-13 1:28 
QuestionHow much time does it take to be a great developer in PHP? Pin
atoi_powered17-Jan-13 13:34
atoi_powered17-Jan-13 13:34 
QuestionRe: How much time does it take to be a great developer in PHP? Pin
Richard MacCutchan17-Jan-13 23:19
mveRichard MacCutchan17-Jan-13 23:19 
AnswerRe: How much time does it take to be a great developer in PHP? Pin
Manfred Rudolf Bihy18-Jan-13 4:50
professionalManfred Rudolf Bihy18-Jan-13 4:50 
QuestionDispensing text from a text file Pin
John Smith8-Jan-13 19:56
John Smith8-Jan-13 19:56 
AnswerRe: Dispensing text from a text file Pin
Zamshed Farhan12-Jan-13 3:03
Zamshed Farhan12-Jan-13 3:03 
QuestionSubmitting an ajax fetched table Pin
AkkiMo2-Jan-13 4:03
AkkiMo2-Jan-13 4:03 
QuestionI have a trouble about query_insert(). Pin
陳建勳24-Dec-12 1:31
陳建勳24-Dec-12 1:31 
AnswerRe: I have a trouble about query_insert(). Pin
ziggyfish6-Jan-13 12:36
ziggyfish6-Jan-13 12:36 
Questionwithout refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
vinay digil16-Dec-12 7:10
vinay digil16-Dec-12 7:10 
AnswerRe: without refresh the page using Submit button / Button how can i do process the dtabase operations ? Pin
Killzone DeathMan19-Dec-12 23:12
Killzone DeathMan19-Dec-12 23:12 
Questionhow can Multiple selected List box items move from one list box to another list Pin
vinay digil16-Dec-12 7:06
vinay digil16-Dec-12 7:06 
AnswerRe: how can Multiple selected List box items move from one list box to another list Pin
Killzone DeathMan19-Dec-12 22:57
Killzone DeathMan19-Dec-12 22:57 

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.