***********
"); $q = explode("&",$_SERVER["QUERY_STRING"]); foreach ($q as $qi) { if ($qi != "") { $qa = explode("=",$qi); list ($key, $val) = $qa; if ($val) { $$key = urldecode($val); //echo "
1: $$key=$val"; } } } reset ($_POST); while (list ($key, $val) = each ($_POST)) { if ($val) { $$key = $val; //echo "
2: $$key=$val"; } } //echo("
**********
"); $id = (int) $id; $db="drupal"; $conn = mysql_connect('localhost') or die("Could not connect to MySQL: " . mysql_error()); mysql_select_db($db , $conn) or die("Couldn't open database -> $db: ".mysql_error()); $result = mysql_query("SELECT * FROM content_type_techseeker WHERE field_techseeker_id_value=$id") or die("SELECT Error1: ".mysql_error()); $row = mysql_fetch_array($result, MYSQL_ASSOC); $num_rows = mysql_num_rows($result); //echo("
num_rows=$num_rows
"); $result1 = mysql_query("SELECT * FROM files WHERE fid=$row[field_techseeker_logo_fid]") or die("SELECT Error2: ".mysql_error()); $row1 = mysql_fetch_array($result1, MYSQL_ASSOC); $num_rows1 = mysql_num_rows($result1); //echo("
num_rows1=$num_rows1
"); //echo("row[filepath]=$row[filepath]
"); if($row1[filepath] == "") { $logo=""; } else { $logo=""; } echo("
$logo
$row[field_techseeker_profile_value]
"); ?>