Jump to content
Larry Ullman's Book Forums

kennedy

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by kennedy

  1. hi i 've got difficulty fetching currently logged in user data for display and further editing here is my code from (users.php) or what most refer to "functions.php function user_data($user_id) { $data = array(); $user_id = (int)$user_id; $func_num_args = func_num_args(); $func_get_args = func_get_args(); if ($func_num_args > 1){ unset($func_get_args[0]); $fields = '`' . implode('`, `', $func_get_args) . '`'; $data = mysql_fetch_assoc(mysql_query("SELECT $fields FROM `log_in_registrar` WHERE `user_id` = $user_id")); print_r($data); die(); return $data; } } i hope it makes some sense regards
×
×
  • Create New...