RE: [PHP-DB] number format

2004-11-28 Thread Bastien Koert
explode()
RTFm
bastien
From: balwantsingh [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] number format
Date: Sat, 27 Nov 2004 18:07:27 +0530
hello,
may pls. suggest me how i can retreive number before decimal and after
decimal.
for example 123456.7. I want to store 123456 in a variable and 7 in 
another.

also how can i force the user by validations so that he can only enter data
in this format only i.e. 123456.7.
thanks
with best wishes
balwant
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] Is there any replication service for MySQL?

2004-11-28 Thread Bastien Koert
are you looking at mysql replication or at a tool, like sqlYOG or 
phpmyadmin?

bastien
From: Sadeq Naqashzade [EMAIL PROTECTED]
Reply-To: Sadeq Naqashzade [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Is there any replication service for MySQL?
Date: Sun, 28 Nov 2004 08:21:24 +0330
Hi all,
Do you know any replicator server to synchronize database on local
server with my web server?
Sadeq Naqashzade Yazdi

www.Sadeq.ir

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] Re: php-db Digest 28 Nov 2004 16:17:01 -0000 Issue 2703

2004-11-28 Thread Henry
 -- Forwarded message --
 From: balwantsingh [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Sat, 27 Nov 2004 18:07:27 +0530
 Subject: [PHP-DB] number format
 hello,
 
 may pls. suggest me how i can retreive number before decimal and after
 decimal.
 for example 123456.7. I want to store 123456 in a variable and 7 in another.
 
 also how can i force the user by validations so that he can only enter data
 in this format only i.e. 123456.7.
 
 thanks
 
 with best wishes
 balwant
 

// Retrieve Number and Decimal Part
$num = 123456.7;
$num_part = substr($num, 0, strrpos($num, .));
$dec_part = substr($num, strrpos($num, .) + 1) ;

// Validation
if (preg_match(/^\d+\.\d+$/, $num)) {
   print(matched);
} else {
   print(not matched);
}


Regards,
Henry

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Cisco UBR interface with PHP

2004-11-28 Thread Cow Youngcow
you can use snmp interface to read information from cisco ubr

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-DB] number format

2004-11-28 Thread balwantsingh
hello,

may pls. suggest me how i can retreive number before decimal and after
decimal.
for example 123456.7. I want to store 123456 in a variable and 7 in another.

also how can i force the user by validations so that he can only enter data
in this format only i.e. 123456.7.

thanks

with best wishes
balwant

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] number format

2004-11-28 Thread Shen Kong
Balwantsingh wrote:
hello,
may pls. suggest me how i can retreive number before decimal and after
decimal.
for example 123456.7. I want to store 123456 in a variable and 7 in another.
also how can i force the user by validations so that he can only enter data
in this format only i.e. 123456.7.
thanks
with best wishes
balwant
Use explode()
$num = 123456.7;
$parts = explode(., $num);
echo $part[0]\n;
echo $part[1];
--
-- ShenKong ([EMAIL PROTECTED])
-- http://www.openphp.cn
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php