Undefined
By: Guest | Date: Dec 16 2011 00:22 | Format: PHP | Expires: never | Size: 1.03 KB | Hits: 1450
- <?php
- include("config.php");
- $sql = "SELECT * FROM faq ORDER BY faqid";
- $faqs[] = $row;
- }
- ?>
- <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) {
- $id = $row['faqid'];
- ?>
- <a href="#" onclick="Show(<?php echo $id ?>);" ><?php echo $row['ftitle'];?></a><br/>
- <div id="mydiv<?php echo $id ;?>" style="display:none;" onmouseover="Show(<?php echo $id ?>);">
- <div class="note"><?php echo $row['faqtext'];?> </div><a href="#" onclick="Hide(<?php echo $id ?>);" onmouseout="Hide(<?php echo $id ?>);" > Hide</a>
- <br />
- </div>
- <?php
- }
- }
- ?>
- </body>
- </html>
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago