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 solutio
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 but
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
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
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
> 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
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 info
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 You
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 Unch
Just wanna test,if this works...;)
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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 "".$result;
return $this->r
Ok,I got it:
function seek( $result, $row )
{
mysql_data_seek( $result, $row );
return $this->row( $result );
}
instead of:
function seek( $result, $row )
{
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 Da
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
Of course, there is a command-line startup option to set it. Or set it in
your my.cnf file.
On Mon, 28 Oct 2002, Leif K-Brooks wrote:
> Is there any way to change how many connections mysql allows? I keep
> getting the too many connections error... (not using pconnect)
>
> --
> The above messag
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
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 ca
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,
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 fi
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
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; }
--
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 [mailto:eurlei
24 matches
Mail list logo