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. Simple.is
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 requ
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
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.
Than
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
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
is!
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 Apa
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 exist
[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 uppe
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 inp
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. Hop
Hello,
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 people seeing stuff like ?page=/review/review23.php
in the URL. Also its a security risk allowing people to call php scripts
from the URL.
Cheers
Richard
Thomas
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 i
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.
http://w
Hello,
I am using the following code.
imagefill($img_number,0,0,$white);
$number = $_GET['text'];
Imagettftext($img_number, 10,0,4,15,$black,'arial.ttf',$number);
header("Content-type: image/jpeg");
$rotate = imagerotate($img_number, 270, 0);
imagejpeg($rotate);
?>
But I need to center the text in
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> (
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
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 lang
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 Mac
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:
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
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 (reco
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
[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 $row[
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 uns
Jay Blanchard wrote:
Why you'd want to do it this way beats me, the overhead is a lot bigger
than doing it in the query.
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]
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 d
you understood John
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jay Blanchard wrote:
>
>> Why you'd want to do it this way beats me, the overhead is a lot bigger
>> than doing it in the query.
>
>
> I _think_ he was asking if he could use some sort of pattern matc
you understood John
"John Nichel" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Jay Blanchard wrote:
>
>> Why you'd want to do it this way beats me, the overhead is a lot bigger
>> than doing it in the query.
>
>
> I _think_ he was asking if he could use some sort of pattern match
[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
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
Jay Blanchard wrote:
[snip]
you understood John
[/snip]
Well, there you go. At least I gave a PHP answer on this, a PHP list.
;)
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: http:
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
* 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 i
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
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 + 4/
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.
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
Subj
> 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
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
fol
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,
>
> if(isset($_GET['page']))
>{include($_GET['page'] .
> ".php");}
> else
>
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. Cur
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 link
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
have you tried the free trial version o
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
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 (
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 So
I have an xml document storing some data I need. What I want to do is this:
1. Scan to the end of the file.
2. Find the closing tag.
3. Insert a new entry in before the closing tag.
I've tried:
1. Creating new files and renaming them to be the original.
2. Writing the file to a dummy file and inse
(Rasmus wrote:) "If you fwrite UTF-8 data to the file, then it is a UTF-8
file."
Thanks Rasmus! Honestly, that is REALLY helpful!
I was just coming back here to post that I had found that very same answer.
But I am glad to hear it confirmed by the experts.
Bottom line: I was just being silly/i
49 matches
Mail list logo