Your Airport Information selector
>


:: Error in mySQL ::
\n"; echo "mySQL error: ".$sql_err."
\n"; echo "In the file: ".$in_file."
\n"; echo "Line number: ".$on_line."
\n"; echo "Error number: ".$err_no."
\n"; echo "


"; exit; } // ========================================================================= // // **** MySQL get it // ========================================================================= // $sql = mysql_query("SELECT * FROM content where apt='$airport' AND cat='$category'") or die_msg(mysql_error(), __FILE__, __LINE__, mysql_errno()); $u = mysql_fetch_array($sql); if($u) { // UPDATE TODAY'S DAY COUNT if($upd=="update"){ // update mysql_query("UPDATE content SET bl1='$bl1',bl2='$bl2',bl3='$bl3',link1='$link1',link2='$link2',title='$title',metadesc='$metadesc',metakey='$metakey',text='$text' WHERE apt='$airport' AND cat='$category'") or die_msg(mysql_error(), __FILE__, __LINE__, mysql_errno()); $sql = mysql_query("SELECT * FROM `content` where apt='$airport' AND cat='$category'") or die_msg(mysql_error(), __FILE__, __LINE__, mysql_errno()); $u = mysql_fetch_array($sql); echo "UPDATED"; } }else{ if($upd=="update"){ // write mysql_query("INSERT INTO content values('','$airport','$category','','','$bl1','$bl2','$bl3','$link1','$link2','$title','$metadesc','$metakey','$text')") or die_msg(mysql_error(), __FILE__, __LINE__, mysql_errno()); $sql = mysql_query("SELECT * FROM `content` where apt='$airport' AND cat='$category'") or die_msg(mysql_error(), __FILE__, __LINE__, mysql_errno()); $u = mysql_fetch_array($sql); echo "WRITTEN"; }else{ $bl1=""; $bl2=" "; $bl3=" "; $link1=" "; $link2=" "; $title=""; $metadesc=""; $metakey=""; $text=""; echo "No Data"; } } // ========================================================================= // // **** MySQL spew out // ========================================================================= // ?>
Blob1

Blob2

Blob3

Link1>Link2>

Titel
Metadesc
Metakey
Text