note 37627 added to ref.wddx

From: Date: Fri, 21 Nov 2003 10:08:41 +0000
Subject: note 37627 added to ref.wddx
Groups: php.notes 
Request: Send a blank email to php-notes+get-60743@lists.php.net to get a copy of this message
To insert arrays into a wddx variable here is a fine way to do it: <?php $sql = 'SELECT * FROM example'; $query = mysql_query($sql, $db) or die(mysql_error()); while($result = mysql_fetch_array($query)) { $id[] = $result[ 'id']; $name[] = $result['name']; $description[] = $result[$prefix . 'description']; } mysql_free_result($query); wddx_add_vars($packet_id, "id"); wddx_add_vars($packet_id, "name"); wddx_add_vars($packet_id, "description"); $wddxSerializeValue = wddx_packet_end($packet_id); ?> ---- Manual Page -- http://www.php.net/manual/en/ref.wddx.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37627 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37627&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37627&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#60743) next »