Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Using innerhtml
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 9 Topic 35486 of 36382
Post > Topic >>

Using innerhtml

by Mtek <mtek@[EMAIL PROTECTED] > May 5, 2008 at 12:11 PM

Hi,

This is the content of my DIV now:

              echo "      <div class='innerb'>";
              echo "        <table class='tabletwo'>";
              $select =  mysql_query("SELECT row_id, name, address,
city, state, guests, seating, comments
                                      FROM reservations
                                      WHERE res_date =
STR_TO_DATE('$pdate','%m/%d/%Y')
                                      ORDER BY row_id");
              $x=0;
              while ($row = mysql_fetch_array($select)) {
                $x++;
                echo "        <tr>";
                echo "          <td class='td1' scope='row'>$x</td>";
                echo "          <td class='td2'>".$row['name']."</
td>";
                echo "          <td class='td3'>$address</td>";
                echo "          <td class='td4'>$city</td>";
                echo "          <td class='td5'>$state</td>";
                echo "          <td class='td6'>".$row['guests']."
Guests<br>".$row['seating']." in Section A <br>".$row['comments']."</
td>";
                echo "        </tr>";
              }
              echo "    </table>";
              echo "</div>";

We want to refresh the DIV (innerb) without refre****ng the page, and
if we do not have to use ajax either.

So, the user selected the date ($pdate) from the combobox, it is used
to query the database, and the DIV is refreshed.  I know this can be
done, but it is just a matter of finding the code or something
similar......

Thanks,

John
 




 9 Posts in Topic:
Using innerhtml
Mtek <mtek@[EMAIL PROT  2008-05-05 12:11:39 
Re: Using innerhtml
SAM <stephanemoriaux.N  2008-05-06 00:46:58 
Re: Using innerhtml
Mtek <mtek@[EMAIL PROT  2008-05-05 21:37:30 
Re: Using innerhtml
Tom Cole <tcole6@[EMAI  2008-05-06 04:56:10 
Re: Using innerhtml
Mtek <mtek@[EMAIL PROT  2008-05-06 05:42:31 
Re: Using innerhtml
sheldonlg <sheldonlg&g  2008-05-06 10:52:04 
Re: Using innerhtml
Tom Cole <tcole6@[EMAI  2008-05-06 07:44:44 
Re: Using innerhtml
Mtek <mtek@[EMAIL PROT  2008-05-06 08:19:03 
Re: Using innerhtml
Captain Paralytic <pau  2008-05-06 08:23:11 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:19:14 CDT 2008.