En cours

Convert PHP code block to Coldfusion

Hi,

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!

Thanks,

jo

Compétences : ColdFusion, PHP, SQL

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é à :

donquist

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

40 $ USD en 0 jours
(1 Commentaire)
1.2

2 freelance ont fait une offre moyenne de 45 $ pour ce travail

MakeYouBelieve

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

50 $ USD en 0 jours
(32 Commentaires)
4.5