[PHP] Re: sort() - Where did I go wrong?

2004-07-10 Thread John Taylor-Johnston
I'm having a similar problem here if I pass a numeral inside $searchenquiry $searchenquiry = "1.0.1 Retrospective bibliographies and checklists / bibliographies et répertoires rétrospectifs"; preg_replace ('/('.$searchenquiry.')/i' , "$1", $mydata->RB) error: Unknown modifier 'b' in /www-html/n

[PHP] sort() - Where did I go wrong?

2004-07-10 Thread John Taylor-Johnston
I'm having another problem with sort(); I want to treat $rbenquiry as a string, not as a numeral. $mydata->RB could contain "1.2" ; "1.9" ; "1.1" ; "1.0" ; "1.0.8" But if $rbenquiry ="1.0", my code spits out anything that begins as though it were ="1". It should only display "1.1" or "1.0.8".

Re: [PHP] MySQL/PHP Tunneling

2004-07-10 Thread Karam Chand
--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > > First off, when starting a new topic, don't reply to > message and > then change the topic. Sorry. But I just didnt remember the email addy so I took that way :). > > * Thus wrote Karam Chand: > > Hello, > > > > Recently lot of MySQL clients try t

[PHP] CMS solution + web sites in CVS.

2004-07-10 Thread Lukasz Karapuda
I am currently restructuring the web site/web application development life cycle of my company. The new model requires the use of CVS (2 branches) for each web site project. The issue I am facing is the maintenance/development of web sites utilizing CVS, while still providing content management

Re: [PHP] mysql persistent connection...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 10:03, bruce wrote: > i'm trying to get a better understanding of how to implement persistent > connections with mysql in either perl/php > > basically i'm trying to solve the issue of whether a web app has to > essentially perform a new mysql_connect on every page that's goi

[PHP] mysql persistent connection...

2004-07-10 Thread bruce
i'm trying to get a better understanding of how to implement persistent connections with mysql in either perl/php basically i'm trying to solve the issue of whether a web app has to essentially perform a new mysql_connect on every page that's going to be doing any database access. using mysql_con

Re: [PHP] UPDATE...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 09:28, Harlequin wrote: > Jason. Thanks very much. Truly...! I looked at it, stared at it, growled at > it and then finally realised about 30 seconds before I raed your post: > > SET Comments='$Comments', You also have the date and column-name switched: ... $UserMail=Use

Re: [PHP] UPDATE...

2004-07-10 Thread Harlequin
Laugh...? I nearly wet mesen...! Jason. Thanks very much. Truly...! I looked at it, stared at it, growled at it and then finally realised about 30 seconds before I raed your post: SET Comments='$Comments', What an idiot...! Hey - thanks for your patience mate. I don't suppose you'd care to hel

Re: [PHP] UPDATE...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 09:00, Harlequin wrote: > I did as you suggest and I get a rather generic response: > > Sorry, Your Request Could Not Be Executed: You have an error in your SQL > syntax. Check the manual that corresponds to your MySQL server version for > the right syntax to use near 'Littl

Re: [PHP] UPDATE...

2004-07-10 Thread Harlequin
Jason. Thanks for pointing out the obvious - I should have trapped errors. Thanks you. I did as you suggest and I get a rather generic response: Sorry, Your Request Could Not Be Executed: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the

Re: [PHP] mail problem

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 08:33, Joao Gomes wrote: > I am a beginner in php and I am trying to send emails from my machinne, I > dont have any mail server installed in my computer (e.g. sendmail), btw i > am running Windows XP, i wrote this script: [snip] > and changed the php.ini to: > > [mail fun

Re: [PHP] UPDATE...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 08:33, Harlequin wrote: > I'm hitting the submit button at the bottom of the page and getting > redirected OK to the next page with no errors but when I query the database > directly it isn't updating. Should you be getting errors if there is a problem? IOW *are* you puttin

[PHP] mail problem

2004-07-10 Thread Joao Gomes
Hi, I am a beginner in php and I am trying to send emails from my machinne, I dont have any mail server installed in my computer (e.g. sendmail), btw i am running Windows XP, i wrote this script: and changed the php.ini to: [mail function] ; For Win32 only. SMTP = [EMAIL PROTECTED] smtp_port =

Re: [PHP] UPDATE...

2004-07-10 Thread Harlequin
Sorry Jason. I'm hitting the submit button at the bottom of the page and getting redirected OK to the next page with no errors but when I query the database directly it isn't updating. -- - Michael Mason Arras People www.arraspeople.co.uk --

Re: [PHP] UPDATE...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 08:20, Harlequin wrote: > I have a page that successfully calls data from the database based on > userID & Password combo. No Problems there eh... I display the information > in a form, the user is supposed to be updating this information and then > hitting submit to update

Re: [PHP] mysql and session vars...

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 07:59, bruce wrote: > not sure what you mean by hijacking... FYI: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client gener

[PHP] UPDATE...

2004-07-10 Thread Harlequin
Hi again. I know I should be in bed but if I leave this I'll just go mad...! I have a page that successfully calls data from the database based on userID & Password combo. No Problems there eh... I display the information in a form, the user is supposed to be updating this information and then hit

RE: [PHP] mysql and session vars...

2004-07-10 Thread bruce
not sure what you mean by hijacking... simply did a cut/past for a new topic.. but thanks for the reply... guess i'll have to investigate persistent connections.. but i'm still confused as to why a value that i put into the session variable seems to get reset to '0' when i use the session var in

Re: [PHP] mysql and session vars...

2004-07-10 Thread Marek Kilimajer
Please do not hijack threads. bruce wrote: hi... if i create a site that hits a back mysql db... i don't want to do a mysql_connect for every page that has to access the db. so the question is where should the mysql_connect occur. also, if i were to do it once when the app starts, is the connection

RE: [PHP] mysql and session vars...

2004-07-10 Thread bruce
update... as a short test... i created a resource --> $link = mysql_connect(foo.) and used the $link to process a query against my mysql db... i then attempted to create a session var consisting of the $link value... $_SESSION['db'] = $link, and verified that it actually contained the res

[PHP] Re: Login Verification

2004-07-10 Thread Harlequin
Jason, John, Tim, Eric. Thanks for your patience. Which along with persistence is it's own reward :). I got it working OK and am reasonably happy with the results. -- - Michael Mason Arras People www.arraspeople.co.uk - "Harlequin" <[EM

Re: [PHP] Login Verification

2004-07-10 Thread Eric Schwartz
On Sat, 10 Jul 2004 20:47:47 +0100, Harlequin <[EMAIL PROTECTED]> wrote: > Hi everyone. > > I have a quick question regarding the above. currently I have a form that > posts to another page. However, rather than wait until they get to that page > to verify their login are there conventions that ar

Re: [PHP] Login Verification

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 04:46, Harlequin wrote: > I did Jason but am reworking all the pages and tidying the syntax up and > one of the things I never sorted out was the fact that users logging in > would be taken to the logged in page although their user data was not > displayed and an error told

[PHP] mysql and session vars...

2004-07-10 Thread bruce
hi... if i create a site that hits a back mysql db... i don't want to do a mysql_connect for every page that has to access the db. so the question is where should the mysql_connect occur. also, if i were to do it once when the app starts, is the connection more or less maintained throught the lif

Re: [PHP] Login Verification

2004-07-10 Thread Marek Kilimajer
Harlequin wrote: I did Jason but am reworking all the pages and tidying the syntax up and one of the things I never sorted out was the fact that users logging in would be taken to the logged in page although their user data was not displayed and an error told them they logged in incorrectly. This,

Re: [PHP] Login Verification

2004-07-10 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Harlequin wrote: > I did Jason but am reworking all the pages and tidying the syntax up and one > of the things I never sorted out was the fact that users logging in would be > taken to the logged in page although their user data was not displayed and > an error told

Re: [PHP] Login Verification

2004-07-10 Thread Harlequin
I did Jason but am reworking all the pages and tidying the syntax up and one of the things I never sorted out was the fact that users logging in would be taken to the logged in page although their user data was not displayed and an error told them they logged in incorrectly. This, from a users per

[PHP] Re: Login Verification

2004-07-10 Thread John Taylor-Johnston
It sounds like you are afraid they will see login_verified.php? If they surf to http://www.foo/login_verified.php you could verify that a field exists ... echo " "; Harlequin wrote: > Hi everyone. > > I have a quick question regarding the above. currently I have a form that > posts to another

Re: [PHP] Login Verification

2004-07-10 Thread Jason Wong
On Sunday 11 July 2004 03:47, Harlequin wrote: > I have a quick question regarding the above. currently I have a form that > posts to another page. However, rather than wait until they get to that > page to verify their login are there conventions that are recognised for > this process currently..

Re: [PHP] odd refresh error

2004-07-10 Thread Curt Zirzow
* Thus wrote Scott Taylor: > > Some people are complaining that when the visit one of my pages that the > pages refeshes over and over again. One person said that it was only > when he typed something in on one of the forms. How could an error like > this be caused? Could this be a bug in a

Re: [PHP] MySQL/PHP Tunneling

2004-07-10 Thread Curt Zirzow
First off, when starting a new topic, don't reply to message and then change the topic. * Thus wrote Karam Chand: > Hello, > > Recently lot of MySQL clients try to overcome host > based privilege system of MySQL by using PHP tunneling > method. > > In this method they call up a PHP file in the

Re: [PHP] Help Formatting String into URL

2004-07-10 Thread Curt Zirzow
* Thus wrote Ryan Schefke: > Hi, > > > > Can someone help me write a short code snippet to format a string to add: > > > > http://www -- if the string is "google.com" and doesn't have > http://www in front of it This is really not a good idea to do blindly, w

[PHP] Login Verification

2004-07-10 Thread Harlequin
Hi everyone. I have a quick question regarding the above. currently I have a form that posts to another page. However, rather than wait until they get to that page to verify their login are there conventions that are recognised for this process currently...? For example, my code for the form's he

[PHP] usort e & é together

2004-07-10 Thread John Taylor-Johnston
I think my problem lies in usort. I have a big honker of an array which I usort. $ausenquiry = "e"; and $ausenquiry = "e"; give a separate result. I want to conjoin them. Possible? The same would be true for "a" and "à". usort distinguishes between é and e. Any way around this? I don't see any i

[PHP] odd refresh error

2004-07-10 Thread Scott Taylor
Some people are complaining that when the visit one of my pages that the pages refeshes over and over again. One person said that it was only when he typed something in on one of the forms. How could an error like this be caused? Could this be a bug in a browser? Scott -- PHP General Mailing

Re: [PHP] get the month's last day

2004-07-10 Thread Larry E . Ullman
how can i retrieve the last day of the month? like 31 - Jul, 30 - Jun , 28 - Feb $lastdayofmonth = mktime(12,0,0,$month+1,0,$year); ?> You could also use the date() function with the t parameter. Of course, that also requires a timestamp... Larry -- PHP General Mailing List (http://www.php.net/

[PHP] breadcrumb app...

2004-07-10 Thread Verdon Vaillancourt
There's also a nice gpl class for this available at http://www.phpclasses.org/browse/package/1192.html or http://www.baskettcase.com/classes/breadcrumb/ It's easy to hack also if you need to add further function On 10-Jul-04, at 9:45 AM, [EMAIL PROTECTED] wrote: Subject: breadcrumb app... Reply-

[PHP] MySQL/PHP Tunneling

2004-07-10 Thread Karam Chand
Hello, Recently lot of MySQL clients try to overcome host based privilege system of MySQL by using PHP tunneling method. In this method they call up a PHP file in the server and the PHP file executes a query and sends the data in XML format. I am using C API() and I was just wondering if somebo

RE: [PHP] Re: Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
Hi Frank, Thanks, you got me started. I modified your function a bit. I'm testing for 3 cases now and the appearance of http://, https://, or ftp:// in front of the string. Let me know if you advise any changes. http://$url";; } else { $result = "http://www.$u

[PHP] Re: Help Formatting String into URL

2004-07-10 Thread Frank Voorburg
Ryan, You can use the following function: function FormatUrl($url) { if (eregi("www", $url)) $result = "http://$url";; else $result = "http://www.$url";; return $result; } You can test it using: $test1 = FormatUrl("google.com"); $test2 = FormatUrl("www.google.com"); print "test1 =

[PHP] Help Formatting String into URL

2004-07-10 Thread Ryan Schefke
Hi, Can someone help me write a short code snippet to format a string to add: http://www -- if the string is "google.com" and doesn't have http://www in front of it http:// -- if the string is "www.google.com" and doesn't have http:// in f