// restrictions on table design //foreign keys MUST

October 29, 2006 on 12:06 pm | In php |

// restrictions on table design //foreign keys MUST be named tableID where table is table name// (because mySQL doesn t recognize foreign key indicators) // I also expect a name field in any table used as a foreign key// (for same reason) global $dbConn; $output = ?; $result = mysql_query($query, $dbConn); $row = mysql_fetch_assoc($result); //get table name from field object$fieldObj = mysql_fetch_field($result, 0); $tableName = $fieldObj->table; $output .= <<< HERE


HERE; $fieldNum = 0; foreach ($row as $col=>$val){ if ($fieldNum == 0){ //it s primary key. don t make textbox, //but store value in hidden field instead//user shouldn t be able to edit primary keys$output .= <<

416PHP5/MySQLProgrammingfortheAbsoluteBeginner
Note: If you are looking for high quality webhost to host and run your jsp application check Vision jsp hosting services

WordPress database error: [Table './sandzak_com_-_blog/wp_comments' is marked as crashed and should be repaired]
SELECT * FROM wp_comments WHERE comment_post_ID = '503' AND comment_approved = '1' ORDER BY comment_date

No Comments yet

TrackBack URI

Sorry, the comment form is closed at this time.

Powered by cheap hosting

$col $val