<?xml version="1.0" encoding="UTF-8"?>    <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
      <channel>
        <title>help with a new details page</title>
        <link>https://interactivetools.com/forum/forum-posts.php?help-with-a-new-details-page-71986</link>
        <description></description>
        <pubDate>Tue, 14 Apr 2026 09:06:14 -0700</pubDate>
        <language>en-us</language>
        <atom:link href="https://interactivetools.com/forum/forum-posts.php?rss=1&amp;help-with-a-new-details-page-71986" rel="self" type="application/rss+xml" />

                <item>
          <title>Re: [rentittoday] help with a new details page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2208127#post2208127</link>
          <description><![CDATA[Hi,<br /><br />It looks like you're pretty close on both of these issues.<br /><br />1) You'll need to change you're query to look like this:<br /><br /><br /><br /><code>list(<span style="color:red">$commercial_rental_propertyRecordsByUser, </span>) = getRecords(array( <br />    'tableName'   =&gt; 'commercial_rental_property', <br />  <span style="color:red">  'where'       =&gt; &quot;createdByUserNum ='&quot;.intval($commercial_rental_propertyRecord['createdByUserNum']).&quot;' AND num!='&quot;.intval($commercial_rental_propertyRecord['num']).&quot;'&quot;, </span><br />  ));</code><br /><br />The second half of the &quot;where&quot; statement is so you don't select the same record twice.  It is important that this query appear after your first query.  It is also important to always use new variable names (ie $commercial_rental_propertyRecordsByUser) so you don't overwrite other variables by mistake.<br /><br />2)  It's a similar situation here.  You'll need to change your variable name and your query like this:<br /><br /><code>list(<span style="color:red">$commercial_rental_propertyRecordsByCity</span>,) = getRecords(array( <br />    'tableName'   =&gt; 'commercial_rental_property', <br />    <span style="color:red">'where'       =&gt; &quot;cities_serviced LIKE '%&quot;.mysql_escape($commercial_rental_propertyRecord['city']).&quot;%' AND num!='&quot;.intval($commercial_rental_propertyRecord['num']).&quot;'&quot;, </span><br />  ));</code><br /><br />Using &quot;%&quot; before and after the city name means will will return records where the city name appears anywhere in the cities_serviced text.  Again we added code so that we won't select the same record twice.<br /><br />Give this a try and let me know if you run into any issues.<br /><br />Hope this helps.<br />]]></description>
          <pubDate>Thu, 18 Nov 2010 13:50:13 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2208127#post2208127</guid>
        </item>
                <item>
          <title>help with a new details page</title>
          <link>https://interactivetools.com/forum/forum-posts.php?postNum=2208121#post2208121</link>
          <description><![CDATA[Hello guys,<br /><br />We are redesigning our details pages and are having some trouble with the coding of some new features.<br /><br />1. We want to add a section on a details page of Other Rental Listings that a user owns. For example, you a viewing a property that Bob has listed on our site (property #1). We want to display in a box, property #2, #3 and #4 (pic and name of property)that Bob owns. <br /><br />This code pulls 1 of Bob's properties:<br /><code>&lt;?php require_once &quot;../cmsAdmin/lib/viewer_functions.php&quot;;<br /><br />  list($commercial_rental_propertyRecords, $commercial_rental_propertyMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'commercial_rental_property',<br />    'where'       =&gt; whereRecordNumberInUrl(1),<br />    'limit'       =&gt; '1',<br />  ));<br />  $commercial_rental_propertyRecord = @$commercial_rental_propertyRecords[0]; // get first record</code><br /><br />Can we just add another chunk of code on the same page to pull other listings or will we need to make this an include file?<br /><code>  list($commercial_rental_propertyRecords, $commercial_rental_propertyMetaData) = getRecords(array(<br />    'tableName'   =&gt; 'commercial_rental_property',<br />    'where'       =&gt; createdByUserNum = (Bob's user num),<br />  ));</code><br /><br />Finally, the last issue we were having with this was begin able to write the correct code for the WHERE statement. I assume we will have to define a variable <code> $user=$record['createdByUserNum'];</code><br />and use this where statement in the code above<br /><br /><code>'where'       =&gt; createdByUserNum = $user,</code><br />But I was getting undefined index errors when I used &quot;record&quot; and/or &quot;commercial_rental_propertyRecord&quot; when trying to define the variable. I can get the createdByUserNum to display on the page just fine, but trying to pull it into a variable was not working.<br /><br />2. Similar to the above feature, but a little different.<br /> We want to display related rental listings from all users. So for Bob's Commerical Rental Property we want to display, in a separate box, electronic rentals, office furniture, etc that have a cities_serviced_keyword that matches the city that Bob's property is in. I again believe that  this will be a where statement for each of the  categories that we choose to display for this section. Such as<br /><code>where  =&gt; ' cities_serviced LIKE city',</code><br /> (Our cities_services field is a text box that lists any cities a company services. Each city is separated by a comma. ) I not too familiar with the LIKE function and not sure if that is the correct/best way to do it.<br /><br />Your help is greatly appreciated as always.<br />Thanks!<br />]]></description>
          <pubDate>Thu, 18 Nov 2010 12:07:19 -0800</pubDate>
          <guid isPermaLink="true">forum-posts.php?postNum=2208121#post2208121</guid>
        </item>
              </channel>
    </rss>
  