Quantcast
Channel: BlogoSfera » numeric
Viewing all articles
Browse latest Browse all 12

PHP convert MySQL string field to numeric array

$
0
0

I have a problem in a PHP file with an array from a field from a MySQL table: <?php require "lib/config.php"; $users = array(); error_reporting(0); $UTB = $config['dbTableNames']['users']; mysql_connect($config['dbConnection']['host'], $config['dbConnection']['user'], $config['dbConnection']['pass']); mysql_select_db($config['dbConnection']['name']); $GuID = mysql_query("SELECT ID, Channels FROM $UTB"); if (mysql_affected_rows() == 1) { while ($rGuID = mysql_fetch_array($GuID)) { $uID = $rGuID['ID']; $users[$uID]['channels'] = array($rGuID['Channels']); […]

The post PHP convert MySQL string field to numeric array appeared first on BlogoSfera.


Viewing all articles
Browse latest Browse all 12

Trending Articles