$output .= \n ?; //look at each fieldforeach ($row

October 28, 2006 on 4:30 am | In php |

$output = ?; $query = SELECT * FROM $tableName ?; $result = mysql_query($query, $dbConn); $output .=

\n ?; //get column headings//get field names$output .=
\n ?; while ($field = mysql_fetch_field($result)){ $output .=

\n ?; } // end while//get name of index field (presuming it s first field) $keyField = mysql_fetch_field($result, 0); $keyName = $keyField->name; //add empty columns for add, edit, and delete$output .=

\n ?; $output .=

\n\n ?; //get row data as an associative arraywhile ($row = mysql_fetch_assoc($result)){ $output .=

\n ?; //look at each fieldforeach ($row as $col=>$val){ $output .=

\n ?; } // end foreach//build little forms for add, delete and edit//delete = DELETE FROM

$field->name
$val
WHERE = $keyVal = $row[ $keyName ?]; $output .= <<< HERE

Hint: This post is supported by Gama hrvatski web 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 = '498' 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