RE: [PHP] Merge array i think

2008-08-14 Thread admin
Never mind I was looking at php and it was a Mysql thing
SELECT CONCAT('My', 'S', 'QL');
will do exactly what i want







Here is my problem in mssql in asp i can 
SELECT (height + 'x' + width) as size FROM Twenty


How can i do that for mysql under php?
I am trying to create a single array result using 2 different fields of data 
plus extra characters.

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

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



[PHP] Merge array i think

2008-08-14 Thread admin
Here is my problem in mssql in asp i can 
SELECT (height + 'x' + width) as size FROM Twenty


How can i do that for mysql under php?
I am trying to create a single array result using 2 different fields of data 
plus extra characters.

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



[PHP] merge array

2004-03-02 Thread Max
Hello all,

I have two arrays as follows:

$x = array(3,4,6,8);
$y = array(10,20,40,10);

I need these arrays could be merged with '0' in between.

Result expected :

$x = array(1,2,3,4,5,6,7,8);
$y = array(0,0,10,20,0,40,0,10);


Can anybody help me ?
Thanks in advance.


Max