preperation for ping, need training in SQL :(

This commit is contained in:
Michael Meer 2014-01-23 12:09:35 +01:00
parent aec78b3284
commit 524fff3a17

View File

@ -462,7 +462,12 @@ function admin_page_hubloc_post(&$a){
logger('POST input: '. print_r($_POST,true), LOGGER_DEBUG); logger('POST input: '. print_r($_POST,true), LOGGER_DEBUG);
if ( $_POST['hublocid']) { if ( $_POST['hublocid']) {
logger('hublocid is not empty: ' . $_POST['hublocid'], LOGGER_DEBUG); $hublocid = $_POST['hublocid'];
logger('hublocid is not empty: ' . $hublocid , LOGGER_DEBUG);
$hublocurl = q("SELECT hubloc_url FROM hubloc WHERE hubloc_id = %d ",
intval($hublocid)
);
logger('hubloc_url : ' . print_r($hublocurl, true) , LOGGER_DEBUG);
} }
//if ( $_POST'' == "check" ) { //if ( $_POST'' == "check" ) {