
09-23-2007
|
| Administrator
Join Date: Jun 2007
Posts: 3,729
BRL$: 34,435.80 Thanks: 0
Thanked 6 Times in 6 Posts
Rep Power: 405 | | I have no clue on what to put as the title, its to do with mkinga $var ... name? Hi, ok, this is a bit confusing. im TRYING to make a function which basically will generate the array you get from a mysql_fetch_array ok heres the function.PHP:---------function db_row_modules($field, $arrayanme){$res = mysql_query("SELECT $field FROM modules");$row = mysql_fetch_array($res);$.$arrayval = $row;return $row;}--------- and im trying to use it like so. PHP:---------db_row_modules(module_name, modules);foreach($modules as $module){echo ''.$modules['module_name'].'
';}--------- obvious it dont work To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. and i get the error of unexpected $. So how do i cange the name of a VAR? help To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts.
To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ █ High Quality To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ Powerful To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
█ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
To receive latest updates about BRL Forums, Subscribe to Latest Updates Thread.
| | | |