User Profile
Collapse
-
the date is not in a MySQL format. i download it from http://www.javascriptkit.com/script/...calendar.shtml... -
sort date in sql by DDMMYYYY
hi...
i need help on this function...i want to sort data in a table that arrange the data according to the month,date and then year.
by using this code below, i am able to sort the data ascending according to date, but, the it follows the first number in the date2 column. for example, 1/2/2012,17/2/2012,2/1/2012.....i want it to be sorted like, 2/1/2012,1/2/2012,17/2/2012......
Code:<?php session_start();
-
assign many attribute to one function
Hi evryone....
i need you help in this coding....
i named this page search0.php.... .
this is my code....
Code:<?php include("dbconn.php"); $dateday = $_POST['dateday']; $datemonth = $_POST['datemonth']; $dateyear = $_POST['dateyear']; $sql= "SELECT * FROM staffactivity WHERE dateday = '$dateday' AND datemonth = '$datemonth' AND dateyear = '$dateyear'";
-
rabbit:
the 1st case is : (in function validation)
for example,i didn't enter any information in one of the text box.when i click submit, it should display an alert box saying that, "Please fill in 'Name' textbox" for example...but, instead of that, it just go to new window and display "Data have been save" or "Record existed". Thus, there will be an empty space in a database.
...Leave a comment:
-
call function
hi evryone.....i would like to ask your favour regarding on my php code.....this is my code....
Code:<html> <head> <title> </title> <script type="text/javascript"> function validation() { var valid=true; if(document.form2.icnumber.value=="") { alert(" Please fill in the ' Identification Card Number '
-
i can retrieve the data from database, but the problem is, i need to hit F5 button to retrieve the new data....i want this program to automatically insert data to table after we add data from another pageLeave a comment:
-
where should i write var_dump()$_SES SION;?
I mean, after which line/code?Leave a comment:
-
call two session in an isset
HI...i need help in this php project....this is my coding...
Code:<?php session_start(); if(isset($_SESSION ['username'])) { ?> <html> <body> Hi, <?php echo $_SESSION['username']['position']; ?> [<a href="logout.php">Logout</a>] <br><br> <?php echo "DAILY TASK LIST"; ?> <br><br>
-
rabbit:what i mean is,when we enter data in a page,then the data will be entered to this table automatically.. ....after we add another data, the data then continue being inserted into the table......is it possible for me to do that by using php?Leave a comment:
-
adding column and retrieval data from database
hi...
i need help on one of my website page....
this is my coding...
Code:<?php session_start(); if(isset($_SESSION ['username'])) { ?> <html> <body> Hi, <?php echo $_SESSION['username']; ?> [<a href="logout.php">Logout</a>] <br><br> <?php echo "SENARAI TUGAS HARIAN"; ?>
-
hide column and row line in a table without disable the table border
hello evrybdy...
i need help...i wanna make a table that there is no column or row line exist in the table. yes,i want the border of the table line to be seen....
here's are my coding....
Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head>
Last edited by Dormilich; Jan 5 '12, 11:53 AM. Reason: please use [CODE] [/CODE] tags when posting code -
hello dormilich....tq so much...now i know why i can't retrieve those data.....coz i save it in database....it' s my mistake.....Leave a comment:
-
hi dormilich...tha nkz for informing me about the CODE tag....
you said that you would need to see the cade, where i save the data to the session.
do you mean the database?Leave a comment:
-
failed to retrieve data?
hi....i am making a system using php. after user had register their account, they will be proceeded to menu.php page. I want this page to be able to retrieve the data that have been entered by user.
For example....
Name : <their name that they entered during registration>
Department : < user's department >
I had succeed to retrieve their name..but the problem is,other information could...Last edited by Dormilich; Dec 22 '11, 01:52 PM. Reason: please use [CODE] [/CODE] tags when posting code -
thank you zorgi....i don't know how can i miss that "=".......( ^_^)Leave a comment:
-
open new tab
hi....i just want to know the command to open a new tab after we hit any button in a webpage.
I tried not to use the Ctrl+T, or the menu bar to open new tab......
For example,i clicked on the home button,then it will navigate to the homepage and open it on a new tab....
I had try this code,...
<a href="http://www.google.com/" target"_blank"> Click Here To Go To This... -
-
error in your SQL syntax
hi....i am doing a php project.but lately, i have been in a dilemma bcoz i am receiving this kind of error after hitting the submit button.
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
this is my coding.....
Code:<?php /* include db connection file */ include("dbconn.php");
No activity results to display
Show More
Leave a comment: