//*** PARSE VARIABLES: //Should be specified by the URL $bot = 1; //Default if nothing is supplied through the URL parse_str($_SERVER['QUERY_STRING'], $output); //Parses URL values into variables if (isset($output['bot'])){$bot = $output['bot'];} //Parsed from URL $recordkey = $bot; //Keyvalue for use in logon button $txlkey = 27; //This value is nescesarry to edit the name and text $titel=$bot; //A part is always group 27 and can be edited online include ("include_all_updateable.php"); //Includes without any window output include ("/var/www/html/robotigs/includes/include_head.php"); //Headers etc include ("/var/www/html/robotigs/includes/include_menu.php"); //Javascript menu include ("/var/www/html/robotigs/includes/include_functions.php"); //*** READ DATA ---------------------------------------------------------------- $qry = ("SELECT * FROM farmbotversie WHERE id=$bot ;"); $result = pg_query($con1, $qry); while($row = pg_fetch_array($result)){ //Fields accesible by their name foreach( $row AS $key => $val ){ $$key = stripslashes( $val ); } } //*** FROM HERE ON THE TOP LINE STARTS ***************************************** echo ("