php - mysql_fetch_array is getting one value on my query -



php - mysql_fetch_array is getting one value on my query -

i trying print list of info mysql table, , want print info table related first table. first list okay, sec printing lastly row of data.

$queryfunc=mysql_query("select * title"); foreach ($func $funcc){ $iddd=$funcc[0]; $funcao=$funcc[1]; echo "<li class='has-sub'><a><span>" .$funcao. "</span></a>";

at point, have total list of info first table. need take id of row of first list, , print next info related id:

$newq=mysql_query("select nome utilizadores title=$iddd"); $namm=array(); while ($rowww=mysql_fetch_array($newq)) $namm[]=$rowww; foreach ($namm $nomi){ $nee=$nomi[0]; echo "<ul><a href='php/curriculo.php?nomeut=$nomes' target=_blank>" .$nee. "</a></ul>"; } }

here, printing lastly result table.

thanks

php mysql

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -