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

rdbms - what exactly the undo information lives in oracle? -

bash - How do you programmatically add a bats test? -

java - Getting exception in JDBC thin driver -