Convert PHP code block to Coldfusion


I am using a jquery auto-complete and need to convert this PHP code block to Coldfusion so it works in my application:

$suggestions = "";

$data = "";

$query = "SELECT id, name FROM clients WHERE name LIKE '%".$_REQUEST['query']."%' ";

$cliente = mysql_query($query);

while($linha = mysql_fetch_array($cliente)) {

$suggestions .= "'".nl2br($linha['name'])."', ";

$data .= "'".nl2br($linha['id'])."', ";


echo "{ query:'".$_REQUEST['query']."',suggestions:[".substr($suggestions,0,-2)."],data:[".substr($data,0,-2)."] }";

The auto-complete is here:

[url removed, login to view]

I will supply my SQL query (which I need a little help with too) once this task is assigned.

I need this task done now - well in the next couple hours - so don't bid if you're going to bed!



Compétences : ColdFusion, PHP, SQL

en voir plus : convert php coldfusion code, convert php code coldfusion, convert php code coldfusion code, php autocomplete, id to code, convert coldfusion to php, convert coldfusion code php, convert php coldfusion, Sql code, php code, data convert, convert php, block, autocomplete suggestions php, projects php sql, autocomplete suggestions, data coldfusion, fusion help, autocomplete select, php projects sql, php coldfusion, jquery autocomplete suggestions, little sql, jquery autocomplete using, jquery using autocomplete

Concernant l'employeur :
( 78 commentaires ) Kuranda, Australia

Nº du projet : #1057875

Décerné à:


Hello, I saw your request come through, already converted it and is ready.

%selectedBids___i_sum_sub_7% %project_currencyDetails_sign_sub_8% USD en 0 jours
(1 Évaluation)

2 freelance font une offre moyenne de $45 pour ce travail


Hi Sir, I'm expert in ColdFusion/PHP/SQL/Jquery. Ready to start right now. Thanks.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(32 Commentaires)