Re: [PHP-DB] String manipulation
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. OR $word_result"; ?> Increase the em value to customize the spacing Louise -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] String manipulation
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 (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] What's the number scheme for 'colno' for Select call in PDO driver
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 colno, ...) e.g If the script has cmds: Insert into Table test1(col1 int, col2 string, col3 real) SELECT col2,col3 from test1; The driver would which values for colno ? -sanjeev
[PHP-DB] Need help-Send email
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, -- Guru Prasad Ubuntu Voice GTK+ Forum
Re: [PHP-DB] What's the number scheme for 'colno' for Select call in PDO driver
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 SKEL_stmt_get_col_data(pdo_stmt_t *stmt, int colno, ...) > > > e.g If the script has cmds: > Insert into Table test1(col1 int, col2 string, col3 real) > SELECT col2,col3 from test1; > > The driver would which values for colno ? > > -sanjeev > In ext/pdo/php_pdo_driver.h: /* queries information about the type of a column, by index (0 based). * Driver should populate stmt->columns[colno] with appropriate info */ typedef int (*pdo_stmt_describe_col_func)(pdo_stmt_t *stmt, int colno TSRMLS_DC); Colno is a 0 based relative to the columns used in the query. A working example is oci_stmt_describe() in ext/pdo_oci/oci_statement.c. This callback is assigned to the "describer" field of oci_stmt_methods at the bottom of the same file. The callback gets called from pdo_stmt_describe_columns() in ext/pdo/pdo_stmt.c. Similarly, see oci_stmt_get_col() for the second skeleton function you mention. Chris -- Blog: http://blogs.oracle.com/opal Twitter: http://twitter.com/ghrd -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DB] PgSql PDO
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 pgsql_connect() pdo_pgsql::_construct() is throwing an PDO_Exception "could not find driver" am I missing something here ? pls help -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] PgSql PDO
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 via pgsql_connect() pdo_pgsql::_construct() is throwing an PDO_Exception "could not find driver" am I missing something here ? pls help Perhaps you could show the code. You should be using =new rather than _construct() I think. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php