Lets say I have created 2 tables :
create table comments {contents}
userid
username
comment
datetime
user
ip
primary key
key
table users {contents}
userid
username
and many more.. :)
--
if I want to get that to work togther to add comments to users would I have
something like
On Fri, 27 Jul 2001 07:15, Tom Malone wrote:
Doesn't Google use PHP?
Tom
GoEureka (AltaVista in Australia) do.
www.goeureka.com.au/super.php
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I would use something like this:
Select * from table where value1 500 AND value2 100
hope this helps,
brad
From: elias [EMAIL PROTECTED]
Date: Fri, 13 Jul 2001 07:06:26 -0700
To: [EMAIL PROTECTED]
Subject: [PHP] MySql number/string comparing ideas...
Hi!
How is it possible to do
use the 'nl2br' fuction‹ Inserts HTML line breaks before all newlines in a
string
From: Mat Marlow [EMAIL PROTECTED]
Date: Fri, 6 Jul 2001 16:06:58 +0100
To: [EMAIL PROTECTED]
Subject: [PHP] new lines in text fields
Hi all,
I am in desperate need for a solution to HTML text fields not
. even better, does anyone know how
to solve this problem. :)
Thanks in advanced,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
elias,
I would have to agree with Lawrence, and recommend re-designing your
database, unless there is a specific reason preventing you doing this (ie
like months of your life invested in the product ; )
otherwise, only allowing numerical input is a good start tho :)
brad
From: elias [EMAIL
and
deleted it again all the time mumbling I'm glad you're dead.
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
available on
windows? Usually it's the reverse :-)
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: [EMAIL PROTECTED]
Ph: +61-3-94645981
Fax: +61-3-94645982
Mob: +61-419107559
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Ok.. I have created a submission form that works great just like what I
want..
but there is one minor detail if possible to figure out. When I let users
upload a photo to my site, the image will be stored on the server hdd and
the name of the image will be stored in the database. Works great!..
not
as crazey as I thought i was going.
I guess the lesson here is to step back once in a while and try looking
'around the edges' of a wall. Its amazing what you may find :).
Once again, thanks to all those kind souls who gave up there own time to try
to help this ol' fool.
Cheers,
Brad
From
in advance,
Brad
// * Check for existing duplicate login
$result = mysql_query(SELECT * FROM Login_TB where Login='$Login',$db) or
die (ouch);
$num_rows = mysql_num_rows($result);
// echo $num_rows;
if ($num_rows != 0)
{
session_register(errorMsg);
$errorMsg
Rasmus,
you are dead right, it is returning 0 rows. I checked that before
submiytting the original post. Sorry, i should have mentioned it. I guess
the question is, why is it returning no rows?
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 19:56:29 -0700 (PDT)
To: Brad Wright
Yep, I realise there was a discrepancy in the table names. That wasnt the
issue , i reposted the corrected code as soon as i realised.
From: David Robley [EMAIL PROTECTED]
Organization: Centre for Injury Studies
Reply-To: [EMAIL PROTECTED]
Date: Tue, 17 Jul 2001 12:53:57 +0930
To: Brad
The only data in the table (Login_TB) is one row:
Login = a, and Pass= password('a').
From: Rasmus Lerdorf [EMAIL PROTECTED]
Date: Mon, 16 Jul 2001 20:24:44 -0700 (PDT)
To: Brad Wright [EMAIL PROTECTED]
Cc: PHP General List [EMAIL PROTECTED]
Subject: Re: [PHP] Whats wrong with this code
??
Thanks in advance,
brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
('$password') will (...does, i just double checked) causes a Fatal
Error 'Undefined Function'.
Nice try tho :)
From: Alvin Tan [EMAIL PROTECTED]
Date: Tue, 17 Jul 2001 13:07:45 +0800
To: Brad Wright [EMAIL PROTECTED]
Subject: Re: [PHP] mysql_query problem (more suggestions)
Then,
how about
Jason,
I have tried what yoiu suggested. result is the same.
From: Jason Murray [EMAIL PROTECTED]
Date: Tue, 17 Jul 2001 15:28:11 +1000
To: 'Brad Wright' [EMAIL PROTECTED], Alvin Tan
[EMAIL PROTECTED], PHP General List [EMAIL PROTECTED]
Subject: RE: [PHP] mysql_query problem (more
/
HTH,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: [EMAIL PROTECTED]
Ph: +61-3-94645981
Fax: +61-3-94645982
Mob: +61-419107559
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Hi all,
Is there a simple way to encrypt session variables. If so, is there a method
to 'decode' the encrypted session variable when required?.
Thanks in advance,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
Tyrone,
Make an MD5 hash using the session variable. Make it again (with the same
seed) before using it, if the hashes don't match, it's been messed with.
I'm sorry, I'm not sure what an MD5 hash is. Could you elaborate and/or
point me towards some documentation.
Thanks,
Brad
--
PHP
'functionA() '
is called (using php variables already defined before the form.)
Thanks
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
it was in fact the mistake that was causing the whole problem. Was there a
reason?...too little sleep and too much caffeine I'd say :)
From: motorpsychkill [EMAIL PROTECTED]
Date: Fri, 6 Jul 2001 20:38:18 -1100
To: Brad Wright [EMAIL PROTECTED]
Subject: RE: [PHP] Re: changing to a different
Visual Basic or any language that
will allow a connection to a Windows DLL.
/snip
If you want to do this in PHP I don't think this is the way to do it.
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
/files/ibays/test/html/login2.php:1) in
/home/e-smith/files/ibays/test/html/login2.php on line 1
What does this mean?? If i comment out the session_start() line, i dodnt
get this message BUT i also dont get the session variuables i need.
Hope Im making some sense, Hope someone can help.
Thanks,
Brad
On Fri, 6 Jul 2001 02:10, Daniel Guerrier wrote:
The FED Es api suite says tat windows is a
requirement.
URL?
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: [EMAIL PROTECTED]
Ph: +61-3-94645981
Fax: +61-3-94645982
Mob: +61
forgotten how i did it).
ie (no the following is NOT actual PHPsheesh :)
.
If a=1
go to required_page.php
else
do nothing
Thanks in advance,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
in IE:
Warning: Cannot add header information - headers already sent by (output
started at /home/e-smith/files/ibays/bigpool1/html/login.php:1) in
/home/e-smith/files/ibays/bigpool1/html/login.php on line 1
Thanks in advance,
brad
From: Inércia Sensorial [EMAIL PROTECTED]
Date: Thu, 5 Jul 2001 22
-General [EMAIL PROTECTED]
Subject: RE: [PHP] Re: changing to a different file in browser
put Location before the URL:
header(Location: http://server.com/file.php;);
or
header(Location: ./file.php);
-Original Message-
From: Brad Wright [mailto:[EMAIL PROTECTED]]
Sent: Thursday
Cheers,
Brad
From: ..s.c.o.t.t.. [EMAIL PROTECTED]
Date: Thu, 5 Jul 2001 23:13:09 -0700
To: Php-General [EMAIL PROTECTED]
Subject: RE: [PHP] Re: changing to a different file in browser
even a blank line at the end of a file that you're
include()ing will break header.
you could use output
???
cheers,
brad
From: Brian White [EMAIL PROTECTED]
Date: Fri, 06 Jul 2001 13:59:45 +1000
To: Brad Wright [EMAIL PROTECTED], PHP General List
[EMAIL PROTECTED]
Subject: Re: [PHP] Re: changing to a different file in browser
At 13:36 6/07/2001 +1000, Brad Wright wrote:
I'm sure there is something
Brian, Oh Brian, you wonderful person you..
thank you, i still have most of my hair ready for my next encounter with an
annoying error.
Thank you to all who helped, my weekend suddenly is looking much rosier :)
Cheers,
Brad
From: Brian White [EMAIL PROTECTED]
Date: Fri, 06 Jul 2001 14:39
(monthNames should be defined futher up the page within a script tag) so it
could be anything) there doesn't appear to be a + in there though so it's
more likely selectDay=July02 or selectDay=0702 or selectDay=702.
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
On Tue, 3 Jul 2001 11:47, Ethan Schroeder wrote:
If what you mean is if PHP sessions can register objects, that is true and
quite effective.
Can you elaborate on this Ethan so I'm sure I understand what you're saying.
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net
On Tue, 3 Jul 2001 17:46, Ray Hilton wrote:
I think it's the same as perl, using the backtick operator, ie:
$result = `uptime`;
That's ` NOT '
Look at passthru() exec() and system() as well.
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia
Is anyone else getting this sina.com crap?
Could the moderators/administrators of the list take a look at it?
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
though heh?
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
) $dofoo = fobar( $foo ) else $dofoo = foobar($bar);
I think I'm being exploited ! :-)
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL
this was completely inconsistent based on
programming style.
Cheers,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
@:%_~#\?/]),
A HREF=\\\1\ TARGET=\_blank\\\1/A, $text);
$text =
ereg_replace(([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}),A
HREF=\mailto:\\1\;\\1/A, $text);
return $text;
}
Excuse the wrapping butchery.
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive
a second domain?
How 'bout;
---snip---
if ((!$email)
|| ($email==)
|| (!eregi(^[_\.0-9a-z-]+@domain|otherdomain.+[a-z],$email)
)
$stop = center._ERRORINVEMAIL./centerbr;
---snip---
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria
it would only show www.something.com
when linked, that would be perfect.
Dohh!
if( !ereg( http, $text ) )
should be
if( !ereg( ftp|http, $text ) )
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: [EMAIL PROTECTED]
Ph: +61-3-94645981
using exec, passthru, ``, system, and escapeshellcommand. Nothing
seems to work. any ideas?
$capture = `script.sh 21`; // redirect standard error to standard output
Cheers,
Brad
--
Brad Hubbard
Congo Systems
12 Northgate Drive,
Thomastown, Victoria, Australia 3074
Email: [EMAIL PROTECTED]
Ph
Can anybody tell me the easiest and quickest way to send email in HTML
format?
http://www.php.net/manual/en/function.mail.php
Read it.
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
I hope I can pose this question sensibly.
I'm working on an application that will supply somewhat sensitive
information to users that are authenticated against another server, and
I'd like to know how this is possible:
The user request a "home" page that will sit on an NT/IIS /ASP server, and
Hi all,
I am looking for some big name sites using PHP.
I will be doing a presentation next month and would like to show a list of
sites that are using PHP.
Thanks for your Help
___
Send a cool gift with your E-Card
701 - 745 of 745 matches
Mail list logo