Undefined
By: Guest | Date: Dec 16 2011 00:20 | Format: PHP | Expires: never | Size: 1.07 KB | Hits: 1428
- <?php
- include("config.php");
- $sql = "SELECT * FROM faq ORDER BY faqid";
- $faqs[] = $row;
- }
- $id = $row['faqid'];
- ?>
- <html>
- <script type="text/javascript">
- function Show(id) {
- document.getElementById("mydiv"+id).style.display="inline";
- }
- function Hide(id) {
- document.getElementById("mydiv"+id).style.display="none";
- }
- </script>
- <body>
- <?php
- foreach ($faqs as $row) {
- ?>
- <a href="#" onclick="Show(<?php echo $row['faqid']; ?>);" ><?php echo $row['ftitle'];?></a><br/>
- <div id="mydiv<?php echo '.$id.';?>" style="display:none;" onmouseover="Show(<?php echo $row['faqid']; ?>);">
- <div class="note"><?php echo $row['faqtext'];?> </div><a href="#" onclick="Hide(<?php echo $row['faqid']; ?>);" onmouseout="Hide(<?php echo $row['faqid']; ?>);" > Hide</a>
- <br />
- </div>
- <?php
- }
- }
- ?>
- </body>
- </html>
Latest pastes
1 days ago
1 days ago
2 days ago
4 days ago
5 days ago