$fold = "14/"; require("1/1c.php"); $connection = mysql_connect($db_host, $db_user, $db_password) or die("Your connection it's not looking good.[param]"); mysql_select_db($db_name, $connection) or die("Where is the database?[dsh]"); mysql_query("SET CHARACTER SET utf8"); $query_01 = "SELECT * FROM ".$dbCityID."_loc WHERE vfield_id='".$tfid."'"; @$result_01 = mysql_query($query_01, $connection);// or die ("Field identification error.[loc in tad1]"); if(mysql_num_rows($result_01) == false){ // if tfid is not in the database $tfid = decFid($firstField); $query_01 = "SELECT * FROM ".$dbCityID."_loc WHERE vfield_id='".$tfid."'"; @$result_01 = mysql_query($query_01, $connection) or die ("Field identification error.[loc in tad2]"); } $shareTitle = mysql_result($result_01, 0, "loc_name".$lang); $shareDescript = substr(mysql_result($result_01, 0, "loc_story".$lang), 0, 230); $shareFolder = "_snaps/"; $shareImg = $simg;//"110601185656517002d127000000001"; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; echo ' '; require("1/_xs.php"); if (substr(mysql_result($result_01, 0, "file"), 1, 5) == "param"){ $file = substr(strstr(mysql_result($result_01, 0, "file"), "14/"), 3, 5); } else if (strlen(trim(mysql_result($result_01, 0, "file"))) == 0){ $file = $tfid; } else { $file = mysql_result($result_01, 0 , "file"); } ?>