Search found 5 matches
- Sun Apr 14, 2013 6:10 pm
- Forum: PHP
- Topic: Checkbox Toggle
- Replies: 2
- Views: 959
Checkbox Toggle
<?php $con=mysqli_connect("localhost","root","","User_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM Assessments"); echo &q...
- Sun Apr 14, 2013 3:49 pm
- Forum: JavaScript
- Topic: Using Javascript to retrieve data from database
- Replies: 1
- Views: 2447
Using Javascript to retrieve data from database
$sql="CREATE TABLE Assessments (ID int (6), Title VARCHAR(80), Lecturer VARCHAR(80), Start VARCHAR (10), Due VARCHAR (10), Completed VARCHAR (10), Constraint FK_USERS_ASESSEMENT FOREIGN KEY (ID) REFERENCES Users (ID))"; Hi guys..i just created this table. Is there a way I could view the d...
- Fri Apr 12, 2013 7:28 pm
- Forum: JavaScript
- Topic: Insert Automatic Date Into Table Via Button
- Replies: 2
- Views: 2573
Re: Insert Automatic Date Into Table Via Button
Here is an example to get you started. Follow the comments and you should be fine. <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript"> $(document).ready(function() { // When the "c...
- Fri Apr 12, 2013 12:51 pm
- Forum: PHP
- Topic: Automatically add date to database table when button clickde
- Replies: 1
- Views: 1100
Automatically add date to database table when button clickde
Adding Assessment Form PHP <?php $con=mysqli_connect("localhost","root","","User_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM A...
- Fri Apr 12, 2013 10:07 am
- Forum: JavaScript
- Topic: Insert Automatic Date Into Table Via Button
- Replies: 2
- Views: 2573
Insert Automatic Date Into Table Via Button
Adding Assessment Form PHP <?php $con=mysqli_connect("localhost","root","","User_db"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM A...