http://www.perlmonks.org?node_id=11159511


in reply to Problem with doubles results

Please post the actual code together with its actual output. The code you posted cannot produce the output you show:

SELECT name country gender FROM tbl_U WHERE location = ?

This is not valid SQL.

{ "info": "\t\t\t\t\t\t \n<p>John UK Male</p> \n<p>Kieth UK Male</p>" ...

This output cannot be produced by

$json_msg .= <<HTML; <p>$name $country $gender</p> HTML

... as this line does not contain any tabs.

You may want to learn about scoping and where to put your variable declarations. Or at least think about why you are appending to $json_msg, instead of simply setting it to the desired value.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.