RE: [PHP-DB] String handling

2004-09-30 Thread Darryl
Darryl'; [EMAIL PROTECTED] Subject: RE: [PHP-DB] String handling If you use the value from a text box in a mathematical equation or comparison, PHP will automatically attempt to handle it as an integer or some other numeric type (e.g., float). So if you did something like: if($_POST["myvar

RE: [PHP-DB] String handling

2004-09-30 Thread Hutchins, Richard
ut check out the parts of the PHP documentation I cited and you should be able to figure out what needs to be done. HTH, Rich > -Original Message- > From: Darryl [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 30, 2004 10:42 AM > To: [EMAIL PROTECTED] > Subject: [PH

Re: [PHP-DB] String handling

2004-09-30 Thread Joseph Crawford
$string = '10001'; if((int)$string) > 1) { echo 'Yep it is'; } -- Joseph Crawford Jr. Codebowl Solutions [EMAIL PROTECTED] 802-558-5247 For a GMail account contact me OFF-LIST -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] String handling

2004-09-30 Thread Darryl
Hay, Is there a way to make a string into an integer? I have a value coming from a textbox and I want to check if the amount in it is < 1. Thanks, Darryl