Re: [PHP] users online

2005-05-02 Thread Deep
Hi, Try this. I am assuming that you have already fetched the name of the user who is online, either from the database or from session or whatever. I am assigning the variable $uname with that user online. I've used javascript to display the name in the textbox. Here goes the code.

[PHP] Can someone help me build a regular expression?

2005-05-02 Thread mwestern
Hi All, I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers exist.I cheated and downloaded a regular expression someon else had used and that works nicely. I wish to validate the text box in the format of: xXX.X With the upper case Xs being a

Re: [PHP] Submit name change

2005-05-02 Thread Jochem Maas
Anasta wrote: I need this to change the value of the button 'sit in' to the name of a user --it doesnt work so anyone got any ideas or is what i am looking to do impossible. have you tried the [EMAIL PROTECTED] list? ;-) (with kudos to John Nichel for the original 'psychic-db' comment which still

[PHP] CMS backend

2005-05-02 Thread Dustin Krysak
Hi there, I was wondering if anyone knows of any existing php/mysql cms back-ends (no need for a front end). I am just looking for one to dissect (for learning purposes) - and would prefer to keep the presentation out of it for the sake of not having to sort through a 1000 extra files.

[PHP] Strange problem with DB queries

2005-05-02 Thread George Pitcher
Hi, I am encountering a strange problem with a pop-up window. On my site, users (very specialised, closed site with small numbers) have to click a link on page x which pops up page y. Page x and y both contain pricing information based on a functions.php include file. On page x, the data is being

RE: [PHP] Strange problem with DB queries - MORE

2005-05-02 Thread George Pitcher
Sorry, I forgot to mention that I'm using PEAR::DB and Smarty, Server is WinNT running Apache 2.0.52, and PHP 5.0.2. MySQL 4.0.5-beta-max-nt is running on a separate server (NT also). All this is about 70 miles away and I haven't seen the servers for over 3 years (oh how wonderful remote access

[PHP] Extensions modules, PHP5.1 from CVS and Windows

2005-05-02 Thread Jirka Kosek
Hi, I need to use some XML functionality that will be available in PHP5.1. When I use PHP development version from http://snaps.php.net/ for Windows core of PHP works great. But once I load extension module (e.g. php_xsl.dll, php_xmlreader.dll, php_soap.dll) PHP crashes -- immediatelly with

Re: [PHP] Can someone help me build a regular expression?

2005-05-02 Thread Jason Sweeney
Give this a shot: ^[0-9]{2,3}\.[0-9]$ Returns regex that begins with 2-3 digits, followed by a period, and ends with one digit. jason sweeney jason.designshift.com [EMAIL PROTECTED] wrote: Hi All, I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers

[PHP] Re: Can someone help me build a regular expression?

2005-05-02 Thread Thomas Bonham
[EMAIL PROTECTED] wrote: Hi All, I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers exist.I cheated and downloaded a regular expression someon else had used and that works nicely. I wish to validate the text box in the format of: xXX.X With the

Re: [PHP] form array

2005-05-02 Thread Brent Baisley
Exactly. You can really go as deep as you want with your array fields. On May 1, 2005, at 10:15 PM, Sebastian wrote: i've created file upload scripts in the past that allows multi-upload inputs using the bracket [] array in form. so now i have to create the same type of script but each file

RE: [PHP] Having problems connecting to MS SQL2000 server on PHP5

2005-05-02 Thread Nathan Tobik
Hi, We run PHP with SQL server no problems here. You never mentioned it so I thought I would, if you're running on Linux you need the FreeTDS library installed on the machine. If you are running on Windows you need the SQL Server client tools installed on the machine that PHP is on.

Re: [PHP] Newbie Help

2005-05-02 Thread Richard Collyer
Hello, ?php if(isset($_GET['page'])) {include($_GET['page'] . .php);} else {echo(Page Not Set.);} ? Should work if you use ?page=index Might I suggest that what you are doing is a bad idea. Not only will it look bad becuase of

Re: [PHP] Re: Templating engines

2005-05-02 Thread Skrol29
Skrol 29 wrote: I just can't work with PHP the usual way. Mixing business source and interface source is something too bastard for me. Now that I know templates systems I totaly disagree to say that PHP is a Template Engine. Ok, it has some basic template features, but they are too poor to use

Re: [PHP] CMS backend

2005-05-02 Thread Philip Hallstrom
Hi there, I was wondering if anyone knows of any existing php/mysql cms back-ends (no need for a front end). I am just looking for one to dissect (for learning purposes) - and would prefer to keep the presentation out of it for the sake of not having to sort through a 1000 extra files.

[PHP] Image Generation: Centering Text

2005-05-02 Thread Richard Collyer
Hello, I am using the following code. ?php $img_number = imagecreate(100,20); $white = imagecolorallocate($img_number,255,255,255); $black = imagecolorallocate($img_number,0,0,0); $grey_shade = imagecolorallocate($img_number,204,204,204); imagefill($img_number,0,0,$white); $number = $_GET['text'];

Re: [PHP] Image Generation: Centering Text

2005-05-02 Thread Richard Davey
Hello Richard, Monday, May 2, 2005, 4:47:42 PM, you wrote: RC But I need to center the text in the image that is generated. As I RC am using the same font and it is fixed at 10px I was thinking of RC doing something like: RC (Get Length of Text in Chars * Width of Average Char) DIV 2. RC

Re: [PHP] Re: Templating engines

2005-05-02 Thread Skrol29
Mattias Thorslund a écrit : Then I wonder what makes skol29 think PHP's basic template features are too poor to be used seriously? I think PHP's basic template features are phenomenal. PHP is a nice and powerfull scripting langage oriented for Web developement. Let's look at what's it can do

Re: [PHP] Re: Templating engines

2005-05-02 Thread Robert Cummings
On Mon, 2005-05-02 at 13:02, Skrol29 wrote: Mattias Thorslund a écrit : Then I wonder what makes skol29 think PHP's basic template features are too poor to be used seriously? I think PHP's basic template features are phenomenal. PHP is a nice and powerfull scripting langage oriented

[PHP] php4 to php5, now classes don't work?

2005-05-02 Thread Mike
I upgraded to php 5 from php 4.3.10 and now several classes are not working. All I get is blank pages and no errors logged. If this has already been discussed, please show me the door to the archives ;-) ++ Mike Yrabedra [EMAIL PROTECTED] Your

Re: [PHP] php4 to php5, now classes don't work?

2005-05-02 Thread Chris
As far as I know PHP 4 classes are completely backwards compatible. with PHP 5. You might try looking at your config options, if register_globals went from On to Off, that would cause your script to break. I seriously doubt that anyone could help you without more information. Chris Mike wrote:

[PHP] mysqli grrrr

2005-05-02 Thread JM
Ok who's using mysqli? I'm moving over to the mysqli OO method. I'm trying to perform an insert and having difficulty. $sql = INSERT INTO USERS (record_id, name_first, name_last) VALUES (1, 'George', 'Dubbuyah'); $mysqli-query($sql); I have a followup SELECT that prints the rowcount so I can

[PHP] Re: mysqli grrrr

2005-05-02 Thread JM
nevermind I got it :-/ My DATETIME was making me pay for something I did in a past life :P John On 5/2/05, JM [EMAIL PROTECTED] wrote: Ok who's using mysqli? I'm moving over to the mysqli OO method. I'm trying to perform an insert and having difficulty. $sql = INSERT INTO USERS (record_id,

[PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
Is it possible to use eregi instead of LIKE to filter mysql queries? If so can someone do a quick example? Many thanks, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Jay Blanchard
[snip] Is it possible to use eregi instead of LIKE to filter mysql queries? If so can someone do a quick example? [/snip] $sql = SELECT foo, bar FROM table ; $result = mysql_query($sql, $connection); while($row = mysql_fetch_array($result)){ if(eregi('glorp', $row['foo']){ echo

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread John Nichel
Ross wrote: Is it possible to use eregi instead of LIKE to filter mysql queries? This would be in the MySQL manual. http://dev.mysql.com/doc/mysql/en/pattern-matching.html -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread John Nichel
Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern matching in the query itself. Of course, it's Monday, and I may not have understood the question at

RE: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Jay Blanchard
[snip] I _think_ he was asking if he could use some sort of pattern matching in the query itself. Of course, it's Monday, and I may not have understood the question at all. ;) [/snip] True. He was pretty specific about eregi though. Perhaps he'll let us know when he does whatever it is he is

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
you understood John John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Ross
you understood John John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jay Blanchard wrote: snip Why you'd want to do it this way beats me, the overhead is a lot bigger than doing it in the query. /snip I _think_ he was asking if he could use some sort of pattern matching

RE: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread Jay Blanchard
[snip] you understood John [/snip] Well, there you go. At least I gave a PHP answer on this, a PHP list. ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] just going with LIKE

2005-05-02 Thread Ross
Had a look at it and much easier to use LIKE with wildcards. Was unsure whether the query was case sensitive that is why I asked. As it turns out it is not. R -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] possible to use eregi instead of LIKE

2005-05-02 Thread John Nichel
Jay Blanchard wrote: [snip] you understood John [/snip] Well, there you go. At least I gave a PHP answer on this, a PHP list. ;) snip You are my hero. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] just going with LIKE

2005-05-02 Thread Marek Kilimajer
Ross wrote: Had a look at it and much easier to use LIKE with wildcards. Was unsure whether the query was case sensitive that is why I asked. As it turns out it is not. LIKE is case insensitive as well. Try casting to binary, this should work. -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: just going with LIKE

2005-05-02 Thread Matthew Weier O'Phinney
* Ross [EMAIL PROTECTED]: Had a look at it and much easier to use LIKE with wildcards. Was unsure whether the query was case sensitive that is why I asked. Missed the earlier post, so I don't know if you're using MySQL or not (other responses indicate you probably are). If you are, REGEXP in

[PHP] setting condition problem

2005-05-02 Thread Ahmed Abdel-Aliem
hi all i have a query that grabs records from the database, it works fine, but i have a problem with acondition i want to set for it the variable $Record[Relate] has 1 of 2 values, self or share what i wanna do is that when the variable has the value share it do check the records grabbed and get

Re: [PHP] handling a user pressing browser's back button

2005-05-02 Thread James
Thank you guys for the answers. I think I will go with the following approach. (A) script 1 submits to script 2 then (B) script 2 redirects browser back to script 1 Script 1 is in charge of submitting and displaying; script 2 does the processing. This list is the best! -James At 2:08 AM +

Re: [PHP] handling a user pressing browser's back button

2005-05-02 Thread James
Actually: Will there be an issue with the back button if I use 1 script to do all of what I posted before? So... Script 1 submits to itself...it does the processing, updates databases, etc...then it redirects back to itself for displaying for results. -James Thank you guys for the answers.

RE: [PHP] Can someone help me build a regular expression?

2005-05-02 Thread mwestern
Thanks to all that posted with help. I've got a book about regular expressions but it's all very new to me. -Original Message- From: Jason Sweeney [mailto:[EMAIL PROTECTED] Sent: Monday, 2 May 2005 9:50 PM To: Matthew Western, IT Support, Lonsdale Cc: php-general@lists.php.net

Re: [PHP] Re: Can someone help me build a regular expression?

2005-05-02 Thread Rory Browne
You mite try this. I know that this work with perl. =~ m/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/ I'm not sure what the initial m does(I'm not a perl person), but the rest of the regex matches as follows. A string whose first character is a digit between 0 and 9. This is followed by an Upper case

Re: [PHP] Re: Can someone help me build a regular expression?

2005-05-02 Thread Jochem Maas
Rory Browne wrote: You mite try this. I know that this work with perl. mites byte. =~ m/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/ I'm not sure what the initial m does(I'm not a perl person), but the rest of the regex matches as follows. A string whose first character is a digit between 0 and 9. This is

Re: [PHP] Newbie Help

2005-05-02 Thread Thomas Bonham
Hello, Thank for the information. If that is not a good idea then how would you do it. Thomas --- Richard Collyer [EMAIL PROTECTED] wrote: Hello, ?php if(isset($_GET['page'])) {include($_GET['page'] . .php);} else

Re: [PHP] Newbie Help

2005-05-02 Thread Thomas Bonham
Thanks for the help. It works, for the most part. Now I'm going to write the links page. Thanks agin for all the great help. Thomas --- Mark Cain [EMAIL PROTECTED] wrote: Also, after I looked at more of your code you will need to specify the php extension in only one of two places.

Re: [PHP] php class that allow quick row ordering

2005-05-02 Thread Jochem Maas
Graham Anderson wrote: Hi I am allready using a 'rank' field now... with 1 to N :) There are just so damned many of them to order manually the up/down button solution...is there a tutorial or php class out there I could take a look at... where you: give the class a query... the up and down

Re: [PHP] Persistent Database Connections

2005-05-02 Thread Jochem Maas
Michael Phillipson wrote: [Please note that even though I cite Interbase in my example, I believe my question can be generalized to all databases that allow persistent connections] I recently installed a trial version of Interbase on a development server firebird-loon have you tried the free

[PHP] MySQLi group

2005-05-02 Thread john
Caio, I have started a new group for those of us here that may run into issues specifically with MySQLi in PHP5. http://groups-beta.google.com/group/MySQLi Regards, John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] forms

2005-05-02 Thread Lisa A
Does anyone know of a good easy php script or Form that we can use with Front Page. We need a form to get results, that actually sends the results in a format that is easy to read. Not all run together with no spaces, etc. like the Front Page forms. Thanks, Lisa A -- PHP General Mailing List

[PHP] SSL Cores

2005-05-02 Thread Oluwatope Akinniyi
Hi, Can anybody please point me to any URL where I can get PHP codes to perform SSL cores such as: * Certificate Signing Request * Certificate Signing * Revocation * Publication of Generated Certificates and Revoked Lists * etc -- Best regards, Tope Akinniyi CEO ShepherdHill