[PHP] Utilizing info from 2 tables in the database

2001-07-26 Thread Brad R. C.
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

Re: [PHP] Example high-profile PHP sites

2001-07-26 Thread Brad Hubbard
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

Re: [PHP] MySql number/string comparing ideas...

2001-07-25 Thread Brad Wright
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

Re: [PHP] new lines in text fields

2001-07-25 Thread Brad Wright
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

[PHP] session cookies not destroyed

2001-07-25 Thread Brad Wright
. 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]

Re: [PHP] MySql number/string comparing ideas...

2001-07-25 Thread Brad Wright
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

Re: [PHP] The Program!

2001-07-24 Thread Brad Hubbard
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]

[PHP] Printing a HTML page

2001-07-20 Thread Brad Hubbard
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

[PHP] Image Submission into a Database Updating

2001-07-19 Thread Brad R. C.
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!..

Re: [PHP] mysql_query problem (FINALLY FIXED !!!!!!!)

2001-07-17 Thread Brad Wright
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

[PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
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

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
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

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread 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

Re: [PHP] Whats wrong with this code?

2001-07-16 Thread Brad Wright
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

[PHP] mysql_query problem

2001-07-16 Thread Brad Wright
?? 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]

Re: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Brad Wright
('$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

Re: [PHP] mysql_query problem (more suggestions)

2001-07-16 Thread Brad Wright
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

Re: [PHP] Fetching binaires from an e-mail

2001-07-10 Thread Brad Hubbard
/ 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

[PHP] encrypting session variables

2001-07-09 Thread Brad Wright
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

Re: [PHP] encrypting session variables

2001-07-09 Thread Brad Wright
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

[PHP] form action problem

2001-07-09 Thread Brad Wright
'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]

Re: [PHP] Re: changing to a different file in browser

2001-07-08 Thread Brad Wright
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

Re: [PHP] FEDEx API's

2001-07-06 Thread Brad Hubbard
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

[PHP] session troubles

2001-07-05 Thread Brad Wright
/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

Re: [PHP] FEDEx API's

2001-07-05 Thread Brad Hubbard
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

[PHP] changing to a different file in browser

2001-07-05 Thread Brad Wright
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

Re: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Brad Wright
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

Re: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Brad Wright
-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

Re: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Brad Wright
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

RE: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Brad Wright
??? 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

Re: [PHP] Re: changing to a different file in browser

2001-07-05 Thread Brad Wright
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

Re: [PHP] Getting Information from a CGI POST

2001-07-03 Thread Brad Hubbard
(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

Re: [PHP] Objects and sessions

2001-07-03 Thread Brad Hubbard
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

Re: [PHP] Shell scripting and PHP.

2001-07-03 Thread Brad Hubbard
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

[PHP] Sina.com

2001-07-03 Thread Brad Hubbard
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

Re: [PHP] Pricing Advice Needed

2001-07-01 Thread Brad Hubbard
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]

Re: [PHP] Pricing Advice Needed

2001-07-01 Thread Brad Hubbard
) $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

Re: [PHP] Pricing Advice Needed

2001-07-01 Thread Brad Hubbard
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]

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
@:%_~#\?/]), 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

Re: [PHP] Re: Regular Expression help

2001-06-30 Thread Brad Hubbard
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

Re: [PHP] making e-mail link

2001-06-30 Thread Brad Hubbard
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

Re: [PHP] Capturing output of shell script.

2001-06-30 Thread Brad Hubbard
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

Re: [PHP] Sending html email

2001-03-23 Thread Brad Hubbard
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

[PHP] Authenticating happening on another box.

2001-03-13 Thread Brad Kittredge
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

[PHP] Sites Using PHP - For a presentation

2001-03-05 Thread Brad Landis
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

<    3   4   5   6   7   8