[FX.php List] Spaces in Field Names...one more time with gusto
Gjermund Gusland Thorsen
ggt667 at gmail.com
Wed Dec 10 01:47:38 MST 2008
What I am suggesting
---
<?php
include_once( $_SERVER['DOCUMENT_ROOT'] . "/FX/FX.php" );
include_once( $_SERVER['DOCUMENT_ROOT'] . "/FX/server_data.php" );
$q = new FX( $serverIP, $serverPort );
$q->SetDBData( $dbname, 'index.php' );
$q->SetDBPassword( $xmlPass, $xmlUser );
$r = $q->FMFindAny();
foreach( $r['fields'] as $k => $v ) {
$field[] = '<li><div>' . $v['name'] . '</div><div><input
name="' . $v . '" id="' . $v['name'] . '"></div></li>';
}
?>
<HTML>
<HEAD>
<TITLE>Test script for FX.php list</TITLE>
</HEAD>
<body>
<?
echo '<ul>' . implode( "\n", $field ) . '</ul>';
echo '<pre>';
print_r( $r );
echo '</pre>';
?>
</body>
</html>
---
My code might not look like poetry,
but I guess it can kick some ham.
ggt
More information about the FX.php_List
mailing list