I have a value from a database that I want to place into a javascript array but I am not able to see it in the output.
var sales = [{
label: 'Delivered',
data: [[1, 0],[2,0],[3,0],[4,0],[5,0],[6,0],[7,echo **<?php $row['totaldeliveredsms'];?>**],[8,0],[9,0],[10,0],[11,0],[12,0]]
},{
label: 'Pending',
data: [[1, 0],[2,0],[3,0],[4,0],[5,0],[6,0],[7,echo **<?php $row['totaldeliveredsms'];?>**],[8,0],[9,0],[10,0],[11,0],[12,0]]
},{
label: 'Undelivered',
data: [[1, 0],[2,0],[3,0],[4,0],[5,0],[6,0],[7,echo **<?php $row['totaldeliveredsms'];?>**],[8,0],[9,0],[10,0],[11,0],[12,0]]
}
];
Why are the values not shown in the output?
echo
... – Florent Oct 18 '12 at 13:35echo **<?php $row['totaldeliveredsms'];?>**
certainly looks suspicious... – Wesley Murch Oct 18 '12 at 13:37