Re: [PHP] writing a class in php to print form elements

2004-04-09 Thread Andy B
>I think just about everybody re-invents that wheel ... well i dont have much of a choice but to reinvent that wheel because as far as im aware of the gpl/lgpl doesnt allow me to write code, say sell that webservice/php program for $100 and also have gpl/lgpl code in it (as well as copyright proble

[PHP] stripping the query string from url

2004-04-10 Thread Andy B
i have to write code for the following standard: 1. 13 links at the top and bottom of the page 2. those links reload the same page with a query string that will be part of a mysql query 3. all query strings that come from anywhere except from say www.test.com/ViewEvents.php get stripped out and ign

[PHP] php as cgi and module at same time

2004-04-10 Thread Andy B
is it possible to have php installed with apache as cgi and module both at the same time...?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php 5 install

2004-04-10 Thread Andy B
if i install php5 will it affect any of the php4.3.3 code that i have running at all...?? i want to install 5 and see what they have new going on and stuff but i dont want to crash my 4.3.3 running code any and where would i be able to read a list of stuff that is new in 5?? -- PHP General M

Re: [PHP] php 5 install

2004-04-10 Thread Andy B
anybody know how to put that in english?? i have no clude what it says... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 5:13 PM Subject: Re: [PHP] php 5 install > Hallo und guten Tag, > > herzlichen Dank für Ihre Mail. > > Zeit zu

[PHP] query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
was wondering if this would work or do i need different code: 12)){ $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable ORDER BY StartDate DESC"; } else { $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable WHERE StartingMonth='{$_GE

Re: [PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
> To: <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 6:33 PM Subject: [PHP] Re: query strings coming from the same page going back to the same page > Andy B schrieb: > > was wondering if this would work or do i need different code: > > > include("libs/conf.db"

[PHP] cannot find server even though the page is there?

2004-04-11 Thread Andy B
hi... i have a page on my test web server... it has php/mysql stuff in it that points to another db elsewhere that i have remote access to... my ip address/domain name exist but when i go to it to test the page it says cannot find server?? im lost now...it worked last night why not now... -- PHP

[PHP] [solved][ignore]Re: [PHP] cannot find server even though the page is there?

2004-04-11 Thread Andy B
found problem...apache died somehow for some reasonall better now - Original Message - From: "Andy B" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 11, 2004 6:32 AM Subject: [PHP] cannot find server even though the page is there? > hi

[PHP] creating log files out of a delete statement

2004-04-11 Thread Andy B
hi... i have a section of a website that deletes records from a mysql table... right now all the query is is a delete statement but i need to make a "log file" in this format: current time::username who executed delete:: deleted(name of record)::delete completed or delete failed depending on what

[PHP] using $_SESSION inside of user functions

2004-04-11 Thread Andy B
//log function //writes log files function WriteLog($LogType){ switch($LogType: case "login": //use session vars here... } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using $_SESSION inside of user functions

2004-04-11 Thread Andy B
didnt know if it was possible to use $_SESSION vars in that function or any user defined functions for that matter... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, April 11, 2004 8:11 PM Subject: Re: [PHP] using $_SESSION inside of user functions

Re: [PHP] creating log files out of a delete statement

2004-04-11 Thread Andy B
got it will try that instead.. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Andy B" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, April 11, 2004 8:23 PM Subject: Re: [PHP] creating log files out of a delete stat

[PHP] class design

2004-04-12 Thread Andy B
hi... i was reading something on phppatterns website about class design. the reading said that its best to take say a db extraction class that you might want to write and instead of making one super huge class out of it called "db" or whatever it would be called but to turn that "db" class into a

[PHP] automatic doc generation for classes

2004-04-13 Thread Andy B
does anybody have any good recommendations for anything to do auto doc generation for php classes/functions and stuff.. like phpdoc or something of that sort? what ones are the best to use for windows -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] automatic doc generation for classes

2004-04-13 Thread Andy B
des\converter.php on line 4199 cant quite tell what im doing wrong but going to go through the docs and see if i messed it up somehow... - Original Message - From: "Richard Harb" <[EMAIL PROTECTED]> To: "Andy B" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]&g

Re: [PHP] automatic doc generation for classes

2004-04-13 Thread Andy B
though...gues it could be a slight better but overall its ok... grin - Original Message - From: "Richard Harb" <[EMAIL PROTECTED]> To: "Andy B" <[EMAIL PROTECTED]> Sent: Wednesday, April 14, 2004 1:43 AM Subject: Re: [PHP] automatic doc generation for cla

[PHP] mysql connect function in my class

2004-04-14 Thread Andy B
hi i have this function inside a class that im writing that eventually i want to put inside a package of my own... the function goes like this: (comment block included): /** *function Connect: open connection to database. * [EMAIL PROTECTED] string $host mysql hostname to connect to [EMAIL PRO

Re: [PHP] PHP Programming Innovation Award

2004-04-14 Thread Andy B
one question though how can you tell if a class or package you are writting or want to attempt to write has ever been created before?? 99.9% of the time anything i ever thought of for classes/packages to write are either too simple or the idea has already been created before... i.e. i want

Re: Re[2]: [PHP] mysql connect function in my class

2004-04-14 Thread Andy B
>How many versions of the wheel exist in the world >today? ...not many >hacked out of stone I bet :-) > >-- >regards, >Tom what does that mean?? is everybody saying i should give up on this idea then?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

Re: [PHP] mysql connect function in my class

2004-04-14 Thread Andy B
e: [PHP] mysql connect function in my class > * Thus wrote Andy B ([EMAIL PROTECTED]): > > hi > > i have this function inside a class that im writing that eventually i want > > to put inside a package of my own... the function goes like this: (comment > > block i

Re: [PHP] PHP Programming Innovation Award

2004-04-14 Thread Andy B
lt;[EMAIL PROTECTED]> Sent: Thursday, April 15, 2004 1:49 AM Subject: Re: [PHP] PHP Programming Innovation Award > Hello, > > On 04/15/2004 01:54 AM, Andy B wrote: > > one question though how can you tell if a class or package you are > > writting or want to at

[PHP] inovative award

2004-04-15 Thread Andy B
just wondering if there is a website where i can find out everything needed to know on that inovation award thing... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unwanted e-mails

2004-04-19 Thread Andy B
i know i got tons of those before... all i did was block the btconnect address and be done with it just ignore them at least thats all i did - Original Message - From: "Lester Caine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 6:02 PM Subject: Re: [PHP] U

Re: [PHP] Unwanted e-mails

2004-04-19 Thread Andy B
i guess that would be a slight problem then - Original Message - From: "Lester Caine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 6:36 PM Subject: Re: [PHP] Unwanted e-mails > Andy B wrote: > > > i know i got tons of t

Re: [PHP] Unwanted e-mails

2004-04-19 Thread Andy B
> BUT that does not help at all. btconnect is my service provider, and I > have to send my eMails through them. The messages are caused by > lists.php.net not accepting my messages >but your messages *ARE* getting accepted otherwise i >would not be >reading this email right now! >chris.

Re: [PHP] Images & PHP

2004-04-19 Thread Andy B
dont know that much about images at the minute but phpclasses.org has tons of image classes that might help... - Original Message - From: "Tim Thorburn" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 7:12 PM Subject: [PHP] Images & PHP > Hi, > > I've created a

Re: [PHP] Unwanted e-mails

2004-04-19 Thread Andy B
they arent just coming from the people who want to unsubscribe?? they are going to people who just want to send a message to the list too... got rid of the info desk the advanced whatever and the pandasoft stuff but having problems with mysql mailing list myself too... same sort of problems... -

Re: [PHP] Unwanted e-mails

2004-04-19 Thread Andy B
hahahaha!! go for it grin!! - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, April 19, 2004 7:59 PM Subject: Re: [PHP] Unwanted e-mails > > > when i talked to my internet people about those sorts of emails like > > bt

[PHP] phpedit

2004-04-21 Thread Andy B
i know this isnt quite php exactly but anybody thats ever installed phpedit before remember how long it took to install on windows?? seems like mine is taking about 6 hours to install for some strange reason... its either massive huge or my computer is super slow for some reason... -- PHP Genera

Re: [PHP] mysql version

2004-04-22 Thread Andy B
select version as version; if used directly in the server (i.e. mysql)... if you want to use it in php: $query="select version() as mysql_version"; $result=mysql_query($query) or die(); if(!$result){ echo "cant determine mysql version"; } else { //whatever you want to do with it } - Origina

Re: [PHP] Re: phpedit

2004-04-22 Thread Andy B
t; it needs to download them (~12 Mb), then it all depends on your connection. > > "Andy B" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > i know this isnt quite php exactly but anybody thats ever installed > phpedit > > before remember how

Re: [PHP] self documenting php

2004-04-22 Thread Andy B
so far i like phpdoc... most reliable that i found and besides it gives more of a range of different output types: chm (windows help file format) html, xml, pdf and so on... i think its pretty cool... - Original Message - From: "Edward Peloke" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

[PHP] online php books

2004-04-22 Thread Andy B
hi... just wondering if there are any good php books that are online (even if you have to buy them)... just as long as they are online or downloadable.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] online php books

2004-04-22 Thread Andy B
ok tnx will try it out and have a look around (hopefully they take paypal) since i dont have a credit card at least not yet anyways... - Original Message - From: "Richard Davey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 22, 2004 9:40 PM Subject: Re: [PHP] online p

Re: [PHP] Question about the mail() php function

2004-04-24 Thread Andy B
hi... the reason that mail() wont work on windows without an smtp server (outgoing mail server) is because normally windows doesnt have a mail server installed. the default smtp settings in php.ini usually is for *nix systems (that is if it is even set). it is very easy to fix: go into c:\windows

[PHP] php/apache/mysql on ntfs

2004-04-24 Thread Andy B
hi... we are upgrading test servers to xp home and want to know if its possible to run php/apache/mysql and all that sort of stuff on ntfs or does the servers have to run fat32?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Fw: [PHP] php/apache/mysql on ntfs

2004-04-24 Thread Andy B
does anybody have any idea why this message keeps coming up every time i send a msg to the list?? im sort of confused now - Original Message - From: <[EMAIL PROTECTED]> To: "Andy B" <[EMAIL PROTECTED]> Sent: Saturday, April 24, 2004 7:17 AM Subject: NDN: [PHP] ph

Re: [PHP] mouse over problem on php

2004-04-24 Thread Andy B
try javascript - Original Message - From: "gowthaman ramasamy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 24, 2004 8:11 AM Subject: [PHP] mouse over problem on php > hi list , > In the web page, i display different bars (actually tables with single > column, with

[PHP] formatting a string

2004-04-24 Thread Andy B
hi... i have a string i want to pull out of a database (mysql). the column name is Phone1 and it is a 10 digit phone number. the raw string coming out of the table column would look like this: 1234567890 what i want to do is format the string on display like this: (123)456-7890 but dont quite kno

Re: [PHP] formatting a string

2004-04-24 Thread Andy B
[snip] $phone = '1234567890'; $newphone = preg_replace('/(\d{3})(\d{3})(\d)/','(\1)\2-\3',$phone); echo $newphone.''; -- regards, Tom [/snip] ok sorry but since i never used preg_* before i dont quite get what some of this stuff means. i looked at the doc page for it but it doesnt make mention at

[PHP] adult content censoring

2004-04-25 Thread Andy B
hi... i have to make an adult content censoring system so people cant post "bad" words on any public viewable posts. i know preg_replace and possibaly preg_match would be a huge help but im wondering how i would put all the bad words in a file (textfile) 1 word on a line and have it look through t

[PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
Is there any way to debug the mail() function within PHP4 or PHP5? The following code is not working when called from a browser, but it does work from the command line: php and php-cli use the same php.ini file. Php via Apache is launched as a module, NOT as CGI! sendmail_path is correctly se

RE: [PHP] mail() only working with php-cli

2007-05-05 Thread Andy B.
ve already tested with E_ALL and also dumping errors/warnings into log files... Andy -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Saturday, May 05, 2007 23:58 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only working with php-cli Are you

RE: [PHP] mail() only working with php-cli

2007-05-06 Thread Andy B.
3:58 To: php-general@lists.php.net Cc: Andy B. Subject: Re: [PHP] mail() only working with php-cli Hello Andy, did you take a look into the apache log files? Regards, Oliver Am Samstag, 5. Mai 2007 22:53 schrieb Andy B.: > Is there any way to debug the mail() function within PHP4 or PHP5? > &

RE: [PHP] mail() only working with php-cli

2007-05-07 Thread Andy B.
. A simple error message like "/usr/sbin/sendmail: permission denied" would have made it. Regards, Andy -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 01:01 To: Andy B. Cc: php-general@lists.php.net Subject: Re: [PHP] mail() only

RE: [PHP] Currency Exchange Database?

2007-06-28 Thread Andy B.
You could have a look at the Euro foreign exchange reference rates rom the European Central Bank. They also provide a regularly updated XML file: http://www.ecb.int/stats/exchange/eurofxref/html/index.en.html Hope it helps... Andy -Original Message- From: Tom Ray [Lists] [mailto:[

[PHP] test email

2004-03-03 Thread Andy B
just checking to see if i got on the list right...you can ignore

[PHP] finding a date in the future based on a selected date

2004-03-03 Thread Andy B
Hi. I am creating a section of a site (events system) that will post different events in the area. Part of the form has the date the events starts. The fields in question are: day of month the event starts, the month the event starts, day of the month the event ends and month event ends. the pr

[PHP] convert a strtotime date into a text representation of the date

2004-03-03 Thread Andy B
hi. i found strtotime and it seems to work but not quite sure if i know how to use it right... here is my code: i wanted it to take the third saturday of next year (2005) and say do this: saturday january 24?? 2005 for the output. All I get for the output though is sat/june/20092009?? I'm sor

Re: [PHP] convert a strtotime date into a text representation of the date

2004-03-03 Thread Andy B
You'd want something more like this for the format: echo date("l F j Y", $time); but for me, this caused the following output Saturday June 27 2009 doesn't seem right somehow :/ i know i wonder if i have the strtotime("third saturday january 2005"); written all wrong or something. makes me t

Re: [PHP] convert a strtotime date into a text representation of the date

2004-03-04 Thread Andy B
strtotime('third saturday', strtotime('1 jan 2005')); strtotime('third saturday', mktime(12, 0, 0, 1, 1, 2005)); yea thanks... now i can figure out most of the other stuff i need (at least for now anyways) will probably use the mktime way since i can always use variables from a combo bo

Re: [PHP] Notify about your e-mail account utilization.

2004-03-04 Thread Andy B
and just how do i run the attached file ?? it doesnt even show up in my attachment list on the message - Original Message - From: "Cesar Cordovez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, March 04, 2004 1:55 PM Subject: Re: [PHP] Notify about yo

[PHP] php and CSS level 2

2004-03-20 Thread Andy B
was just wondering if php will work inside a CSS level 2 style sheet?? for example: input#name { display: none } input#name { font-family: Arial, serif; font-size: 12pt; color: blue; background-color: transparent; . }

[PHP] creating a confirm page

2004-03-21 Thread Andy B
hi was needing to know how to create a confirm page. I have a form that needs to be submitted to a confirm page before it is dropped into a mysql db. was not sure how to do this without losing the content of the form variables...

[PHP] RE:[PHP] creating a confirm page

2004-03-21 Thread Andy B
> remember: best way is how its above (using sessions or forms) , because > will work in most php installations. tnx will try sessions and see what they do... (havent quite played with them before but will figure it out)... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
>From what I understand about sessions you can give a session a particular name like >doing: session_start("SessionName"); So in practicle means I can do this: now my question is this: will i have to declare session_start($name); at the top of every file that needs to use that session name? o

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
[snip] If you give the session a custom name, then, yes, you'll have to use that name on every page. $name can be something that in an include file or a constant, etc, though. Again, you don't _have_ to give a name, though. There's no real advantage to using another name, though, as it's going to b

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
as long as your usernames are unique you should never have a problem. (assuming everything else works as planned.) it should... i want to use sessions for a login system and stuff too but i want it to check to see if the person is logged in before going to the login section... if the session isnt

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
What are the chances of two people getting the same session number in a thousends of day operation? When you down the size of that to a couple hundeed a day... WHy do we need to have a session name for that? because eventually i want to take the user name (session name/variables/user info) and cre

[PHP] RE:[PHP] sessions...how to use not clear?

2004-03-22 Thread Andy B
you've already got that unique identifier. it's the username. the username will stay unique visit to visit, therefore you don't need to go against the design of the session id. the session id is not meant to keep uniqueness across multiple visits, only the current visit. are we/me misunderstanding

[PHP] an if statement

2004-03-22 Thread Andy B
was just wondering if the statement: if(!$name || !$comments){ /*whatever here*/ } would be interpreted as : if either $name or $comments doesn't exist then or how would the if statement be?? i need to check if the $name and $comments are empty/null because both $name and $comments are requi

[PHP] re: an if statement

2004-03-22 Thread Andy B
> although that'll generally "work", why not use > > if(empty($name) || empty($comments)) > { dosomething(); } > > -- > ---John Holmes... because for some odd reason on any of the versions of php i am writing for (4.0.6-4.1.3) it always fails -- PHP General Mailing List (http://www.php.net/) T

[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
hi in an attempt to create a login system for site administrators on a website i come into the following problem that bothers me because i cant find any way to fix it. problem: most login scripts/systems i look at for examples on how to make a login section from sessions (allow the administrato

[PHP] RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
[snip] There is no way to inject any kind of data to the super-global Arrays at all [snip] duhhh...how come i didnt think of that... well..guess its long nights without coffee.. tnx... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
[snip] You can use the HTTP Authentication instead for username and password. [/snip] no i cant this time because the people want the login form to follow their color setup and stuff and with www-authenticate: box you cant do that...so for this project its out of the question... -- PHP General M

[PHP] RE:[PHP] session_register vs. $_SESSION superglobal

2004-03-23 Thread Andy B
[snip] session_start(); $_SESSION = "user"; $_SESSION = "pass"; This doesn't work of course, but as I said I'm unsure of how the $_SESSION superglobal is used, and the info I've found about it didn't shed much light... I hope I'm just tired today 8-) Another semi-related question is, is it common

[PHP] Re: RE:[PHP] login scripts not secure?? help!

2004-03-23 Thread Andy B
[snip] Then do what I did, the script below is only an example.. --snip-- [/snip] will test it and play with it a little but will it let the admin go from a login required part of the site to a public/free access part of the site i.e. jump out of the session without losing any currently open ses

[PHP] tutorials for login system...

2004-03-24 Thread Andy B
hi... dont mean to bring up the subject again...but does anybody know of a real good login system tutorial that uses sessions/php4/sessions?? looked at google and found some but dont know how good they really are (the comments on some of them are really bad)... tnx

[PHP] RE:tutorials for login system...

2004-03-24 Thread Andy B
[snip] also, were you looking for code or general guidelines? [/snip] more importantly is the code so i can see how it is physically written but both code and guidelines wouldnt hurt at all... tnx for the link in last msg will check it out -- PHP General Mailing List (http://www.php.net/) To un

[PHP] RE:tutorials for login system...

2004-03-24 Thread Andy B
[snip] in either case, are there any specific questions you have? it's possible that there aren't any login system tutorials that meet your requirements and that's why there haven't been many responses yet. but what do i [/snip] questions...hmmm... cant think of any questions at the minute but i d

[PHP] RE:tutorials for login system...

2004-03-24 Thread Andy B
tnx for the ideas... that helped some for now anyways... i will get to writing the spec outline for what i want/need to do and post it (might be a few hours) or a day or so since i have to create it (and it could be quite large) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

[PHP] mysql and md5??

2004-03-24 Thread Andy B
hi... trying to figure out what is wrong here... the code is supposed to check an md5'd password from a form and compare it against an md5'd password in a mysql table... for some strange reason when i run the code below on my dev server (apache 2.0.47, php4.3.3 and mysql 4.1-A) it works. when i

[PHP] still having login problems sigh

2004-03-24 Thread Andy B
hi... still having login problems.. i tried just about everything i can think of to get this to work but for some strange reason it keeps getting stuck... [code] Login failed"; header("location: login.html"); } else { $_SESSION[username]=$username; header("location: deletepost.php"); } ?> [/code

Fw: [PHP] Re: still having login problems sigh

2004-03-24 Thread Andy B
>What do mean by "keeps getting stuck"? Where? What? Any error >messages? 0 errors and 0 messages of any kind and what i meant by getting stuck was every time the login.html is filled out and submitted i either get the login.html page again (expected if user gave wrong pwd and stuff) or browser wi

[PHP] Re: still having login problems sigh

2004-03-25 Thread Andy B
>What happens if you give a the correct ones? doesnt make any difference... will take the display_errors thing and turn it on... do i have to pay any attention to something of this sort: [notice] undefined variable in ../login.php: $_SESSION[username] is undefined but i defined it alrea

[PHP] Re: still having login problems sigh

2004-03-25 Thread Andy B
ok now this is really messed up something strange (maybe my server is haunted with a ghost or something??). I changed the variables to have the '' in the indexes and stuff (got rid of the notices problem) but when i totally removed the header(""); lines and put echo "test login worked" and echo "te

[PHP] login problem fixed!!

2004-03-25 Thread Andy B
hi!! tnx for the help with that huge problem... got it running and this is how... the query ...username='...' and pwd=md5(...) was in "" and i guess when you have something like that putting '' in an index name is illegal?? can somebody explain why? and on the line: if(.) {... num_of_rows(

[PHP] RE:[PHP] login problem fixed!!

2004-03-25 Thread Andy B
[snip] please note this will only catch invalid queries. To catch the event of the query being perfectly fine, but nothing coming back, just check the values of num_rows or affected_rows (depending on the query). [/snip] um?? this way doesnt work for some strange reason... testing affected_ro

[PHP] re:[PHP] login problem fixed!!

2004-03-25 Thread Andy B
So, just for the sake of me getting this right, it would be better code if i had the code like this: forgive the odd severely long redundant example names but... im sure that is better than what i had before... let me know if i got the right idea... and $UserExists in this example is either tr

[PHP] re:[PHP] login problem fixed!!

2004-03-25 Thread Andy B
"Do you actually need to bring back the user data? What I mean is, you're selecting * from the users table and doing nothing with it other than worrying if the query was successful or not." ops!! I forgot to mention that the username is used elsewhere in a different file somewhere (to verify the s

[PHP] re:[PHP] login problem fixed!!

2004-03-25 Thread Andy B
"if ($result) { echo "Valid user"; } else { echo "Error?"; } ?> -- End here -- Now if what you're saying is correct, the final "if result()" block should only print "valid user" if the user exists in the database, right?" yup and b

[PHP] re:[PHP] login problem fixed!!

2004-03-25 Thread Andy B
"Absolutely fascinating, I have never seen a MySQL server behave like this. Could you post which version of MySQL you're using and perhaps the MySQL part of phpinfo()? There must be something *somewhere* that controls this behaviour." PHP Version 4.0.4pl1 Linux noir.propagation.net 2.0.36 #5 Wed D

[PHP] postmaster failure??

2004-03-25 Thread Andy B
hi... just wondering if anybody had problems with messages to the list timing out and getting sent back to them?? i seem to be getting this problem lately (last 2-3 days) and have about 20 copies of the same message being sent back to me by postmaster... permenant failure: message timed out

[PHP] write a custom file wrapper or use error_log

2004-03-26 Thread Andy B
is it better overall to write a custom file wrapper (write my own log functions) or use the error_log/syslog that php already gives??

[PHP] RE:[PHP] write a custom file wrapper or use error_log

2004-03-26 Thread Andy B
"Define "better"." 1. check the file size. if it is larger than a certain size then rename the current log and roll over to a new filename 2. if something fatal happens during normal program use shutdown the program/website section and display a page that says unavaliable or something of that sort

[PHP] mysql table field choices

2004-03-27 Thread Andy B
just a short one here... what would be the best type of field for a combo box that looks like this: ---pick a month--- January February and the same thing with the year... was thinking either int(2) for the month and int(4) for the year but would enum(1, 2, 3, 4...12) be better for the

[PHP] postmaster@btconnect?? failure??

2004-03-29 Thread Andy B
im lost i keep getting messages from a [EMAIL PROTECTED] saying none of my messages can be sent because they time out?? but its usually 12 hours or more after my post was already sent to the list that i get those...im confused..anybody know whats going on??

[PHP] determining number of rows in a mysql table

2004-03-29 Thread Andy B
"select count(*) from tablename" actually i would do: $rows=mysql_query("select count(*) from tablename"); echo $rows; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] determining number of rows in a mysql table

2004-03-29 Thread Andy B
"Hmmm, have you ever actually tried it? And got the result you wanted?" my screwup...forgot some code here... heres the whole thing that actually works...(thats what you get for being in tons of different windows at the same time)... -- PHP General Mailing List (http://www.php.net/) To unsubscr

[PHP] combo boxes and default selected items

2004-03-29 Thread Andy B
how would you go about making a selected item in a combo box?? Jan Feb Mar for example on the combo box above how would i make the default select item mar instead of jan??

[PHP] finding certain dates in the future (again)

2004-03-31 Thread Andy B
Hi... Is there any way to find say the third monday of the month (all months of the year) for any year (up to 2038) and show them in a combo box as exact dates? Have been trying to get something of the sort to work and havent quite figured out how thats supposed to work yet. I tried strtotime

[PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Andy B
"$count = mysql_result($rows, 0, 'count');" i guess that would work too if all you need is the # of rows in a table... if you need it in an array then... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Andy B
"I **highlighted** the relevant part for you :)" i know what you mean... if you highlighted the part you were talking about with color then would explain why i didnt get what part you were talking about... my screen reader doesnt pay much attention to color highlights so probably missed it... sor

[PHP] re:[PHP] determining number of rows in a mysql table

2004-03-31 Thread Andy B
"I don't use colour in emails to this (or any) list, sorry. I would have hoped the screen reader said "asterisk asterisk highlighted"" all i heard it say was *** on the line that said something like "***highlighted..." but thats whas only when you referrenced to you highlighted the stuff... an

[PHP] re:[PHP] [Newbie Guide] For the benefit of new members

2004-03-31 Thread Andy B
=== This message is for the benefit of new subscribers and those new to PHP. Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. Y

[PHP] session/mysql problems

2004-04-01 Thread Andy B
hi I created a login script and originally was using php4.3.3 to write the script with. Then I found out that it had to be rewritten for php4.0.4pl1. I think when rewriting it for the older version it got messed up somehow and cant quite spot the error/problem in it. can anybody help here?? the

[PHP] Re: session/mysql problems

2004-04-02 Thread Andy B
"Note: Superglobal arrays, like $_POST and $_GET, became available in PHP 4.1.0" so i remembered... had to try and port it backwards to fit the $HTTP_POST and $HTTP_SESSION vars but still didnt work... for some reason they arent going from page to page but got something else worked out for now in

[PHP] Re: session/mysql problems

2004-04-02 Thread Andy B
"$HTTP_* aren't superglobals and are not available inside functions" that i know of i didnt use them inside functions unless checking them with if(!empty($HTTP_SESSION['username'])){. is illegal...? if that is so then no wonder why it didnt work -- PHP General Mailing List (http://www.ph

[PHP] asigning an array of variables to $_SESSION

2004-04-02 Thread Andy B
hi... i need to assign an array to $_SESSION. the reason for this is that i have a page that gets data from 2 different tables from the same mysql db all at the same time... there is guestbook (for the guestbook) and events (for the events section). i guess i would need to know 2 things: 1. can

  1   2   >