User Profile

Collapse

Profile Sidebar

Collapse
ammyra91
ammyra91
Last Activity: Feb 24 '12, 03:10 AM
Joined: Nov 29 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ammyra91
    replied to sort date in sql by DDMMYYYY
    in PHP
    the date is not in a MySQL format. i download it from http://www.javascriptkit.com/script/...calendar.shtml...
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic sort date in sql by DDMMYYYY
    in PHP

    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();
    ...
    See more | Go to post

  • ammyra91
    started a topic assign many attribute to one function
    in PHP

    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'";
    ...
    See more | Go to post

  • ammyra91
    replied to call function
    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.

    ...
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic call function

    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 '
    ...
    See more | Go to post

  • 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 page
    See more | Go to post

    Leave a comment:


  • ammyra91
    replied to call two session in an isset
    in PHP
    where should i write var_dump()$_SES SION;?
    I mean, after which line/code?
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic call two session in an isset
    in PHP

    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>
    ...
    See more | Go to post

  • 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?
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic adding column and retrieval data from database
    in PHP

    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"; ?>
    ...
    See more | Go to post

  • 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>
    ...
    See more | Go to post
    Last edited by Dormilich; Jan 5 '12, 11:53 AM. Reason: please use [CODE] [/CODE] tags when posting code

  • ammyra91
    replied to failed to retrieve data?
    in PHP
    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.....
    See more | Go to post

    Leave a comment:


  • ammyra91
    replied to failed to retrieve data?
    in PHP
    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?
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic failed to retrieve data?
    in PHP

    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...
    See more | Go to post
    Last edited by Dormilich; Dec 22 '11, 01:52 PM. Reason: please use [CODE] [/CODE] tags when posting code

  • ammyra91
    replied to open new tab
    thank you zorgi....i don't know how can i miss that "=".......( ^_^)
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic open new tab

    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...
    See more | Go to post

  • ammyra91
    replied to error in your SQL syntax
    in PHP
    thank you for helping me.....
    See more | Go to post

    Leave a comment:


  • ammyra91
    started a topic error in your SQL syntax
    in PHP

    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");
    ...
    See more | Go to post
    Last edited by Meetee; Nov 29 '11, 08:47 AM. Reason: code tags added
No activity results to display
Show More
Working...