savj14 Posted March 26, 2007 Share Posted March 26, 2007 Hello all, I am trying to edit this PHP File in Dreamweaver, but I can only see a table with no data. I feel that the way the tags are setup it is not recognized as valid HTML. Therefore I cannot see the layout and edit the content I need to edit. The PHP file I am posting is for a myspace like Profile. Hopefully someone can let me know what I am doing wrong and what I need to ADD/Replace so I can change the content around in Dreamweaver. Thanks in advanced. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 26, 2007 Share Posted March 26, 2007 Looks fine to me, try changing your view from design to code View (menu) -> Code Heres the files code <div align='center'> <table width="830" border="0" cellspacing="0" cellpadding="4" align="center"> <tr> <link rel="stylesheet" type="text/css" href="styles/css_profile.css" /> <td width="780" align="center" bgcolor="FFFFFF"> <table cellspacing="0" cellpadding="0" border="0"> <tr> <td width="275" height="33" align="center" valign="top" bgcolor="FFFFFF"><br> <table border="0" cellspacing="0" cellpadding="0" height=100> <tr> <td valign='top' colspan="3" align="left" valign="bottom"> <?php $name=$people->get_name($HTTP_GET_VARS["member_id"]); $int=$profile->get_interests($HTTP_GET_VARS["member_id"]); ?> <span class="nametext"><?=$name?></span> </td> </tr> <tr><td valign='top'> <table cellpadding='4' cellspacing=0 width=300 align="center"> <tr> <td valign='top' width="75" height="75" bgcolor="ffffff" class="text"> <?php $num_images=$people->get_num_images($HTTP_GET_VARS["member_id"]); if($num_images==0) { $gender=$people->check_gender($HTTP_GET_VARS["member_id"]); if($gender=="Male") { $image="<img alt='' src='images/male.gif' width=90 border=0>"; } else { $image="<img alt='' src='images/female.gif' width=90 border=0>"; } } else { $image_url=$people->get_image($HTTP_GET_VARS["member_id"]); $pic_name=str_replace('user_images/', '', $image_url); $image = "<img src='image_gd/image_profile.php?$pic_name' border='0'>"; } ?> <a href='gallery.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>'> <?=$image?> </a> </td> <td width="15" height="75" bgcolor="ffffff" class="text"> <img src="images/clear.gif" width="15" height="8" border="0" alt=""></td> <td width="193" height="75" bgcolor="ffffff" class="text"> <?php if($int["headline"]!=Null) { ?> "<?=stripslashes($int["headline"])?>" <?php } ?> <br> <?=$basic_info["gender"]?><br> <?php $num_days=4; $num_days=$num_days*2; $num_days=$num_days+5; $num_days=$num_days*50; $m=date("m"); $d=date("d"); if($m <= $basic_info["birth_month"]) { $num_days=$num_days+1755; } else { $num_days=$num_days+1754; } $num_days=$num_days-$basic_info["birth_year"]; //print "Num Days = $num_days"; //print substr($num_days,1,3); $days=datediff($basic_info["dob"], GetTodayDate(0)); $years=$days/365; $years=substr($years,0,2); ?> <?=$years?> years old<br> <?=$basic_info["city"]?> <?php if($basic_info["city"]!=Null) { ?> , <?php } ?> <?=$basic_info["current_state"]?><br> <?php if($basic_info["country"]!=Null) { if(is_numeric($basic_info["country"])) { $sql="select * from states where state_id = $basic_info[country]"; $country_res=mysql_query($sql); $country_set=mysql_fetch_array($country_res); } ?> <?=$country_set["state_name"]?> - <?=$basic_info["zip_code"]?> <?php } ?> <?php if($basic_info["last_login"]!=Null) { ?> <br><b>Last Login:</b> <?=strftime("%B %d %Y",strtotime($basic_info["last_login"]))?> <br> <?php } else { ?> <br><b>Last Login:</b> <?=date("m/d/Y")?><br> <?php } ?> </td> </tr> <tr align="center" valign="middle"> <td class='txt_label'> View My <a class='txt_label' href="gallery.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"><b>Gallery</b></a> | <a class='txt_label' href='video_gallery.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>'><b>Videos</b></a> </td> </tr> </table></td></tr> </table><br> <?php $sql="select display_name from members where member_id = $HTTP_GET_VARS[member_id]"; $mem_res=mysql_query($sql); $mem_set=mysql_fetch_array($mem_res); if($mem_set["display_name"]==Null) { ?> <table cellspacing="0" cellpadding="4" width="300"> <tr> <td width="300" height="15" class='txt_label' class="text" align="left" style="word-wrap:break-word"> My URL: <a href='<?=$site_url?><?=$HTTP_GET_VARS["member_id"]?>'><?=$site_url?><?=$HTTP_GET_VARS["member_id"]?></a> </td></tr> <tr><td> </table> <?php } else { ?> <table cellspacing="0" cellpadding="0" width="300"> <tr> <td width="300" height="15" class='txt_label' class="text" align="left" style="word-wrap:break-word"> My URL: <a href='<?=$site_url?><?=$mem_set["display_name"]?>'><?=$site_url?><?=$mem_set["display_name"]?></a> </td></tr> <tr><td> </table> <?php } ?> <br> <table class="contactTable" cellspacing="0" cellpadding="0" width="300"> <tr> <td width="300" height="15" class="whitetext12" align="left" style="WORD-WRAP:break-word"> Contacting <?=$name?> </td> </tr> <tr> <td> <table border="0" cellspacing="0" cellpadding="0" width="300" bordercolor="#000000"> <tr> <td><img src="images/clear.gif" width="1" height="5" border="0"></td> </tr> <tr> <td width="120" height="5" nowrap bgcolor="#ffffff" align="center" class="text"> <a href="send_message.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/sendMailIcon.gif" border="0" align="middle"> </a> </td> <td width="15" height="5" bgcolor="#ffffff"> <img src="images/clear.gif" width="15" height="8" border="0"> </td> <td width="150" nowrap height="5" bgcolor="#ffffff" align="center" class="text" valign="top"> <a href="forward_friend.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/forwardMailIcon.gif" border="0" align="middle"></a> </td> </tr> <tr> <td colspan="3"><img src="images/clear.gif" width="1" height="2" border="0"></td> </tr> <tr> <td width="130" nowrap height="5" bgcolor="#ffffff" align="center" class="text" valign="top"> <a href="invite_friend.php?friend_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/addFriendIcon.gif" border="0" align="middle"></a> </td> <td width="15" height="5" bgcolor="#ffffff"> <img src="images/clear.gif" width="15" height="1" border="0"> </td> <td width="150" nowrap height="2" bgcolor="#ffffff" align="center" class="text" valign="middle"> <a href="add_bookmark.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/addFavoritesIcon.gif" border="0" align="middle"></a> </td> </tr> <tr> <td colspan="3"><img src="images/clear.gif" width="1" height="2" border="0"></td> </tr> <tr> <td width="130" nowrap height="5" bgcolor="#ffffff" align="center" class="text" valign="top"> <a href="#"> <img src="images/messagefriend.gif" border="0" align="middle"> </a> </td> <td width="15" height="5" bgcolor="#ffffff"><img src="images/clear.gif" width="15" height="8" border="0"></td> <td width="150" nowrap height="5" bgcolor="#ffffff" align="center" class="text" valign="top"> <a href="flag.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/blockuser.gif" border="0" align="middle"></a> </td> </tr> <tr> <td width="130" nowrap height="5" bgcolor="#ffffff" align="center" class="text" valign="top"> <a href="add_group.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/icon_add_to_group.gif" border="0" align="middle"></a> </td> <td width="15" height="5" bgcolor="#ffffff"><img src="images/clear.gif" width="15" height="1" border="0"></td> <td width="150" nowrap height="2" bgcolor="#ffffff" align="center" class="text" valign="middle"> <a href="rank_band.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>"> <img src="images/icon_rank_user4.gif" border="0" align="middle"></a></td> </tr> <tr> <td><img src="images/clear.gif" width="1" height="5" border="0"></td> </tr> </table> </table> <br> <?php // check for age if($years < 16) { if($_SESSION["member_id"]==Null) { $show=0; } else { if($HTTP_GET_VARS["member_id"]==$_SESSION["member_id"]) { $show=1; } else { // check if friend $sql="select count(*) as a from member_friends where member_id = $HTTP_GET_VARS[member_id] and friend_id = $_SESSION[member_id]"; $num_res=mysql_query($sql); $num_set=mysql_fetch_array($num_res); if($num_set["a"]==1) { $show=1; } else { $show=0; } // check if friend } } } else { $show=1; } ?> <?php if($show==1) { ?> <!-- interests --> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="300" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="300" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <?=$name?>'s Interests </span> </td> </tr> <tr valign="top"> <td> <table bordercolor="000000" cellspacing="3" cellpadding="3" width="300" align="center" bgcolor="ffffff" border="0"> <?php if($int["interests"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> General </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($int["interests"])?> </span> </td> </tr> <?php } ?> <?php if($int["music"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Music </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($int["music"])?> </span> </td> </tr> <?php } ?> <?php if($int["movies"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Movies </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($int["movies"])?> </span> </td> </tr> <?php } ?> <?php if($int["television"]!=Null) { ?> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Television </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($int["television"])?> </span> </td> </tr> <?php } ?> <?php if($int["books"]!=Null) { ?> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Books </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($int["books"])?> </span> </td> </tr> <?php } ?> <?php if($int["heroes"]!=Null) { ?> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Heroes: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($int["heroes"])?> </span> </td> </tr> <?php } ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Groups: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?php $group_res=$profile->get_groups($HTTP_GET_VARS["member_id"]); while($group_set=mysql_fetch_array($group_res)) { ?> <a href='view_group.php?group_id=<?=$group_set["id"]?>'><?=$group_set["group_name"]?></a>, <?php } ?> </span> <br><br> </td> </tr> </table> </td> </tr> </table><br> <?php } else { ?> <table cellspacing="0" cellpadding="0" width="300"> <tr> <td valign="center" align="left" width="300" class='txt_label' height="10" wrap=""> <br> <b>Private Profile, You must be a friend to see details.</b> <br> <br> </td> </tr> </table> <br> <?php } ?> <!-- interests --> <!-- details --> <?php if($show==1) { ?> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="300" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="300" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <span class="whitetext12"> <?=$name?>'s Details </span> </td> </tr> <?php $profile_info=$profile->get_profile($HTTP_GET_VARS["member_id"]); ?> <tr valign="top"> <td> <table bordercolor="000000" cellspacing="3" cellpadding="3" width="300" align="center" bgcolor="ffffff" border="0"> <?php if($profile_back["marital_status"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Status: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?php if($profile_back["marital_status"]=="O") { ?> Swinger <?php } ?> <?php if($profile_back["marital_status"]=="R") { ?> In a relationship <?php } ?> <?php if($profile_back["marital_status"]=="S") { ?> Single <?php } ?> <?php if($profile_back["marital_status"]=="D") { ?> Divorced <?php } ?> <?php if($profile_back["marital_status"]=="M") { ?> Married <?php } ?> </span> </td> </tr> <?php } ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Here for: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?php $sel_p=explode(",",$basic_info["here_for"]); $sr_no=0; $sr_no1=1; foreach($sel_p as $aa) { if($sr_no1%3==0) { print "<br>"; } if($sr_no==0) { print $aa.", "; } else { print "$aa, "; } $sr_no=$sr_no+1; $sr_no1=$sr_no1+1; } ?> </span> </td> </tr> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Orientation: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?php if($profile_back["sexual"]=="1") { ?> Straight <?php } ?> <?php if($profile_back["sexual"]=="2") { ?> Gay <?php } ?> <?php if($profile_back["sexual"]=="3") { ?> Bi <?php } ?> <?php if($profile_back["sexual"]=="4") { ?> Not Sure <?php } ?> <?php if($profile_back["sexual"]=="0" || $profile_back["sexual"]==Null) { ?> No Answer <?php } ?> </span> </td> </tr> <?php if($profile_back["home_town"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Hometown: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($profile_back["home_town"])?> </span> </td> </tr> <?php } ?> <?php if($basic_info["body_type"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Body Type: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($basic_info["body_type"])?> <span> </td> </tr> <?php } ?> <?php if($basic_info["ethnicity"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Ethnicity: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($basic_info["ethnicity"])?> </span> </td> </tr> <?php } ?> <?php if($profile_back["smoker"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Smoke / Drink: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=$profile_back["smoker"]?>/<?=$profile_back["drinker"]?> </span> </td> </tr> <?php } ?> <?php if($profile_back["education"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Education: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($profile_back["education"])?> </span> </td> </tr> <?php } ?> <?php if($profile_back["religion"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Religion: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($religion[$profile_back["religion"]])?> </span> </td> </tr> <?php } ?> <?php if($basic_info["occupation"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Occupation: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=stripslashes($basic_info["occupation"])?> </span> </td> </tr> <?php } ?> <?php if($basic_info["height_feet"]!=Null&&$basic_info["height_inch"]!=Null) { ?> <tr> <td valign="top" align="left" width="100" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Height: </span> </td> <td id="ProfileGeneral" width="175" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?=$basic_info["height_feet"]?>"<?=$basic_info["height_inch"]?>' </span> </td> </tr> <?php } ?> </table> </td> </tr> </table><br> <?php } ?> <!-- details --> <?php if($show==1) { $num_school=$profile->get_num_schools($HTTP_GET_VARS["member_id"]); if($num_school!=0) { ?> <!-- school --> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="300" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="300" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <?=$name?>'s Schools </span> </td> </tr> <tr> <td> <table cellspacing="3" cellpadding="3" width="300" align="center" border="0"> <?php $school_res=$profile->get_schools($HTTP_GET_VARS["member_id"]); while($school_set=mysql_fetch_array($school_res)) { ?> <tr> <td valign="top" align="left" width="240" bgcolor="#EEEEEE"> <span class="lightbluetext8"> <?=stripslashes($school_set["school_name"])?><br> <?=stripslashes($school_set["school_city"])?>, <?=stripslashes($school_set["school_state"])?><br> Grad Year: <?=stripslashes($school_set["graduation_year"])?><br> Student Status: <?=stripslashes($school_set["status"])?><br> Degree: <?=stripslashes($school_set["degree"])?><br> Major: <?=stripslashes($school_set["major"])?><br> Clubs: <?=stripslashes($school_set["clubs_organizations"])?><br> </span> </td> <td id="ProfileGeneral" width="60" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> From <?=$school_set["date_from"]?> to <?=$school_set["date_to"]?> </span> </td> </tr> <?php } ?> </table> </td></tr> </table> <br> <?php } ?> <?php if($show==1) { $num_companies=$profile->get_num_companies($HTTP_GET_VARS["member_id"]); if($num_companies!=0) { ?> <!-- company --> <!-- school --> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="300" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="300" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <span class="whitetext12"><?=$name?>'s Companies</span> </td> </tr> <tr> <td> <table bordercolor="000000" cellspacing="3" cellpadding="3" width="300" align="center" border="0"> <?php $school_res=$profile->get_companies($HTTP_GET_VARS["member_id"]); while($school_set=mysql_fetch_array($school_res)) { ?> <tr> <td valign="top" align="left" width="240" bgcolor="#EEEEEE"> <span class="lightbluetext8"> <?=stripslashes($school_set["company_name"])?><br> <?=stripslashes($school_set["company_city"])?>, <?=stripslashes($school_set["company_state"])?><br> Title: <?=stripslashes($school_set["title"])?><br> Division: <?=stripslashes($school_set["division"])?><br> </td> <td valign="top" align="left" width="60" bgcolor="#EEEEEE"> <span class="lightbluetext8"> Date Employed <?=$school_set["date_employed"]?> </td> </tr> <?php } ?> </table> </td></tr> </table> <br> <?php } } } ?> </td> <td width="15" align="center" valign="top" bgcolor="White"><img height="1" src="images/clear.gif" width="20" border="0"></td> <td width="435" align="center" valign="top" bgcolor="White" class="text"> <br> <!-- school --> <!-- friend or not --> <table id="Table1" bordercolor="#000000" height="75" cellspacing="0" cellpadding="0" width="435" border="1"> <tr> <td valign="middle" align="center" width="435" style="word-wrap:break-word"><span class="blacktext12"> <span id="ctl00_Main_ctl00_UserNetwork1_ctrlMessage"> <?php if($_SESSION["member_id"]!=Null) { $sql="select * from member_friends where member_id = $_SESSION[member_id] and friend_id = $HTTP_GET_VARS[member_id] and approve = '1'"; $res=mysql_query($sql); $num_rows=mysql_num_rows($res); } else { $num_rows=0; } if($num_rows==1) { ?> <b><?=$name?> is your friend.</b><br> <?php } else { if($show==1) { ?> <b><?=$name?> is in your extended network.</b> <?php } else { ?> <b><?=$name?> has a private profile, you must be a friend to view.</b> <?php } } ?> </td></tr> </table><br> <!-- friend or not --> <!-- blogs --> <?php if($show==1) { ?> <table bordercolor="000000" cellspacing="3" cellpadding="0" width="435" align="center" bgcolor="ffffff" border="0"> <tr> <td width="435" style="word-wrap:break-word"> <span class="btext"> <?=$name?>'s Latest Blog Entry [<a href="subscribe_blog.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>">Subscribe to members Blog</a>]<br><br> </td> </tr> <?php $num_blogs=$profile->get_num_blogs($HTTP_GET_VARS["member_id"]); if($num_blogs==0) { ?> <td valign="top" align="left"> <span class="lightbluetext8"> No blogs entered by user yet. </span> </td> </tr> <?php } else { $blog_info=$profile->get_latest_blog($HTTP_GET_VARS["member_id"]); ?> <tr valign="top"> <td valign="top" align="left" width="435"> <span class="lightbluetext8"> <?=$blog_info["subject"]?> </span> (<a href="view_blog.php?id=<?=$blog_info["id"]?>">view more</a>) <br><br> </td> </tr> <tr> <td valign="top" align="left" bgcolor="ffffff" height="25"> [<a href="view_member_blog.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>">View All Blog Entries</a>]</td> </tr> <?php } ?> </table><br> <!-- blogs --> <!-- blurbs --> <table bordercolor="ffcc99" cellspacing="0" cellpadding="0" width="435" bgcolor="#C0C0C0" border="0"> <tr> <td class="text" valign="center" align="left" width="300" bgcolor="ffcc99" height="17" wrap="" style="word-wrap: break-word"> <span class="orangetext15"> <b><?=$name?>'s Blurbs</b></span> </td> </tr> <tr><td> <table bordercolor="000000" cellspacing="3" cellpadding="3" width="435" align="center" bgcolor="ffffff" border="0"> <tr> <td valign="top" align="left"> <span class="lightbluetext8"> <b>About me:</b> <br><br> <?=stripslashes($int["about_me"])?> </span> </td> </tr> <tr> <td valign="top" align="left"> <span class="lightbluetext8"> <b>Who I'd like to meet:</b><br><br> <?=stripslashes($int["meet"])?> </span> </td> </tr> </table> </td></tr> </table><br> <!-- blurbs --> <!-- friend_space --> <table bordercolor="000000" cellspacing="0" cellpadding="0" width="435" border="0"> <tr><td class="text" align="left" width="435" bgcolor="ffffff" height="20"> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="435" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="435" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <?=$name?>'s Friend</td></tr> </table> <table cellspacing="0" cellpadding="5" width="435" align="center" border="0"> <tr> <td valign="top" align="left" width="435"> <span class="lightbluetext8"> <?php $num_friends=$profile->get_num_friends($HTTP_GET_VARS["member_id"]); ?> <?=$name?> has <span class="redbtext"><?=$num_friends?></span> friends. </span> </td> </tr> <tr> <td> <table width="435" border="0" cellspacing="0" cellpadding="5" align="center"> <tr> <?php $friend_res=$profile->get_profile_friends($HTTP_GET_VARS["member_id"]); $sr_no=0; while($friend_set=mysql_fetch_array($friend_res)) { if($sr_no%4==0) { print "</tr><tr>"; } $fname=$people->get_name($friend_set["friend_id"]); $num_images=$people->get_num_images($friend_set["friend_id"]); if($num_images==0) { $gender=$people->check_gender($friend_set["friend_id"]); if($gender=="Male") { $fimage="<img alt='' src='images/male.gif' width=90 border=0>"; } else { $fimage="<img alt='' src='images/female.gif' width=90 border=0>"; } } else { $fimage_url=$people->get_image($friend_set["friend_id"]); $pic_name=str_replace('user_images/', '', $fimage_url); $fimage = "<img src='image_gd/image.php?$pic_name' border='0'>"; } ?> <td bgcolor="FFFFFF" align="center" valign="top" width="1"> <!-- friend place --> <table border="0" cellspacing="0" align="center"> <tr> <td bgcolor="FFFFFF" align="center" valign="top" width="107" style="word-wrap:break-word"> <a href="view_profile.php?member_id=<?=$friend_set["friend_id"]?>"><?=$fname?></a> </td> </tr> <tr> <td bgcolor="FFFFFF" align="center" valign="top" width="25%"> <a href="view_profile.php?member_id=<?=$friend_set["friend_id"]?>"> <?=$fimage?> </a> </td> </tr> </table> <?php $sr_no=$sr_no+1; } ?> <!-- friend place --> </td> </tr> </table> </td> </tr> <tr valign="center" align="right"> <td bgcolor="FFFFFF" colspan="4"> <a href="view_friends.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>&page=1" class="redlink">View All of <?=$name?>'s Friends</a> <br><br> </td> </tr> </table> </td></tr> </table><br> <!-- friend_space --> <!-- music_space --> <table bordercolor="000000" cellspacing="0" cellpadding="0" width="435" border="0"> <tr><td class="text" align="left" width="435" bgcolor="ffffff" height="20"> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="435" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="435" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <?=$name?>'s Favorite Bands</td></tr> </table> <table cellspacing="0" cellpadding="5" width="435" align="center" border="0"> <tr> <td id="ProfileGeneral" width="435" bgcolor="#FFFFFF" style="WORD-WRAP: break-word"> <span class="lightbluetext8"> <?php $num_friends=$profile->get_num_bands($HTTP_GET_VARS["member_id"]); ?> <?=$name?> has <span class="redbtext"><?=$num_friends?></span> favorite bands. </span> </td> </tr> <tr> <td> <table width="435" border="0" cellspacing="0" cellpadding="5" align="center"> <tr> <?php $friend_res=$profile->get_profile_bands($HTTP_GET_VARS["member_id"]); $sr_no=0; while($friend_set=mysql_fetch_array($friend_res)) { if($sr_no%4==0) { print "</tr><tr>"; } $fname=$people->get_name($friend_set["friend_id"]); $num_images=$people->get_num_images($friend_set["friend_id"]); if($num_images==0) { $fimage="<img alt='' src='images/no_pic.gif' width=90 border=0>"; } else { $fimage_url=$people->get_image($friend_set["friend_id"]); $pic_name=str_replace('user_images/', '', $fimage_url); $fimage = "<img src='image_gd/image.php?$pic_name' border='0'>"; } ?> <td bgcolor="FFFFFF" align="center" valign="top" width="1"> <!-- friend place --> <table border="0" cellspacing="0" align="center"> <tr> <td bgcolor="FFFFFF" align="center" valign="top" width="107" style="word-wrap:break-word"> <a href="view_profile.php?member_id=<?=$friend_set["friend_id"]?>"><?=$fname?></a> </td> </tr> <tr> <td bgcolor="FFFFFF" align="center" valign="top" width="25%"> <a href="view_profile.php?member_id=<?=$friend_set["friend_id"]?>"> <?=$fimage?> </a> <?php $sql="select status from online_now where member_id = $friend_set[friend_id]"; $online_res=mysql_query($sql); $online_set=mysql_fetch_array($online_res); if($online_set["status"]=="1") { print "<img src='images/onlinenow.gif'>"; } ?> </td> </tr> </table> <?php $sr_no=$sr_no+1; } ?> <!-- music place --> </td> </tr> </table> </td> </tr> <tr valign="center" align="right"> <td bgcolor="FFFFFF" colspan="4"> <a href="view_bands.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>&page=1" class="redlink">View All of <?=$name?>'s Favorite Bands</a> <br><br> </td> </tr> </table> </td></tr> </table><br> <!-- friend_space --> <!-- comments_space --> <table bordercolor="000000" cellspacing="0" cellpadding="0" width="435" border="0"> <tr><td class="text" align="left" width="435" bgcolor="ffffff" height="20"> <table id="Table1" bordercolor="#C0C0C0" cellspacing="0" cellpadding="0" width="435" bgcolor="#EEEEEE" border="1"> <tr> <td class="text" valign="middle" align="left" width="435" bgcolor="#C0C0C0" wrap="" style="WORD-WRAP:break-word"> <span class="whitetext12"> <?=$name?>'s Friends Comments</span></td></tr> </table> <table bordercolor="000000" cellspacing="3" cellpadding="0" width="435" align="center" bgcolor="ffffff" border="0"> <tr> <td class='txt_label'> <?php $tot_comments=$profile->get_total_comments($HTTP_GET_VARS["member_id"]); if($tot_comments<=10) { ?> <b>Displaying <span class="redtext"><?=$tot_comments?></span> of <span class="redtext"><?=$tot_comments?></span> comments <?php if($_SESSION["member_id"]==$HTTP_GET_VARS["member_id"]) { ?> (<a href="edit_testimonials.php">View/Edit All Comments</a>) <?php } else { ?> (<a href="view_testimonials.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>">View All Comments</a>) <?php } ?> <?php } else { ?> <b>Displaying <span class="redtext">10</span> of <span class="redtext"><?=$tot_comments?></span> comments (<a href="view_testimonials.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>">View/Edit All Comments</a>) <?php } ?> </td> </tr> <?php $test_res=$profile->get_profile_comments($HTTP_GET_VARS["member_id"]); while($test_set=mysql_fetch_array($test_res)) { $fname=$people->get_name($test_set["test_user"]); $num_images=$people->get_num_images($test_set["test_user"]); if($num_images==0) { $gender=$people->check_gender($test_set["test_user"]); if($gender=="Male") { $fimage="<img alt='' src='images/male.gif' width=90 border=0>"; } else { $fimage="<img alt='' src='images/female.gif' width=90 border=0>"; } } else { $fimage_url=$people->get_image($test_set["test_user"]); $pic_name=str_replace('user_images/', '', $fimage_url); $fimage = "<img src='image_gd/image.php?$pic_name' border='0'>"; } ?> <tr> <td bordercolor="ff9933" bgcolor="ffcccc" class='txt_label'> <table width="100%" border="1" cellspacing="0" cellpadding="3" bordercolor="FFffff"> <tr> <td align="center" valign="top" class='txt_label' width=150 bgcolor="FF9933" style="word-wrap:break-word"> <a href="view_profile.php?member_id=<?=$test_set["test_user"]?>"><?=$fname?></a> <br><br> <a href="view_profile.php?member_id=<?=$test_set["test_user"]?>"> <?=$fimage?> </a> <br><br> <?php $sql="select status from online_now where member_id = $test_set[test_user]"; $online_res=mysql_query($sql); $online_set=mysql_fetch_array($online_res); if($online_set["status"]=="1") { print "<img src='images/onlinenow.gif'>"; } ?> </td> <td bgcolor="F9D6B4" class='lightbluetext8' align="left" valign="top" width="260" style="word-wrap:break-word"> <?=$test_set["date_posted"]?> <br><br><?=$test_set["test_text"]?> </td> </tr> </table> </td></tr> <?php } ?> <tr> <td colspan='2' bgcolor='#FFFFFF' align="right"> <a href="add_testimonial.php?member_id=<?=$HTTP_GET_VARS["member_id"]?>">Add Comment</a></td> </tr> <?php } ?> </table> </table> </table> </table> Quote Link to comment Share on other sites More sharing options...
savj14 Posted March 26, 2007 Author Share Posted March 26, 2007 I can see it fine in the Code View........I am trying to view this in the Design View so I can move data around and add/delete items if I want. I should have been more specific....sorry. I have worked with a few different PHP Files which had PHP and HTML and I could always switch back and forth between the Code and Design Views. I know this is possible I just think I am missing something here. Quote Link to comment Share on other sites More sharing options...
Trium918 Posted March 26, 2007 Share Posted March 26, 2007 Where did you get this code? Quote Link to comment Share on other sites More sharing options...
DeathStar Posted March 26, 2007 Share Posted March 26, 2007 Hi there savj14. Dreamweaver does not display php code period. Only html and so on.. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 26, 2007 Share Posted March 26, 2007 Thats funny i do 90% of my php coding in dreamweaver 8 Quote Link to comment Share on other sites More sharing options...
Trium918 Posted March 26, 2007 Share Posted March 26, 2007 I am using Dreamweaver also to edit and create php. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 26, 2007 Share Posted March 26, 2007 what wondering, but what version Trium918 ? Quote Link to comment Share on other sites More sharing options...
DeathStar Posted March 26, 2007 Share Posted March 26, 2007 Yes you can make .php extentions. But as soon as you write actual php code in dreamweaver you will not be able to view. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 26, 2007 Share Posted March 26, 2007 erm.. wrong.. writing some now Viewing live data, then no, but writing code and displaying code.. you can (i can post a screenshot) Quote Link to comment Share on other sites More sharing options...
savj14 Posted March 26, 2007 Author Share Posted March 26, 2007 You can to display PHP Code in Dreamweaver. Along with displaying HTML. I have done some work on a different script like Myspace and have been able to display both HTML and the PHP code. I could move the PHP Code I wanted, created tables, move data, etc. I saved it uploaded it and uploaded the php file. All the changes were there. I am just confused as to why Dreamweaver only displays one table and not the entire PHP File. Quote Link to comment Share on other sites More sharing options...
MadTechie Posted March 27, 2007 Share Posted March 27, 2007 did you include the style sheet ? also if you just wanna make changes then remove (from the top) <table width="830" border="0" cellspacing="0" cellpadding="4" align="center"> <tr> then add it back at the end Quote Link to comment Share on other sites More sharing options...
savj14 Posted March 27, 2007 Author Share Posted March 27, 2007 did you include the style sheet ? also if you just wanna make changes then remove (from the top) <table width="830" border="0" cellspacing="0" cellpadding="4" align="center"> <tr> then add it back at the end I did include the CSS File its looking for but didn't make much sense. The CSS has differnet names than that of the PHP File. SO I have attached a ZIP file containing all of the CSS Files from the Script. Thanks for the help with removing the Table code. It showed me the right hand side of the Profile. It is like looking at a MYspace Profile that has the entire left hand side of the profile missing. Meaning the user's image, last login, their contact box, and details. The right hand side is perfect and I can see everything. Its just I cannot see or edit the left hand side. I tried to remove some other HTML Code but nothing would show me the entire profile, with the right and left hand side. [attachment deleted by admin] Quote Link to comment Share on other sites More sharing options...
savj14 Posted March 27, 2007 Author Share Posted March 27, 2007 Bump Quote Link to comment Share on other sites More sharing options...
suttercain Posted March 27, 2007 Share Posted March 27, 2007 Without a doubt you can view php "live" within Dreamweaver. I use Dreamweaver 8 everyday and view code without a browser or uploading the file(s). You have to set up WAMP, and then set up Dreamweaver to locally view files withing your wamp/www folder. This is what taught me how to do it: http://safari.oreilly.com/1596711639 Shannon Quote Link to comment Share on other sites More sharing options...
savj14 Posted March 27, 2007 Author Share Posted March 27, 2007 I have no problem with loading the PHP File in Dreamweaver. I dont even really want to look at it Live until I upload it to my webserver. I just want to be able to view all of the code in the Design View, make the changes, then upload the file. I can't seem to be able to view all of the code together and make the necessary changes. I fell as if I need to remove something from the code so I can view this as it would look on my live webserver. Quote Link to comment Share on other sites More sharing options...
ICKelly Posted April 3, 2007 Share Posted April 3, 2007 I know that you can edit via dreamweaver, and other programs, but I think for you to do as you are asking you need to install a web based server software on your PC and then install the PHP software then upload the site to a local pc address and then view (or something like that) the only way I can view php in my html is to upload it to the web server and then it displays fine. I can see all code half code half dreamweaver or all DW. If you don't want people to see it then place a .html in front of a temp index.html page and use the index.php one to review. Then when your ready remove the .html one or rename it and then the server should read the php one, if the html is removed. Quote Link to comment Share on other sites More sharing options...
DeathStar Posted April 4, 2007 Share Posted April 4, 2007 yes yes, you can view this code in layout view: <?php include "blah.php"; ?> <this is thext html <?php include "end.php"; ?> I atleast cannot view code that is in echo ""; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.