php-db | 2004071
Date: 07/15/04
- Next message: Ryan Jameson: "[PHP-DB] Ldap query problem"
- Previous message: Matt M.: "Re: [PHP-DB] Printing selected characters (strcnt?)"
- In reply to: Vincent Jordan: "[PHP-DB] Printing selected characters (strcnt?)"
- Next in thread: Matthew McNicol: "Re: [PHP-DB] Printing selected characters (strcnt?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Vincent Jordan wrote:
> I am trying to figure out how to select the first letter of from the form
> field print it then append by datetime.
>
> Here is an example:
>
> <snip>
> $first_name = $_POST['first_name'];
> $last_name = $_POST['last_name'];
> $name = $first_name . ' ' . $last_name
> $rma = ?strcnt($last_name), 1 . Datetime(?) // takes the 1st character from
> $last_name and adds datetime in format of 715041200
> </snip>
There is no "strcnt" function and your code has errors.
$rma = $last_name{0} . time();
-- ---John Holmes...Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Ryan Jameson: "[PHP-DB] Ldap query problem"
- Previous message: Matt M.: "Re: [PHP-DB] Printing selected characters (strcnt?)"
- In reply to: Vincent Jordan: "[PHP-DB] Printing selected characters (strcnt?)"
- Next in thread: Matthew McNicol: "Re: [PHP-DB] Printing selected characters (strcnt?)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

