Please log in to your MySQL database'; if (!empty($submit)) {echo '

Sorry - login failed - please try again

'."\n";} echo '
Hostname:
Username:
Password:

'."\n"; } else { if (!isset($db)) { $dbs = mysql_list_dbs($dbl); $num_dbs = mysql_numrows($dbs); echo '

Please choose a database

'."\n"; for ($i=0; $i<$num_dbs; $i++) { $db = mysql_dbname($dbs, $i); if ($i==0) {echo ' '."\n"; } else {echo ' '."\n";} } echo '
'.$db.'
'.$db.'

'."\n"; } else { if (!isset($tb)) { echo '

Please choose a table from database: '.$db.'

'."\n"; $tbs = mysql_list_tables($db,$dbl); $num_tbs = @mysql_numrows($tbs); for ($j=0; $j<$num_tbs; $j++) { $tb = mysql_tablename($tbs, $j); if ($j==0) {echo ' '."\n"; } else {echo ' '."\n";} } echo '
'.$tb.'
'.$tb.'

'."\n"; } else { if (!isset($id)) { echo '

Please choose an identifier from table: '.$tb.'

This field will be used in Changes or Deletes.

It must be numeric and must uniquely identify a record.
If you haven\'t got a suitable field select None.

'."\n"; $fds = mysql_list_fields($db,$tb,$dbl); $j=0; while (1) { $fd = @mysql_field_name($fds, $j); if ($fd == "") { break; } $ff = mysql_field_flags($fds, $j); if (stristr($ff,"primary_key")) {echo " "; } else {echo " "; } echo "\n"; ++$j; } echo '
NoneNo id field required
".$fd."".$ff."
".$fd."".$ff."

'."\n"; } else { echo '

Here is your PGPMyEdit calling program

'."\n"; echo '

You may now copy and paste it into your PHP editor

'."\n"; echo '
'."\n";
        echo_html('\'."\n")?>');
        echo_html('


  '.$tb.'
  


  

'.$tb.'

execute(); ?>
'); echo "

\n"; } } } } ?>