[PHP-DB] String manipulation

2009-09-11 Thread Ron Piggott
How would I put a space after each letter: echo str_shuffle(stripslashes(mysql_result($word_result,0,word)); Ron

Re: [PHP-DB] String manipulation

2009-09-11 Thread boclair
Ron Piggott wrote: How would I put a space after each letter: echo str_shuffle(stripslashes(mysql_result($word_result,0,word)); Ron CSS best handles styling E.G. div style=letterspacing:0.5em;php echo $word_result;?/div OR ?php print div

Re: [PHP-DB] String manipulation

2009-09-11 Thread olavi
You can do like this: $str = 'helloworld'; echo preg_replace('//', ' ', $str); this will print out - h e l l o w o r l d Olavi Ivask How would I put a space after each letter: echo str_shuffle(stripslashes(mysql_result($word_result,0,word)); Ron -- PHP Database Mailing List

[PHP-DB] What's the number scheme for 'colno' for Select call in PDO driver

2009-09-11 Thread Sanjeev Kumar
Hi, In the implemetation of Pdo-driver (extension) , what's the Sequence/Index scheme for parameter: 'colno' ? This param 'colno' is input in driver calls (of PDO statement) : int SKEL_stmt_describe_col(pdo_stmt_t *stmt, int colno TSRMLS_DC) int SKEL_stmt_get_col_data(pdo_stmt_t *stmt, int

[PHP-DB] Need help-Send email

2009-09-11 Thread nagendra prasad
Hi All, I want to send my sql database to the user email. But I don't have any Email server or any email domain server. So, is their any way to use my localhost to send emails to the user's email id. If it not possible is their a way that I can use my Gmail to send an email through PHP? Best,

Re: [PHP-DB] What's the number scheme for 'colno' for Select call in PDO driver

2009-09-11 Thread Christopher Jones
Sanjeev Kumar wrote: Hi, In the implemetation of Pdo-driver (extension) , what's the Sequence/Index scheme for parameter: 'colno' ? This param 'colno' is input in driver calls (of PDO statement) : int SKEL_stmt_describe_col(pdo_stmt_t *stmt, int colno TSRMLS_DC) int

[PHP-DB] PgSql PDO

2009-09-11 Thread kranthi
I am not able to get this working... 1. pdo_pgsql.so exists in the extensions directory and is referenced in the ini file. 2. phpinfo() shows that support for both pgsql and pdo_pgsql is enabled. 3. PDO::getAvailableDrivers() lists pgsql as avilable driver. 4. I am able to connect via

Re: [PHP-DB] PgSql PDO

2009-09-11 Thread Lester Caine
kranthi wrote: I am not able to get this working... 1. pdo_pgsql.so exists in the extensions directory and is referenced in the ini file. 2. phpinfo() shows that support for both pgsql and pdo_pgsql is enabled. 3. PDO::getAvailableDrivers() lists pgsql as avilable driver. 4. I am able to connect