Jump to content

weeman09

New Members
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

weeman09's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. thank you for your response! yes i have added that and it doesnt work. all my buttons get pushed to the left and piled on top of each other ?
  2. Hello I have a problem that I havent been able to fix. My menu Moves when the browser is resized. I want the menu to stay fixed no matter when size the browser window is. If someone could please help me in solving this issue that would be much appreciated! thank you HTML code -------------------------------------------------------------- <body> <div id="wrap"> <ul class="menu lblue slide" id="menu"> <li><a href="#"><img src="images/nav.png" width="25" height="21" align="texttop">Login<span class="bubble-alt"> Your Account</span></a></li> <li><a href="#"><img src="images/nav.png" width="25" height="21" align="texttop">Register<span class="bubble-alt"> </span></a></li> <li><a href="#"><img src="images/nav.png" width="25" height="21" align="texttop">Browse <span class="bubble-alt"> </span></a> </li> </ul> </div> </body> CSS code -------------------------------------------------------------- body { margin: 0; padding: 0; width: 100%px; } .lblue { height:46px; font-family:Arial, Helvetica, sans-serif; background-image:url(images/nav1.png) } .lblue a {text-decoration:none; } .lblue > li > a { color:#fff; font-weight:bold; font-size:14px; line-height:8px; padding:13px 20px 6px; height:27px; } .lblue > li:hover > a { background-color:#8ab66b; border-left:none; padding-left:21px; } .lblue > li {border-right:1px solid #0d3f72;border-right:1px solid rgba(0, 0, 0, .33);} .lblue > li > a {border-left:1px solid #4c8bcb;border-left:1px solid rgba(255, 255, 255, .20);} .lblue > li > a img, .lblue li > ul > li > a img { border:0; margin-right:7px; } .menu, .menu ul { margin:0; padding:0; list-style:none; } /* --------------------------------------- */ .menu li, .menu ul a {position:relative; display:block;} .menu > li {float:right;} .menu > li.floatr {float:left; padding-left:120px; font-size: 60px; color: #ffffff; letter-spacing:1px; font-family: 'Jockey One', cursive; line-height: 28px; } .menu li > a {display:block;} /* --------------------------------------- */ .menu ul { position:absolute; display:block; width:125px; float:right; z-index:999; } .menu ul ul { top:0; left:-125px; } .menu > li.floatr > ul {right:0;} .menu > li.floatr > ul ul {left:-125px;} .menu li:hover > ul {display:block;}
  3. hey guys i have a website up and running but my meta tags seem to not be working because i cant seem to find the site in any search engine.... any ideas or thoughts would be much appreciated! this is the code i have come up with ? the website is thai takeaway food <title>Thai Takeaway Home</title> <meta name="title" content="Thai Takeaway Home /> <meta name="description" content="Thai Takeaway is an authentic Thai Takeaway! We bring a new concept in Thai food experience." /> <meta name="keywords" content="Takeaways , Thai, Thai Takeaway, thai food takeaway," />
  4. yes i just exported the sql for the database and the primary key was guests. all fixed thanks again much appreciated guys!!! awesome forum! keep up the good work :D :D
  5. i made the change .... but still it wont let me submit the same value from the drop down box if its been submitted before???
  6. thank you for looking at it .. but thats not the problem one of the fields the form has is a drop down box with 5 options to choose from. once option 1-5 have been selected once and sumitted to the database if someone else submits their details with the same amount of guest as the first person ie: option one. it says unable to insert record. is their a way to fix this ? this is my table form structure: <form name="form1" method="post" action="register.php"> <table width="339" height="214" border="0" align="center"> <tr> <td width="163">First Name: </td> <td width="322"><input name="first_name" type="text" id="first_name" size="30" maxlength="15"></td> </tr> <tr> <td>Last Name: </td> <td><input name="last_name" type="text" id="last_name" size="30" maxlength="30"></td> </tr> <tr> <td>Email:</td> <td><input name="email" type="text" id="email" size="30" maxlength="30"></td> </tr> <tr> <td>Mob. Number: </td> <td><input name="phone" type="text" id="phone" size="30" maxlength="30"></td> </tr> <tr> <td>Guests:</td> <td><select name="guests" id="guests"> <option>1 Person</option> <option>2 People</option> <option>3 People</option> <option>4 People</option> <option>5 People</option> </select></td> </tr> <tr> <td height="80"><p> </p></td> <td><input type="submit" name="Submit" value="Submit" /> <input type="reset" name="Submit2" value="Reset"> <br /> <br /> <span class="x">(Press Once Only) </span></td> </tr> </table> </form>
  7. hey there, i have created a guestlist that is linked to a database for people to add some details and submit it off. The problem i am having is confusing because the server connects to the database fine but after 5 or so entries it goes to my echo comment which is "unbale to insert record" just after 5 entries and or if i use a different computer......it will be much appreciated if someone could help me this thankyou heres my code: ****************************************************************** <?php # FileName="conn_db.php" $hostname= "********"; $database= "*********"; $user = "********"; $pass ="********"; $mysql_link=mysql_connect($hostname,$user,$pass) or die("unable to connnect to the server"); mysql_select_db($database) or die ("unable to select the database"); ?> **************************************************************** <?php $first_name=$_POST['first_name']; $last_name=$_POST['last_name']; $phone=$_POST['phone']; $email=$_POST['email']; $guests=$_POST['guests']; if (($first_name == "") or ($last_name == "") or ($email == "") or ($guests == "")) { echo"<p>Required Field (s) missing....!!!! Go Back and Try Again...!!!</p>"; } elseif (!(strstr($email, "@")) or !(strstr($email, "."))) { echo"<p>Invalid Email....!!!! Go Back and Try Again...!!!</p>"; } else { //Connect to the server and add a new record require_once('conn_db.php'); $query = mysql_query("SELECT COUNT(*) as pcount FROM cust")or die(mysql_error()); $row= mysql_fetch_assoc($query); //echo 'current count:'.$row['pcount']; // if ($row['pcount'] >120) { echo "guest list is full"; } else { $query = "INSERT INTO cust Values ('$first_name', '$last_name', '$phone', '$email', '$guests')"; mysql_query($query) or die ("unable to insert the record"); mysql_close(); echo "<p><b>Record Addedd Successfully.....!!!!</p>"; echo"<p> <a href=../html/thankyou.html>Click Here to Return to the Guests Page</a></b></p>"; $message = "Thankyou for registering with us\ Your deatils are: \nName: $_POST[first_name] \nEmail: $_POST /nPhone: $_POST[phone] \nguests: $_POST[guests]\n"; mail ($email, "Website Email", $message); } } ?>
  8. awesome! that fixed it thank you so much I appreciate it
  9. hey guys i have created a guest list as you can see below i have added a function that should make the database stop adding new records once it hits my specified number of rows. the count comes up and the echo shows but it still adds the record and it shouldn't! help please heres my code: <?php $first_name=$_POST['first_name']; $last_name=$_POST['last_name']; $phone=$_POST['phone']; $email=$_POST['email']; $password=$_POST['password']; $repassword=$_POST['repassword']; if (($first_name == "") or ($last_name == "") or ($email == "") or ($password == "")) { echo"<p>Required Field (s) missing....!!!! Go Back and Try Again...!!!</p>"; } elseif (!(strstr($email, "@")) or !(strstr($email, "."))) { echo"<p>Invalid Email....!!!! Go Back and Try Again...!!!</p>"; } elseif ($password != $repassword) { echo"<p>Password Miss Match...!!! Go Back and Try Again...!!!!</p>"; } else { [color=green]/Connect to the server and add a new record require_once('conn_db.php'); $query = mysql_query("SELECT COUNT(*) as pcount FROM cust")or die(mysql_error()); $row= mysql_fetch_assoc($query); echo 'current count:'.$row['pcount']; if ($row['pcount'] >5){ echo "guest list is full"; } $query = "INSERT INTO cust Values ('$first_name', '$last_name', '$phone', '$email', '$password')"; mysql_query($query) or die ("unable to insert the record"); mysql_close(); echo "<p><b>Record Addedd Successfully.....!!!!</p>"; echo"<p> <a href=login.php>Click Here to Login to the Member Page</a></b></p>"; $message = "Thankyou for registering with us\ Your deatils are: \nName: $_POST[first_name] \nEmail: $_POST[email] /nPhone: $_POST[phone] \nPassword: $_POST[password]\n"; mail ($email, "Website Email", $message); } ?> [/color] [code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.