,
Michael Egan
Chris Lott wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
It strikes me that my students really don't have a good grasp of what PHP
is capable of doing, since they are getting bogged down in learning the
minutiae of the language itself. So (quickly if possible-- I'd
'Professional PHP4' to be
invaluable.
Hope this helps,
Michael Egan
Chris Kay wrote:
I am wanting to store session data in a mysql db..
I have looked at a few examples and still cant get them to work
Rather than asking for the answer, I perfer to try a few more time.
Anyone have any links
Robert,
I still feel fairly new to this myself but if I find that I'm having
problems writing to the database I generally try to echo the query to
the page and then test this out directly with the command line prompt
directly to the database.
At least that way you can test out the query in
Hamish,
I've been using UK Linux (www.uklinux.net) both at home and at work and
they really have been excellent.
From their various types of membership I think you would be able to find
a level of service that you want within the price range you suggest.
Best of luck,
Michael
hamish wrote:
Ferry,
I think this is a fairly standard error message suggesting that the
password information being passed to the underlying database is
incorrect.
It would be the settings to connect to the database that need to be
altered in this case.
Michael Egan
Warning: Access denied for user: 'icon
Steve,
I think it's fairly standard that hosts provide you with a single database.
A suggestion made with earlier thread, which I follow, is simply to make sure you set
up your tables with names that clearly identify their function to you.
Michael Egan
-Original Message-
From: Steve
the information sorted by various fields defined in your query
to the database.
Others may well advise that this is not the best way of doing this but it's worked for
me and has saved me beating myself up over not being able to get to grips with some
complex functions!
Michael Egan
-Original Message
until now, in an attempt to try and get to grips with these packages, I've been
using a variety of text editors from VI to Kwrite. But I'm wondering whether it might
speed up development times if I start to use one of the tools out there for working
with PHP and MySQL.
Any thoughts?
Michael Egan
Philip,
I've found UK Linux (http://www.uklinux.net) to offer a good service at low cost.
They also offer 50% discount for charities.
Michael Egan
-Original Message-
From: Philip Radford [mailto:[EMAIL PROTECTED]]
Sent: 06 September 2002 05:47
To: [EMAIL PROTECTED]
Subject: [PHP] Low
supplied to them.
You would need to recompile PHP so that such support is offered - no mean feat from my
own experiences. I gave up :-(
Michael Egan
-Original Message-
From: Warwick Berg [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 00:08
To: [EMAIL PROTECTED]
Subject: [PHP] jpeg
.
Michael Egan
-Original Message-
From: Tony Earnshaw [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 11:44
To: Michael Egan
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] jpeg thumbnail errors
tir, 2002-09-17 kl. 09:53 skrev Michael Egan:
You would need to recompile PHP so that such support
aware of but
can be quite useful and is not as messy as frames.
Michael Egan
-Original Message-
From: Patrick Lebon [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2002 06:47
To: [EMAIL PROTECTED]
Subject: [PHP] Wrap content with a layout file
Is there a way to create a layout file
There are a huge number of forums at php.resourceindex.com
These range from fairly basic forums such as venomboard to more complex forums such as
phpbb
Michael Egan
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]]
Sent: 26 September 2002 06:26
To: [EMAIL
not a bad looking web site and, needless to say, is done with PHP :-)
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I feel fairly new to this as well but I think that, whilst your logic is
right, the syntax may be a little off.
if ($action == textstring)
{
echo true;
}
else
{
echo false;
}
Above should show how the syntax will rok.
Good luck
Michael
phantom wrote:
Bear with me, new to PHP and got a
for manufacturers
and one for models with the latter containing a field for the
manufacturer ID.
Is this possible?
Michael Egan
--
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
Michael,
Many thanks for your help.
I've opted for the 'straight PHP' route and, in the process, saved
myself a lot of time pointlessly trying to see if JavaScript could read
from the database.
Michael Egan
Michael Hall wrote:
You can certainly do what you want in straight PHP if you
or empty lines that are output before header()
is called. The same problem exists when using a single PHP/HTML file.
You cannot have anything being output to the browser before the header line.
See:
http://uk.php.net/manual/en/function.header.php
HTH,
Michael Egan
-Original Message
to possible solutions?
This is particularly irritating as last night was the office Christmas party and I'm
in a rather fragile state this morning :-(
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to everybody else who responded to this query.
Michael Egan
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 18 December 2002 10:39
To: Michael Egan; PHP General (E-mail)
Subject: RE: [PHP] Undefined variable error message[Scanned]
Hi Michael,
All of the PHP scripts
with drop down boxes for year, month and day.
Michael Egan
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]]
Sent: 19 December 2002 14:05
To: [EMAIL PROTECTED]
Subject: [PHP] date part[Scanned]
How can I get a string containing the month part of a date the user types
automatically.
Is there a way round this or are there any sources of information relating to this
area?
Thanks in advance,
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Tom,
Thanks again. This gives me full control over things which always seems the best
solution.
Michael
You can put this at the top of your scripts:
ini_set('arg_separator.output','amp;');
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
by doing
type of guy.
Perhaps a search on Google for Java or C++ might help you out.
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Didier,
I meant to say Java and C++ IDEs.
Regards,
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Good luck with your explorations.
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
reporting level so it's on E_ALL,
which can be a somewhat alarmist setting :-)
Read all about it at http://php.net/manual/en/ref.errorfunc.php
Michael Egan
-Original Message-
From: Borut Kovacec [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 15:57
To: PHP Mailing List
Subject: [PHP
Tom,
Thanks for that.
I don't have access to the server on which the site is being run but I'll suggest the
change to the hosting company.
Michael Egan
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: 07 January 2003 10:57
To: Michael Egan
Cc: PHP General (E-mail
And what exactly has this got to do with PHP :-)
-Original Message-
From: REV DR EGO MOMOH [mailto:[EMAIL PROTECTED]
Sent: 01 January 1999 17:59
To: [EMAIL PROTECTED]
Subject: [PHP] My Sincere Request!![Scanned]
BRANCH MANAGER,
UNITED BANK FOR AFRICA PLC
ILUPEJU BRANCH LAGOS NIGERIA
entered as consecutive records by the same person!
I know I won't be able to make any application entirely foolproof but are there any
steps I could use within the combination of MySQL and PHP that might minimize such
duplication?
Thanks in advance,
Michael Egan
--
PHP General Mailing List
Thanks - I'll try to add these checks.
Life would be so much easier if it weren't for the users :-)
Michael Egan
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: 02 June 2003 14:38
To: Michael Egan; PHP General (E-mail)
Subject: RE: [PHP] Checking for existing
I should have looked at the manual a bit more thoroughly.
I've just come across the similar_text() function which should do just what I'm after
:-)
Thanks,
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to put their brains into gear before using it - but I
suppose if everybody did this some of us might be out of a job.
Sorry about the rant but it's been one of those weeks - and it's only Monday!!
Thanks,
Michael Egan
-Original Message-
From: Daniel Stark [mailto:[EMAIL PROTECTED]
Sent
Use the predefined constant:
__LINE__
Regards,
Michael Egan
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]
Sent: 16 June 2003 12:50
To: PHP General
Subject: [PHP] error reporting linenumber and filename[Scanned]
Hi,
Running the code below, shows an errror in line 2
Tony,
It might be that somewhere in your code there is a loop or while structure that has an
error. This is running endlessly until you run out of memory which is when you see
the error message.
Check the structures within the code to ensure that they are correct.
HTH,
Michael Egan
is submitted?
Regards,
Michael Egan
-Original Message-
From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED]
Sent: 25 June 2003 14:26
To: [EMAIL PROTECTED]
Subject: [PHP] sessions and browser back[Scanned]
Hi,
I am trying to create restricted pages for my php/mysql/apache
server
directory - though they have recently upgraded the
application so this might have changed.
HTH,
Michael Egan
-Original Message-
From: Bibhas Kumar Samanta [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 08:23
To: Chris Kay
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] passwd protected page[Scanned
Anders,
Are you missing a '|' in the if condition?
Michael Egan
-Original Message-
From: anders thoresson [mailto:[EMAIL PROTECTED]
Sent: 26 June 2003 12:01
To: [EMAIL PROTECTED]
Subject: [PHP] need help breaking out of loop.[Scanned]
Hi,
I'm working of a PHP-MySQL-planning system
once the
information has been saved.
Regards,
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
will help
in this - I haven't got the code I used for this to hand.
HTH,
Michael Egan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 08 July 2003 10:30
To: [EMAIL PROTECTED]
Subject: [PHP] Retaining formatting problem[Scanned]
Hello everyone,
I have a long
Sami,
You could put the 'chat screen' within a frame and set the page with a refresh value
within the meta tags so that it reloads every few seconds, i.e.
meta http-equiv=refresh content=5;URL=filename.php
Hope this helps,
Michael Egan
-Original Message-
From: Sami Kyösti [mailto
Neko,
Out of curiosity I had a look at the php.net site and related sites and eventually
came across this link:
http://www.zend.com/images/press/Feb_2003-4_Zeev_PHP5.pdf
I think this gives the details you're after.
Michael Egan
-Original Message-
From: neko [mailto:[EMAIL PROTECTED
Have you tried echoing out the $query just to ensure that all the expected values are
being passed to this?
If the old_email field is blank I think it will carry out the update but no rows will
be affected.
Michael
-Original Message-
From: Leendert [mailto:[EMAIL PROTECTED]
Sent: 06
Join the club.
I spent some time looking at your original post - submitted a response - but
associated it with the wrong thread!
Apologies to all!
Michael
-Original Message-
From: Steve Jackson [mailto:[EMAIL PROTECTED]
Sent: 06 March 2003 15:00
To: 'Tom Rogers'
Cc: 'PHP General'
Robin,
There really are a huge amount of resources on the web for this.
The PHP online manual itself is good for reference but for step by step guides you
might want something different.
I came across a fairly comprehensive guide on developing PHP based databases at:
.
Michael Egan
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]
Sent: 12 March 2003 08:21
To: [EMAIL PROTECTED]
Subject: [PHP] Making a Loop.[Scanned]
I have this code to make this form list $x amount of times.
for ($i = 1; $i = $number; $i++) {
echoselect name
Try
[A-Za-z0-9_\-\.]*
-Original Message-
From: Liam Gibbs [mailto:[EMAIL PROTECTED]
Sent: 18 March 2003 08:52
To: php list
Subject: Re: [PHP] Ereg sass[Scanned]
try two backslashes to escape php special characters
Tried that with the same result.
I'm not sure why, but I can't
];
}
// Return the password to the script that called the function
return $password;
}
By the way - I put this together one evening after consuming five pints of Jameson's
with one arm tied behind my back and whilst wearing a blindfold!
Michael Egan
-Original Message
Kelvin,
This link should be helpful:
http://www.mysql.com/doc/en/String_syntax.html
Regards,
Michael Egan
-Original Message-
From: Poon, Kelvin (Infomart) [mailto:[EMAIL PROTECTED]
Sent: 20 March 2003 16:21
To: 'Lowell Allen'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Addslashes problem
There's a section on Freshmeat about the ImageMagick project with further links:
http://freshmeat.net/projects/imagemagick/?topic_id=100
Given your previous comment it's tempting to say that a search on Google for
'ImageMagick' would, er - well - but I'll resist :-)
Regards,
Michael
Can GD
Andy,
There are some ready made scripts for dealing with UK post codes on the relevant page
on the PHP site:
http://www.php.net/manual/en/function.ereg.php
HTH,
Michael Egan
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]
Sent: 02 April 2003 12:54
To: [EMAIL PROTECTED
of the hidden field.
Michael Egan
-Original Message-
From: Steve Jackson [mailto:[EMAIL PROTECTED]]
Sent: 11 October 2002 11:47
To: PHP General
Subject: [PHP] Function to remember costs.[Scanned]
I am having difficulty passing details to a form.
I need to somehow pass a variable cost
do:
$years = floor($difference / (365 * 24 * 60 * 60));
Hope this helps,
Michael Egan
-Original Message-
From: ROBERT MCPEAK [mailto:RMCPEAK;jhuccp.org]
Sent: 12 November 2002 15:31
To: [EMAIL PROTECTED]
Subject: [PHP] newbie: help with date arithmetic[Scanned]
I'm trying to add/subract
I think it's to do with the scope of the variable.
It will work if you declare the variable as global within the make_login function.
Michael Egan
-Original Message-
From: Alawi albaity [mailto:alawi;php4web.com]
Sent: 13 November 2002 08:13
To: PHPList
Subject: [PHP] what wrong
href='test.html?var1=1var2=2'
Michael Egan
-Original Message-
From: Shaun [mailto:[EMAIL PROTECTED]]
Sent: 18 November 2002 12:06
To: [EMAIL PROTECTED]
Subject: [PHP] Get[Scanned]
Hi,
I pass arguments in the url, how do i pass multiple args?
eg. href=test.php?num=1 (only one arg
you the colour reference to use when
displaying the resulting page, i.e. $colour, which you could then use when creating
the cell in the table - td bgcolor='$colour'
HTH,
Michael Egan
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02 October 2003 11:40
forgotten what it was!!
Regards,
Michael Egan
-Original Message-
From: Bas [mailto:[EMAIL PROTECTED]
Sent: 17 October 2003 13:42
To: [EMAIL PROTECTED]
Subject: [PHP] How can i print out the files in a directory?[Scanned]
How can i print out all of the files in a directory?
I want some output
Diana,
Have a look at the getdate() function.
This will return an associative array of a time which you can then use to create the
date in the format you wish.
Regards,
Michael Egan
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: 17 October 2003 14:29
in advance (and in hope),
Michael Egan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sophie,
Just to add weight to your comment - I've been receiving identical notices though I
don't know what causes this.
Regards,
Michael Egan
-Original Message-
From: Sophie Mattoug [mailto:[EMAIL PROTECTED]
Sent: 10 December 2003 09:45
To: [EMAIL PROTECTED]
Subject: [PHP] [Fwd
I've never done it but I can only imagine you'd need to run some sort of CRON job to
effect this at regular intervals.
HTH,
Michael Egan
-Original Message-
From: Radwan Aladdin [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 09:45
To: [EMAIL PROTECTED]
Subject: [PHP] Please help
http://www.google.com/linux?hl=enlr=ie=ISO-8859-1q=cron+tutorialsbtnG=Google+Search
-Original Message-
From: Radwan Aladdin [mailto:[EMAIL PROTECTED]
Sent: 20 January 2004 10:05
To: Nick JORDAN
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Please help me as fast as possible.. very
file.
Not hard is it?
Regards,
Michael Egan
-Original Message-
From: PETCOL [mailto:[EMAIL PROTECTED]
Sent: 17 February 2004 09:22
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Headers Again
Jason,
I appreciate people get just as frustrate by reading repetative posts.
Alliare
No value has been given to the hidden field.
e.g.
print (input type=\hidden\ name=\hiddenField\ value=\yourvalue\);
HTH.
Cheers,
Michael Egan
-Original Message-
From: Dominique ANOKRE [mailto:[EMAIL PROTECTED]
Sent: 20 February 2004 11:17
To: Php List
Subject: [PHP] display
this or indeed any other suggestions as to what might be going
wrong.
I confess I feel I'm on extremely thin ice with this - I'm not overly familiar with
nusoap and have no familiarity whatsoever with IIS. Any general pointers would be
extremely welcome.
Regards,
Michael Egan
--
PHP General Mailing List
the costs of using frames.
HTH,
Michael Egan
-Original Message-
From: Will [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 14:38
To: [EMAIL PROTECTED]
Subject: [PHP] Hinding URL[Scanned]
Hello all,
I am hoping someone can help me.
When someone brings up a page in the browser
about problems with some of the
search engines where session id's are included in urls.
On seeing that the only way of doing this was to use frames I decided that the costs
of doing this probably outweighed what is in effect a purely cosmetic issue.
Regards,
Michael Egan
-Original Message
Problem solved. It seems there was a proxy server involved which was screwing things
up.
Regards,
Michael Egan
-Original Message-
From: Michael Egan
Sent: 31 March 2004 14:20
To: PHP General (E-mail)
Subject: [PHP] fsockopen connection error on IIS[Scanned]
Hello all,
I'm
Matt,
Many thanks for these excellent links - I think I might have reached a different
conclusion if I'd come across these at the outset.
Cheers,
Michael Egan
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: 31 March 2004 15:11
To: [EMAIL PROTECTED
The following may help:
http://dev.mysql.com/doc/mysql/en/Case_sensitivity.html
Cheers,
Michael Egan
-Original Message-
From: QT [mailto:[EMAIL PROTECTED]
Sent: 14 June 2004 18:36
To: [EMAIL PROTECTED]
Subject: [PHP] small and big letter in WHERE statement[Scanned]
Dear Sirs,
When I
with it.
Regards,
Michael Egan
-Original Message-
From: Matt Richards [mailto:[EMAIL PROTECTED]
Sent: 17 June 2004 12:51
To: [EMAIL PROTECTED]
Subject: [PHP] Very strange bug. Opendir/Readdir[Scanned]
Imagine the following:
362class someClass {
363 function someFunction() {
364if($rDirectory
Hey, national 'cry like a baby day' is next week ;)
Could you specify which day next week?
That's one festival I look forward to taking part in :-)
Michael Egan
The information contained in this email (and in any attachments sent with it)
is confidential. It is intended
.
For example:
$sql = select * from members;
if(!$result = mysql_query($sql))
echo mysql_error();
while($row = mysql_fetch_array($result))
{
echo $row['column_name'];
}
HTH,
Michael Egan
-Original Message-
From: Harlequin [mailto:[EMAIL PROTECTED]
Sent: 30 June
Pete,
There was a thread some time ago on the issue of cloaking URLs in which a couple of
contributors pointed to tutorials on the following site:
http://www.alistapart.com/articles/urls/
HTH,
Michael Egan
-Original Message-
From: pete M [mailto:[EMAIL PROTECTED]
Sent: 01 July 2004
Matt,
The most comprehensive example of this is provided by PhpBB (www.phpbb.com).
This application pretty much follows the logic you've set out.
HTH,
Michael Egan
-Original Message-
From: Matt Palermo [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 06:13
To: [EMAIL PROTECTED]
Subject
{
while($result = mysql_fetch_array($query))
{
echo $result['UserID'];
}
}
HTH,
Michael Egan
-Original Message-
From: Harlequin [mailto:[EMAIL PROTECTED]
Sent: 02 July 2004 09:34
To: [EMAIL PROTECTED]
Subject: [PHP] Re: MySQL QUERY Results Not Appearing[Scanned]
Craig
]
Michael
just wanted to thank you through the group for your time.
U R A Star...!
--
-
Michael Mason
Arras People
www.arraspeople.co.uk
-
Michael Egan [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Have a look at the mysql
for graphic design applications.
In theory templates might offer a way of bridging this chasm - though I have my doubts.
Regards,
Michael Egan
-Original Message-
From: EE [mailto:[EMAIL PROTECTED]
Sent: 13 July 2004 14:39
To: php.net
Subject: [PHP] Templates Are Driving me Nuts[Scanned
to
add a different header section to the scripts. This isn't straightforward with PhpBB
because of the way in which some of the scripts use redirects. Perhaps this is causing
the problem.
HTH,
Michael Egan
-Original Message-
From: I.A. Gray [mailto:[EMAIL PROTECTED]
Sent: 14 July 2004
into sessions you get a better profile of unique visitors to the site
which is often difficult to obtain from some of the access logs?
Michael Egan
-Original Message-
From: raditha dissanayake [mailto:[EMAIL PROTECTED]
Sent: 14 July 2004 16:22
To: I.A. Gray
Cc: [EMAIL PROTECTED]
Subject: Re
++)
{
echo Number $i: input type='checkbox' name='lottery_number.$i.'br /;
}
echo input type='submit' name='submit' value='Enter Numbers';
echo /form;
}
HTH,
Michael Egan
-Original Message-
From: Henri Marc [mailto:[EMAIL PROTECTED]
Sent: 21 July 2004 12:33
earlier together with that sent by Torsten
will containg the answer.
HTH,
Michael Egan
-Original Message-
From: Henri Marc [mailto:[EMAIL PROTECTED]
Sent: 21 July 2004 13:51
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem of a beginner with Array[Scanned]
Hello Torsten,
try
to programming.
Michael Egan
-Original Message-
From: Josh Acecool M [mailto:[EMAIL PROTECTED]
Sent: 06 August 2004 20:35
To: [EMAIL PROTECTED]
Subject:[PHP] Re: IMPORTANT: Please Verify Your Message[Scanned]
I've requested that you do not contact me again.
http
83 matches
Mail list logo