From RuneGlory
Line 179: | Line 179: | ||
<p>Select your timezone to see which hour an event will appear</p> | <p>Select your timezone to see which hour an event will appear</p> | ||
− | + | <form action="option.php" method="GET"> | |
<input list="time zones" name="time zone"> | <input list="time zones" name="time zone"> | ||
<datalist id="time zones"> | <datalist id="time zones"> | ||
Line 195: | Line 195: | ||
</body> | </body> | ||
</html> | </html> | ||
+ | |||
+ | |||
+ | <?php | ||
+ | if(isset($_GET['names'])) | ||
+ | { | ||
+ | $name=$_GET['names']; | ||
+ | $c=mysql_connect("localhost","root",""); | ||
+ | mysql_select_db("test"); | ||
+ | $ins=mysql_query("INSERT INTO `option` | ||
+ | (name) | ||
+ | VALUES ('$name')",$c) or die(mysql_error()); | ||
+ | if($ins) | ||
+ | { | ||
+ | echo "<br>".$name."inserted"; | ||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | ?> |
Revision as of 02:19, 20 May 2018
Event Promotions
Select your timezone to see which hour an event will appear
<?php if(isset($_GET['names'])) { $name=$_GET['names']; $c=mysql_connect("localhost","root",""); mysql_select_db("test"); $ins=mysql_query("INSERT INTO `option` (name) VALUES ('$name')",$c) or die(mysql_error()); if($ins) { echo "
".$name."inserted"; }
}
?>