Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2014
    Thanked 0 Times in 0 Posts

    Can't get datepicker to work

    Oke, so implementing datepicker is not that difficult. I tried it on an empty page and everything works as it should. But inside my webpage it doesn't. I have literally tried everything I could find online but withouth success. What am I doing wrong? I have wasted my entire day on this, I'm about to throw my laptop out of the window!

    <!DOCTYPE html>
    if ($_COOKIE['login']== 1){
    <html lang="en">
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">
        <!-- Bootstrap core CSS -->
        <link href="css/bootstrap.css" rel="stylesheet">
        <!-- Add custom CSS here -->
        <link href="css/sb-admin.css" rel="stylesheet">
        <link rel="stylesheet" href="font-awesome/css/font-awesome.min.css">
    	    <link rel="stylesheet" href="http://cdn.oesmith.co.uk/morris-0.4.3.min.css">
    	<!-- add styles -->
    <link href="css/ui-lightness/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
    <!-- add scripts -->
    <script src="js/jquery.191.js"></script>
    <script src="js/jquery-ui-1.9.2.custom.min.js"></script>
    		  <script type="text/javascript" src="js/jquery.min.js"></script>
           <script type="text/javascript" src="js/jquery-ui-1.10.4.custom.min.js"></script>
           <link rel="stylesheet" type="text/css"
            href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" />
           <script type="text/javascript">
        <div id="wrapper">
          <!-- Sidebar -->
          <div id="page-wrapper">
            <div class="row">
              <div class="col-lg-11">
                <h1><center><font color="#819FF7"><i>Bookings</i></font></center><small></small></h1>
     <div class="row">
    <div class="col-lg-14">
    <div class="page-header">
    			    <div class="col-lg-4">
    					<div class="panel panel-primary">
    						<div class="panel-heading">
    							<h2 class="panel-title"><i class="fa fa-bar-chart-o"></i> Add Reservation</h2>
    			  <form id="form" class="form-wrapper" method="post" action="addreservation.php"  enctype="multipart/form-data">
    				<input id="date" name="date" type="text" class="form-control" />
                    <input class="form-control" name="name" type="text">	
                    <label>Phone Number</label>
                    <input class="form-control" name="phonenumber" type="text">
                   <label>Number of Guests</label>
                    <select class="form-control" select id="guests" name="guests">
    				<option value="1">1</option>
    				<option value="2">2</option>
    				<option value="3">3</option>
    				<option value="4">4</option>
    				<option value="5">5</option>
    				<option value="6">6</option>
    				<option value="7">7</option>
    				<option value="8">8</option>
    				<option value="9">9</option>
    				<option value="10">10</option>
    				<option value="11">11</option>
    				<option value="12">12</option>
    				<option value="13">13</option>
    				<option value="14">14</option>
    				<option value="15">15</option>
    				<option value="16">16</option>
    				<option value="17">17</option>
    				<option value="18">18</option>
    				<option value="19">19</option>
    				<option value="20">20</option>
                    </select>		<br>
    				<center><input type="submit" class="btn btn-primary btn-lg" value="Book"></button></center><br>
    			    <div class="col-lg-8">
    					<div class="panel panel-primary">
    						<div class="panel-heading">
    							<h2 class="panel-title"><i class="fa fa-bar-chart-o"></i>  Bookings</h2>	
    									$date = date("Y-m-d");
    									$query = mysql_query("SELECT * FROM Calendar WHERE date >= '".$date."' LIMIT 7") or die(mysql_error());
    									while($row = mysql_fetch_array($query))
    										echo $row['date'];
    										echo "<br>";
    </div><!-- /.row -->			 
            </div><!-- /.row -->
          </div><!-- /#page-wrapper -->
        </div><!-- /#wrapper -->
        <!-- JavaScript -->
        <script src="js/jquery-1.10.2.js"></script>
        <script src="js/bootstrap.js"></script>
    else {
    header('Location: index.php');

  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,312 Times in 1,282 Posts
    Quote Originally Posted by saffijeej View Post
    I have literally tried everything I could find online but withouth success.
    Apparently you’ve never found this sticky.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts