[PHP-DB] nested ifs?

2001-04-20 Thread Liz Bander
Before I delete something from the database, I need to make sure that there is only one entry, and not multiple ones. I can't do this via the database itself, because of the need for multiple entries that bear different names, but the same primary key (which I have since removed). I can't

[PHP-DB] php/mysql error

2001-04-09 Thread Liz Bander
/local/nusphere/apache/htdocs/ese-lab/Protect/add.php3 on line 162 Any ideas??? Thanks!!! Liz Bander This is the function that it's in: #== # sub main() { if ($cancel != '') { include '../Include/conf.inc'; header

[PHP-DB] display login info

2001-04-02 Thread Liz Bander
I want to display a user's full name and user id that would be from their login action. (The login stuff is already set up.) How would I be able to grab the user id from the login? Any ideas on where to look? Thanks, Liz -- PHP Database Mailing List (http://www.php.net/) To unsubscribe,

[PHP-DB] error and general problems

2001-03-26 Thread Liz Bander
I am getting a parse error for the return line every time I try and view the page. Can anyone tell me why? The code is below. $results = "select req, source, number from orders where req=" . $GLOBALS["req"] . ", source=" . $GLOBALS["source"] . ", number=" .$GLOBALS["req"] . ""; if

[PHP-DB] dropdown menu

2001-03-16 Thread Liz Bander
Okay, maybe this is simple, but I'm at wit's end. I have a drop down menu (code follows) and I want it to show full name (i.e. John Doe) ordered by last name. Works fine under normal circumstances, but then I need it to write the email id associated with the full name to the database. It

[PHP-DB] mail function

2001-03-07 Thread Liz Bander
I need to make an email link in a table. The username is displayed as text; I need it to be a link through which I can send email. Is this possible in php? The following is the code for that I'm using: function show_logged_users($user) { $query = "select distinct uid, cn from log left

[PHP-DB] sorting and links

2001-02-14 Thread Liz Bander
OK, I'm sure that the answers are extremely simple, but I'm having two problems. 1. How do I sort a list through PHP alphabetically? This is a drop-down menu full of part numbers and it's a pain in the neck to search for the right one through about a thousand of them. Currently, the sort

[PHP-DB] php to mysql probs.

2001-02-05 Thread Liz Bander
books out there written about using MySQL and PHP together? Most of the PHP books that I've seen online have had rather poor reviews by readers. Thanks, Liz Bander. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail