[PHP] Form problem...

2001-03-17 Thread Good Fella

Hi all,

I am currently having problems with my PHP form I have made.  The form is 
working fine, and does everything I want it to, except for one minor problem 
that only I can see.

The output to the user is fine, but when I recieve the contents of the users 
data from the form, and they have things like quotation marks, it appears in 
the text.

For example, if they wrote;
"it's"

It is outputted as:
"it/'s"
in my email.

How do I get rid of this?  I have tried several things stripslashes, 
addslashes, htmlspecialchars etc... But I'm not quite sure how to go about 
it.  Any help would be appreciated.

Thanks,

Regards,

SK
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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-mail: [EMAIL PROTECTED]




[PHP] PHP hosts?

2001-03-19 Thread Good Fella

Hi All,

I am looking for some sites that host PHP.  I can't really afford to pay for 
hosting space anymore, so I was wondering if there were any good (free) web 
hosts, that had PHP and/or MySQL.

I would like to get a fast and stable place to host my files, but if there 
was a preference, I would probably prefer a more stable place that's not 
on/offline a lot.

Any links/help is much appreciated.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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-mail: [EMAIL PROTECTED]




[PHP] Problem with outputting date and time

2001-05-17 Thread Good Fella

Hi All,

I need help with a small problem.  My website has many users from around the 
world, and they need to submit a form at a certain time (UK Time).

Because of this, I need to display the UK Time on my website.
I do this by putting this code:



There is nothing wrong with this code, except for when the clock changes 
(goes back/forward an hour).

This means that this code is 1 hour behind the real UK Time at the moment. 
Is there any simple way of adding 1 hour onto this?

It's extremely confusing as it's making users from around the globe late 
with their submissions.

Thanks for your help and time

SK
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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-mail: [EMAIL PROTECTED]




[PHP] MySQL problem

2001-12-30 Thread Good Fella

Hello,

I am extremely new to MySQL and have never managed to get working
smoothly with PHP before. I am trying really hard to understand
how to work it, and am almost there.

I have a problem which I do not know how to resolve and was
wondering if anybody could help me. I have no idea what is wrong
with the code and why I am getting the error message;

Warning: Supplied argument is not a valid MySQL result resource in 
C:\apache\htdocs\sams\chapter10\results.php on line 47

I am currently using a book to aid me with MySQL, and this is an
example from the book. It does not seem to work and I have no idea
what I may have done wrong to obtain this warning.

I have changed my login and password to question marks.

Number of books found: ".$num_results."";

  for ($i=0; $i <$num_results; $i++)

  {

 $row = mysql_fetch_array($result);

 echo "".($i+1).". Title: ";

 echo stripslashes($row["title"]);

 echo "Author: ";

 echo stripslashes($row["author"]);

 echo "ISBN: ";

 echo stripslashes($row["isbn"]);

 echo "Price: ";

 echo stripslashes($row["price"]);

 echo "";

  }

?>

The problem seems to be around the lines of code;

$result = mysql_query($query);

$num_results = mysql_num_rows($result);

Any assistance is appreciated.

Yours,

GF.

_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


-- 
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-mail: [EMAIL PROTECTED]




[PHP] A problem with my PHP installation

2001-11-16 Thread Good Fella

Hiya All,

I am running Windows XP Professional and am currently experiencing a problem 
with PHP.
I have installed Internet Information Services 5.1, and followed my usual 
set-up of PHP under IIS.
I have managed to do this perfectly fine on Windows 2000, but have noticed 
that on Windows XP, there is something wrong.

There is a test "phpinfo();" function page to see if PHP is installed and 
configured properly and this works fine. It appears almost instantly when 
typed in on the web browser. However a simple "gmdate("M d Y");" function 
doesn't seem to want to display. The browser searches for the page for ages 
(well over 5 minutes) but doesn't return any error messages, it simply 
continues to load until I've decided I've had enough of waiting. Why is it 
taking so long for the web browser to pick up the PHP page?

I only used these methods as means of testing to see if the installation was 
working okay, and am really disappointed at the speed. Does anyone have any 
suggestions or ideas on what may have gone wrong? I am using PHP v4.06.

Many thanks for your time.

Neil.


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


-- 
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-mail: [EMAIL PROTECTED]




[PHP] Form help

2001-03-22 Thread Good Fella

Hi All,

I currently have a small problem with my PHP form.  I have made two PHP 
files (application.php and process_application.php).

On submitting the form, you then move to process_application.php.  Any 
errors will force the form NOT to be submitted to me.

However, how do I stop people from accessing process_application.php 
directly?  You can still type in the URL of this address without filling in 
any details.

Although it serves up an error, is there anyway I can prevent people from 
getting to this page unless they press "Submit" on the actual form on 
application.php?

Thanks,

SK
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-- 
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-mail: [EMAIL PROTECTED]