Jump to content

www.mihalism.com

Members
  • Posts

    68
  • Joined

  • Last visited

Everything posted by www.mihalism.com

  1. Yeah // would be PHP like//some comment yeah thats PHP
  2. Javascript part function toggle(id) { var obj = ""; if(document.getElementById) obj = document.getElementById(id); else if(document.all) obj = document.all[id]; else if(document.layers) obj = document.layers[id]; else return 1; if (!obj) { return 1; } else if (obj.style) { obj.style.display = ( obj.style.display != "none" ) ? "none" : ""; } else { obj.visibility = "show"; }} html part link to display table <a href="java script:void('0');" onClick="java script:toggle('table1');">Show table</a> the table <div id="table1" style="display:none"><!-- table code here --></div>
  3. Hey eguru you have a error in your code look at this line echo "</table">; but it should say echo "</table>"; also the sql query says "INSECT INTO" but shouldent it be "INSERT INTO"
  4. Name:mikeAge:PrivateLocation:Virginia,United StatesStatus: new memberIntrests: Computer, friends, etc.Started with simple HTML then moved to XHTML and now know CSS, HTML, XHTML, PHP, and SQL no one ever told me how to write codes so i learned by looking at other peoples work and testing my own codes
  5. Try this <?phpinclude 'config.php';$pili_id = $_POST['pili_id'];$branch = $_POST['branch'];$zone = $_POST['zone'];$location = $_POST['location'];$type = $_POST['type'];$subtype = $_POST['subtype'];$alamat = $_POST['alamat'];$latest_updated = $_POST['latest_updated'];$con = mysql_connect("localhost","user","pass");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("my_db", $con); $query = "INSERT INTO pili VALUE ('$pili_id', '$branch', '$zone', '$location', '$type', '$subtype', '$alamat', '$latest_updated')";mysql_query($query) or die('Error, insert query failed');echo " '$pili_id' <b> '$branch' </b> ,'$zone', '$location', '$type', '$subtype', '$alamat','$latest_updated'";?>
  6. Its a simple nice design but with 4 advertisements i would not like to stay for long on it 7/10
  7. A simple HTML search form would be like <form method="post" action="search.php"><input type="text" name="term" id="term" value="Enter search keyword"> <br /><input type="submit" value="Search"></form> for the actual search processing you shoud use PHP
×
×
  • Create New...