mysql - how to read all the data using for loop -


my code connection.query('call addtion("'+tr+'","'+lat+'","'+long+'","'+sp+'","'+dat+'","'+start+'","'+stop+'",@phonenos,@nameofstop,@busstartstatus);select @phonenos phonenos;select @nameofstop nameofstop;select @busstartstatus busstartstatus',function(err,result){  console.log("connection.query('call addtion("'+tr+'","'+lat+'","'+long+'","'+sp+'","'+dat+'","'+start+'","'+stop+'",@phonenos,@nameofstop,@busstartstatus);select @phonenos phonenos;select @nameofstop nameofstop;select @busstartstatus busstartstatus'"); 

my question have

24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a,24245676856859870d0a,242457658658786870d0a

now taking lastdata ie,242457658658786870d0a

if given data store in array use foreach loop this

foreach($data $str) {   echo $str."<br>"; } 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -