Location: PHPKode > projects > Wiki-Map > htdocs/faq.php
<?
/******************************************************************************
#   Copyright notice                                                                
#   
#   This file is part of Wiki-Map project [http://wiki-map.sourceforge.net/] 
#   Wiki-Map is free software; you can redistribute it and/or 
#   modify it under the terms of the GNU General Public License as published by
#   the Free Software Foundation; either version 2 of the License, or (at your 
#   option) any later version.                                    
#
#   The GNU General Public License can be found at                        
#   http://www.gnu.org/copyleft/gpl.html.                                 
#   A copy is found in the textfile GPL and important notices to the      
#   license from the team is found in the textfile LICENSE distributed    
#   with these scripts.                                                    
#
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
#   This copyright notice MUST APPEAR in all copies and derivatives of the script!
#*********************************************************************************/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
   <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
   <META NAME="Keywords" CONTENT="Map, wikimap, wikipedia, FAQ, Google Map">
	<META NAME="Description" CONTENT="FAQ of WikiMap, a collaborative Map building tool based on Google Map to share your location and other geo-information. A knowledge repository and collection of planning tools. Allows sharing and imbedding to other website.">
   <META NAME="Author" CONTENT="hide@address.com">   
    <title>WikiMap: FAQ</title>
   <link rel="stylesheet" type="text/css" href="wikimap.css">    
  </head>
  <body>
    <div id="docs">
		<?
			include "openDB.php";
			$sql = "SELECT q,id FROM faq ORDER BY cat, id";
			$result = mysql_query($sql);
			if (!$result){
				echo '** Creation falied ** '.mysql_error().'<BR>\n';
			} else {
				echo "<H3>Frequently asked questions</H3>\n<OL>\n";
				while ($r=mysql_fetch_row($result)){
					echo "<LI><A href=#$r[1]>$r[0] ?</A>\n";
				}
				echo "</OL>\n<HR>\n";
				
			}
			$sql = "SELECT q,id,a FROM faq ORDER BY cat, id";
			$result = mysql_query($sql);
			if (!$result){
				echo '** Creation falied ** '.mysql_error().'<BR>\n';
			} else {
				while ($r=mysql_fetch_row($result)){
					echo "<P><A name=$r[1]><b>$r[0]</b> ?</A><BR>\n";
					echo "$r[2]</P>";
				}
			}
			
		?>
	</div>
<? include "wikifoot.php"; ?>
</body>
</html>
Return current item: Wiki-Map