Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
php x 4
Member Avatar for wonderlhily

[code=php] <?php $conn = mysql_connect("localhost", "root", "dotherz"); //connecting to database if($conn) //testing if the connection was stablished { mysql_select_db("orders", $conn); //selecting database from your localhost $qry = "SELECT * FROM customer WHERE customerId = 1"; //the query to get the first user $result = mysql_query($qry); //executing the qry and passing …

Member Avatar for diafol
0
160
Member Avatar for wonderlhily

[code=php] <?php include("C:/xampp/htdocs/mySalon/connect_database.php");?> <?php if(isset ($_POST ['username']) && $_POST ['password']){ $username = $_POST['username']; $password=$_POST['password']; $query=mysql_query("SELECT * FROM admin WHERE username='$username'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while ($row=mysql_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } //check to see if they match! if ($username==$dbusername&& md5 ($password)==$dbpassword) { header ('Location: http://localhost/mySalon/admin/admin_page.php'); $_SESSION['username'] = $username; } else echo …

Member Avatar for cwarn23
0
132
Member Avatar for wonderlhily

[code=php] <?php session_start(); if (isset($_POST['submit'])) { // clean and check form inputs including the secure image code $name = trim(strip_tags($_POST['name'])); $email = trim(strip_tags($_POST['email'])); $comments = trim(strip_tags($_POST['comments'])); $secure = strtoupper(trim(strip_tags($_POST['secure']))); $match = $_SESSION['captcha']; // the code on the image // input error checking if ($name=="") { $err.= "Please provide your name<br/>"; …

Member Avatar for ko ko
0
91
Member Avatar for babydol

Hi i m creating a small web application that allows a user to select multiple options from a list box.The problem is i cannot write that information to the database. I have two forms: one to get information from the user and another to write that info to the database.The …

Member Avatar for wonderlhily
0
2K