Browse Source

check_table_field return all fields

master
Robin Thoni 10 years ago
parent
commit
9b553ad844
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      utils.php

+ 2
- 2
utils.php View File

54
   $headers = apache_request_headers();
54
   $headers = apache_request_headers();
55
   if (!isset($headers[$header]))
55
   if (!isset($headers[$header]))
56
     return false;
56
     return false;
57
-  $u = database_exec("SELECT id FROM $table WHERE `$field` = :data",
57
+  $u = database_exec("SELECT * FROM $table WHERE `$field` = :data",
58
     array(":data" => $headers[$header]))->fetch();
58
     array(":data" => $headers[$header]))->fetch();
59
   if (!$u)
59
   if (!$u)
60
     return false;
60
     return false;
61
-  return $headers[$header];
61
+  return $u;
62
 }
62
 }
63
 
63
 
64
 ?>
64
 ?>

Loading…
Cancel
Save