"; $result = mysql_query($query, $dbh); $i = 0; while ($i < mysql_num_fields($result)) { // echo "Information for column $i:
\n"; $meta = mysql_fetch_field($result); if (!$meta) { echo "No information available
\n"; } $colarray[] = $meta->name; $i++; } $i = 0; $build_fields = "("; $build_values = "('"; while ($i < mysql_num_fields($result)) { if ($i>0) { $build_fields .= ", "; $build_values .= ", '"; } $build_fields .= $colarray[$i]; $build_values .= $values[$i] . "'"; $i++; } $build_fields .= ")"; $build_values .= ")"; $query_insert = "INSERT INTO " . $tablename . " " . $build_fields . " VALUES " . $build_values; // echo $query_insert . "
"; $result_insert = mysql_query($query_insert) or die("Insert didn't work" . mysql_error()); } function CreateDropDown($dbh, $selectname, $tablename, $orderby, $selectcol, $noselecttext){ echo "\n"; } function CreateCheckBoxListTable($dbh, $tablename, $orderby, $selectcol, $tablewidth, $tableborder, $cellpadding, $bgcolor){ echo "\n"; echo " \n"; echo " \n"; echo " \n"; $query = "Select * from $tablename ORDER BY $orderby"; $result = mysql_query($query, $dbh); while($row = mysql_fetch_array($result)){ echo " \n"; echo " \n"; echo " \n"; } echo "
$tablename
\n"; echo " "; echo $row[$selectcol] . "\n"; echo "
\n"; } function dollar($amount) { $amount=doubleval($amount); echo(sprintf("%.2f", $amount)); } ?> Joe Englander Photography: Site Map
Joe Englander Photography
Site Map

Home page

About Joe Englander

Contact information

Articles for photographers:

Links: Workshop Participants' Photo Galleries

Photography Galleries
 

Complete Photo Listing
 

© Joe Englander. All rights reserved.