[PHP-DB] Re:[PHP-DB] Re: Print data

2002-10-28 Thread xde7ori
I'm interested in examples with codes thanks in advance.. From: Dan Koken [EMAIL PROTECTED] Date: 2002/10/25 Fri AM 06:12:55 GMT+03:00 To: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: [PHP-DB] Re: Print data We faced this problem, and decided if we couldn't get a good solution to

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-28 Thread Brent Baisley
If you want to have an answer for each item, you should use yes/no radio buttons. With checkboxes you only get yes answer, as you are aware. The assumption is that you could care less about no answers since you are only interested in the yes set. Checkboxes reveal yes answers, radio buttons

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-28 Thread Jeffrey_N_Dyke
how about a default value...so if you use a CHECKBOX_FIELD1 ENUM('Y', 'N') DEFAULT N type of definition, then if box is not checked, then it will deault to N otherwise a Y will override the default. just a thoughtdont' know if it will work for you or not... Jeff

RE: [PHP-DB] PHP/MySQL and passing url params

2002-10-28 Thread alex hogan
How do I set $row_rsID['userID']? Do I use (isset($row_rsID['userID']); or something similar? Would I define an array, $my_array[]; and then look to populate the array dynamically? $my_array[0] = something; $my_array[1] = something else; I've probably missed something in the docs but I don't

RE: [PHP-DB] PHP/MySQL and passing url params

2002-10-28 Thread Peter Beckman
Why'd you use it in the first place? Where does $row_rsID['userID'] get set? Why is it in your script if you don't know where it is set and what it is set to? You set it like this: $row_rsID['userID'] = whatever you want here, probably an int like '0'; Several ways to define arrays: $array =

RE: [PHP-DB] PHP/MySQL and passing url params

2002-10-28 Thread alex hogan
Why'd you use it in the first place? Where does $row_rsID['userID'] get set? Why is it in your script if you don't know where it is set and what it is set to? It was generated by Dreamweaver, had it not been automatically generated code we wouldn't be having this conversation. See, I'm not

RE: [PHP-DB] PHP and MS-SQL

2002-10-28 Thread Axel Bergmann
Thanks Frank! -Original Message- From: Frank M. Kromann [mailto:frank;kromann.info] Sent: Sunday, October 27, 2002 4:22 AM To: Axel Bergmann; [EMAIL PROTECTED] Subject: RE: [PHP-DB] PHP and MS-SQL Hi, It is true that FreeTDS works with MS SQL Server, but I think you need a bit more

[PHP-DB] newbie thank you

2002-10-28 Thread Seabird
Hi everyone, Thanx for the help on my last question (localhost vs remote). Although Peter gave me a hard time, his solution worked. Thank you for putting up with my ingorant newbie behaviour. Jacco -- http://seabird.jmtech.ca Attitude is Everything! But Remember, Attitudes are Contagious! Is

Re: [PHP-DB] Dealing with Unchecked Checkboxes

2002-10-28 Thread Graeme McLaren
Hi all, thanks for all your replies, I got the problem with checkboxes fixed :) Cheers, Graeme :) - Original Message - From: [EMAIL PROTECTED] To: Graeme McLaren [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, October 28, 2002 3:53 PM Subject: Re: [PHP-DB] Dealing with Unchecked

[PHP-DB] testing

2002-10-28 Thread V919V
Just wanna test,if this works...;) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] data_seek and fetch_row

2002-10-28 Thread V919V
Hi, I got a query and I want to jump through the results.Here's my query: $various_query = $db-query( SELECT int_param5, char_param1, is_admin_pass

Re: [PHP-DB] data_seek and fetch_row

2002-10-28 Thread Peter Beckman
One problem: you are using a database wrapper for which you have provided no information. $db-query is a function of a class $db, but we don't know what that function does exactly. Anyway, the $queryid doesn't contain a valid MySQL result resource. So go back a few steps. Is $various_query a

Re: [PHP-DB] data_seek and fetch_row

2002-10-28 Thread V919V
Yeah,it returns Resource id #2.My whole wrapper works,except of this function ;) Hmm...I tried this: function seek( $result, $row ) { $result = mysql_data_seek( $result, $row ); print br.$result; return

[PHP-DB] Mysql too many connections?

2002-10-28 Thread Leif K-Brooks
Is there any way to change how many connections mysql allows? I keep getting the too many connections error... (not using pconnect) -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- PHP

[PHP-DB] can php capable of accessing javabeans?

2002-10-28 Thread Buics
hi, Anybody knows how to access javabeans using PHP? --tia -- We are what we repeatedly do. Excellence, then, is not an act, but a habit. -Aristotle(BC 384-322 Greek Philosopher) -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PHP/MySQL and passing url params

2002-10-28 Thread dwalker
Are you working with the PHP model that came with MX or are you working with PHAKT's PHP model for UD -Original Message- From: alex hogan [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Sunday, October 27, 2002 6:43 PM Subject: [PHP-DB] PHP/MySQL and passing url params Hi

RE: [PHP-DB] PHP/MySQL and passing url params

2002-10-28 Thread alex hogan
I am using PHAKT's PHP model. -Original Message- From: dwalker [mailto:dwalker;healthyproductsplus.com] Sent: Monday, October 28, 2002 8:43 PM To: alex hogan; [EMAIL PROTECTED] Subject: Re: [PHP-DB] PHP/MySQL and passing url params Are you working with the PHP model that came with

Re: [PHP-DB] PHP/MySQL and passing url params

2002-10-28 Thread dwalker
I discovered bugs with PHAKT PHP for UD4 but was able to create work arounds. Did you make the mistake of installing the XME phakt 1.5.x module?? -Original Message- From: alex hogan [EMAIL PROTECTED] To: 'dwalker' [EMAIL PROTECTED]; [EMAIL PROTECTED] [EMAIL PROTECTED] Date: Monday,

[PHP-DB] The Ethics and Access of Login

2002-10-28 Thread Sarah Gray
list, I have been using .htaccess pages formatted to read username/password from a mysql database, and they work fine. But I'm wondering, wouldn't it be simpler to simply write a script that checks a database itself, and, if it finds the username, goes on to the next action; and if it doesn't

RE: [PHP-DB] The Ethics and Access of Login

2002-10-28 Thread Daevid Vincent
Well, what I would suggest is you log them in once, then set a session variable such that $_SESSION[login] = true; Then at the top of each page, just check if they're logged in or not. if( !$login ) { Header(Location: .$LOGINPAGE.\n\n); exit; } No hit to the db for every page. If you're in

Re: [PHP-DB] The Ethics and Access of Login

2002-10-28 Thread Leif K-Brooks
That's a HUGE security flaw! Anyone could send that in a GPC value and get unauthorized access! USE $_SESSION['login'] INSTEAD!!! Daevid Vincent wrote Then at the top of each page, just check if they're logged in or not. if( !$login ) { Header(Location: .$LOGINPAGE.\n\n); exit; } -- The

RE: [PHP-DB] The Ethics and Access of Login

2002-10-28 Thread Daevid Vincent
Oh yeah. My bad. I forgot. I changed my directives to be smarter than that ;-) http://www.php.net/manual/en/configuration.directives.php Yes, the person is passing it in, but it will get over-ridden by the session and mooted out. -Original Message- From: Leif K-Brooks