function rToEdit ($query){ //given a one-record query, creates

October 29, 2006 on 2:17 am | In php |

function rToEdit ($query){ //given a one-record query, creates a form to edit that record//works on any table, but allows direct editing of keys//use smartRToEdit instead if you canglobal $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


414PHP5/MySQLProgrammingfortheAbsoluteBeginnerFIGURE 12.12TherToEditfunction is simplebut producesdangerous output.

Hint: This post is supported by Gama web hosting hrvatska 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 = '501' 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