Jump to content

zachishi

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

zachishi's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. no i have entered javascript in there and it crashes the page. I was wondering if there where any suggestions for ones that play well with that php code. Cause i cannot find any. Thanks
  2. I am trying to get a popup to work with this script. I have tryed numerous javascripts and nothing seems to work. Any suggestions would be great i am really not an expert with php. We have a guy working on our site that built all this and now he is gone and I am left picking up the pieces. Thanks [code] <?php $count=0; for($i=1;$i<=$rows;$i++) { print("<tr>"); for($j=1;$j<=3;$j++) { if($count<$image_count) { if (isset($allrows[$count]['thumb']) && strlen($allrows[$count]['thumb']) > 3) { $prop_image1 = $allrows[$count]['thumb']; $prop_image = '<img src="' . $prop_image1 . '" border="0"  width="125" height="94">'; } else { $prop_image = '<img src="' . APP_URL . 'images/no-pic.gif" border="0"  width="125" height="94">'; } $pname = $allrows[$count]['pname']; $sleep = $allrows[$count]['sleep']; $id = $allrows[$count]['id']; $output='<a href="view-property.php?id='.$id.'" target="new">'.$prop_image.'</a><br> <a href="view-property.php?id='.$id.'" target="new"> <font size="2"><b>Eagles Ridge<BR>'.$pname.'</b></font></a> <font size="2"><b><br>'.$sleep.'</b></font>'; print("<td align='center'>$output</td>"); } else { print("<td>&nbsp;</td>"); } $count++; } print("</tr>"); } ?> [/code]
  3. what other code do you need to see. [a href=\"http://www.eaglesridge.com/property.php\" target=\"_blank\"]http://www.eaglesridge.com/property.php[/a] [a href=\"http://www.eaglesridge.com/with_pool.php\" target=\"_blank\"]http://www.eaglesridge.com/with_pool.php[/a] Do i need to put this in another page or just below this query. I tryed this but wouldn't work. { $qry1='AND with_pool=1 '; $qry2='AND pet=1 '; }else{ $qry1=''; $qry2=''; } It is being called in [a href=\"http://www.eaglesridge.com/pet.php\" target=\"_blank\"]http://www.eaglesridge.com/pet.php[/a] . Which is very similar to [a href=\"http://www.eaglesridge.com/with_pool.php\" target=\"_blank\"]http://www.eaglesridge.com/with_pool.php[/a] I am just trying to make a pet friendly page and the pet tag is already setup in the MYSQl. I just can't seem to get it to call/display in the pHP. Thanks
  4. Please view this code and tell me if there is a way to duplicate the center section that is in red. <?php include_once("includes/startup.php"); $cat=$_GET['id']; $query="SELECT * FROM ".TABLE_PREFIX."categories WHERE cat_id='$cat'"; if(isset($_GET['pool']) && $_GET['pool']!='') [!--coloro:#FF0000--][span style=\"color:#FF0000\"][!--/coloro--]{ $qry1='AND with_pool=1 '; }else{ $qry1=''; }[!--colorc--][/span][!--/colorc--] $rs=$conn->Execute($query); $arr=$rs->fields; $query1="SELECT id,pname,sleep,type,thumb FROM ".TABLE_PREFIX."properties WHERE type='$cat' $qry1 order by q_id desc"; //print $query1; $rs1=$conn->Execute($query1); $test=$rs1; $image_count=$test->RecordCount(); ?> This section calls some information that is displayed in another page. I need to duplicate this on this page and let them co-exist. Is this possible. I have tryed every way i know how and cant get it to work. I am very new at this and am working off a site someone else created. Please help
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.