Announcement

Collapse
No announcement yet.

some help with search form in blank aplication

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    There you go boy.......... FIXED

    PHP Code:
    $query_cities "SELECT DISTINCT ciudad FROM propiedades";

    sc_lookup(cities,$query_cities);

    foreach({
    cities} as $City)
    {
       
    $query_addresses "SELECT DISTINCT direccion FROM propiedades WHERE ciudad = '" $City[0] . "'";
       
      
    sc_lookupaddresses$query_addresses);
      
       
    $rowspan count({addresses}); // count the number of addresses by city
      
       
    echo '<table>
                       <tr>
                        <td rowspan ="' 
    $rowspan .'">' 
                                       
    $City[0] . 
                           
    '</td>
                        <td>' 

                                       {
    addresses[0][0]} .  
                           
    '</td>
                    </tr>'
    ;
       for ( 
    $x=$x $rowspan $x++)
        {
           echo 
    '<tr>
                    <td>' 

                           {
    addresses[$x][0]} . '
                    </td>
                </tr>'
    ;

        }
       echo 
    '</table>';


    Comment


    • #17
      Very good!! now it's work , thank you very much

      Comment

      Working...
      X