EasyUI instant form generation

<?php

$R = R:: getAll(“SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = ‘$db’ AND TABLE_NAME = ‘$table_name’”);
foreach($R as $val)
{
if($val[“COLUMN_NAME”]!=”id”)
{
$a = str_replace(“_”,” “,$val[“COLUMN_NAME”]);
$a =ucfirst($a);
print(“<th field=\”$val[COLUMN_NAME]\” width=\”10%\”>$a</th>\n”);

}
}
?>

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s