rene.n has asked for the wisdom of the Perl Monks concerning the following question:
$user = getenv("REMOTE_USER"); $db = mysql_connect("localhost", "user", "password"); mysql_select_db("db", $db); $result = mysql_query("SELECT * FROM tablename WHERE username = ' +$user'"); $engr = mysql_result($result,0,"engr"); $team = mysql_result($result,0,"team_name"); $position = mysql_result($result,0,"team_position"); $group = mysql_result($result,0,"grp"); $level = mysql_result($result,0,"level");
edited: Wed Sep 18 03:58:42 2002 by jeffa - code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting a value from a PHP script
by kabel (Chaplain) on Sep 18, 2002 at 05:55 UTC | |
|
Re: Getting a value from a PHP script
by jens (Pilgrim) on Sep 18, 2002 at 05:12 UTC | |
|
Re: Getting a value from a PHP script
by blm (Hermit) on Sep 18, 2002 at 11:46 UTC | |
|
Re: Getting a value from a PHP script
by thunders (Priest) on Sep 18, 2002 at 13:37 UTC | |
|
Re: Getting a value from a PHP script
by Aristotle (Chancellor) on Sep 18, 2002 at 18:15 UTC | |
by jens (Pilgrim) on Sep 18, 2002 at 23:14 UTC | |
by Aristotle (Chancellor) on Sep 18, 2002 at 23:27 UTC | |
by thunders (Priest) on Sep 19, 2002 at 00:49 UTC |