Online request for a small question $ query & quot; selectnccfromCity & quot; $ resultmysql_query ($ query); while (list ($ ncc) mysql_fetch_row ($ result) {& nbsp; & nbsp; $ a $ ncc .,; & nbsp; echo $ a; & nbsp an online Q & a request
$ Query = "select ncc from City ";
$ Result = mysql_query ($ query );
While (list ($ ncc) = mysql_fetch_row ($ result )){
$ A = $ ncc .',';
// Echo $;
}
$ String = "$ ";
I want to pass all the ncc values of all databases to $ a for $ string = "all ncc". how can I implement this? thank you!
------ Solution --------------------
$ -'';
While (list ($ ncc) = mysql_fetch_row ($ result )){
$ A. = $ ncc;
}
$ String = $;
------ Solution --------------------
$ A = '';
$ Query = "select ncc from City ";
$ Result = mysql_query ($ query );
While (list ($ ncc) = mysql_fetch_row ($ result )){
$ A. = $ ncc .',';
// Echo $;
}
$ String = "$ ";
------ Solution --------------------
An equal sign is missing:
$ A = '';
While (list ($ ncc) = mysql_fetch_row ($ result )){
$ A. = $ ncc;
}
$ String = $;
------ Solution --------------------
While (list ($ ncc []) = mysql_fetch_row ($ result ));
Array_pop ($ ncc );
$ String = join (',', $ ncc );