User Profile

Collapse

Profile Sidebar

Collapse
leesyaa
leesyaa
Last Activity: Jan 25 '15, 08:23 AM
Joined: Jan 13 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • leesyaa
    replied to view record using id
    in PHP
    it still doesnt display the input. i try changing all the 'POST' to 'GET'. the only output displayed are the id while others remain empty.
    See more | Go to post

    Leave a comment:


  • leesyaa
    replied to view record using id
    in PHP
    i have replace it. still cant view the output :/
    See more | Go to post

    Leave a comment:


  • leesyaa
    started a topic view record using id
    in PHP

    view record using id

    i can view the list of the users but when i'm trying to view the user record using their id, the output from the database doesn't show.

    user_list.php

    Code:
    <?php
    
    	include 'connection.php';
    	$sql = "SELECT * FROM formequip, equipment, department WHERE formequip.equip_id = equipment.equip_id = department.depart_id";
    	$result = mysql_query($sql) or die('Query failed. ' . mysql_error());
    ...
    See more | Go to post

  • leesyaa
    replied to login page php wouldnt redirect
    in PHP
    thanks! it work well :D

    but now it doesnt respond to the

    Code:
    <?php 
    session_start();
    if(!isset($_SESSION['admin_username'])) {
    	header("Location: error.php");
    	}
    
    ?>
    that i set to secure the page.

    the user could still open the admin page :(
    See more | Go to post

    Leave a comment:


  • leesyaa
    started a topic login page php wouldnt redirect
    in PHP

    login page php wouldnt redirect

    hi, im trying to make a login page that call the user from two different table (admin & user). it doesnt have any error but it somehow doesnt link to the required page.


    login.php
    Code:
    if(isset($_POST['submit']))
    	{	
    		include 'connection.php';
    		
    		$username = trim(addslashes($_POST['username']));
    		$password = trim(addslashes($_POST['password']));
    		
    		if ($username !=
    ...
    See more | Go to post

  • leesyaa
    replied to undefined index error
    in PHP
    less secure? hmm maybe this :D

    Code:
    $sql = "DELETE FROM admin WHERE md5(adminID)= '".md5($adminID)."'";
    See more | Go to post

    Leave a comment:


  • leesyaa
    started a topic login page php and javascript
    in PHP

    login page php and javascript

    I'm working on a login page by user level. but it didnt seems to work. it doesnt redirect and leave a blank page.

    index.php (where the form at)

    Code:
    <form class="login" action="login.php" method="post">
    &nbsp;&nbsp;<b>Username:</b>&nbsp;<input type="text" name="username" id="username"/>&nbsp;&nbsp;
    <b>Password:</b>&nbsp;<input
    ...
    See more | Go to post

  • leesyaa
    replied to undefined index error
    in PHP
    I figured this do the trick!

    Code:
    <td><a href = "deleteadmin.php?adminID=<?php echo $row['adminID']; ?>&bil=<?php echo $bil; ?>"><img src="img/deleteicon.png" align="center"></a></td>
    See more | Go to post

    Leave a comment:


  • leesyaa
    started a topic undefined index error
    in PHP

    undefined index error

    This is going to sound really stupid, but I cannot figure out why I am getting this error.

    Code:
    Undefined index: bil in C:\wamp\www\FORM\deleteadmin.php on line 4
    
    Undefined index: adminID in C:\wamp\www\FORM\deleteadmin.php on line 5

    line 4 and 5 looks like this,

    Code:
    $bil = $_POST['bil'];
    $adminID = $_POST['adminID'];
    the full code are new.php which links to the del...
    See more | Go to post

  • leesyaa
    replied to Undefined index
    in PHP
    @Dormilich, ah I forget to mention, but I test Luuk's code already, which is resulting the same error.
    See more | Go to post

    Leave a comment:


  • leesyaa
    replied to Undefined index
    in PHP
    @dormilich I have update the code, see above :)
    See more | Go to post

    Leave a comment:


  • leesyaa
    replied to Undefined index
    in PHP
    @Luuk it's still displaying the same error :(
    See more | Go to post

    Leave a comment:


  • leesyaa
    replied to Undefined index
    in PHP
    @Dormilich can you please tell me where I code wrong? :(
    See more | Go to post

    Leave a comment:


  • leesyaa
    replied to Undefined index
    in PHP
    its not the $id = $_POST['id']?
    See more | Go to post

    Leave a comment:


  • leesyaa
    replied to Undefined index
    in PHP
    but I have the id? :(

    Code:
    <div id="welcome">
        <?php
        include('config.php');
    
        $sql = "SELECT * FROM pemohon WHERE id='".$_POST['id']."'";
        $results = mysql_query($sql);
    
        $row = mysql_fetch_array($results);
        //$user = $row['username'];
    
    
        $id = $row['id'];
        $name = $row['name'];
        $jawatan = $row['jawatan'];
    ...
    See more | Go to post

    Leave a comment:


  • leesyaa
    started a topic Undefined index
    in PHP

    Undefined index

    I want to update my data, so I have this code

    admin.php
    Code:
    <?php
    include('config.php');
    
    	$bil = 0;
    	//$option = '';
    	$results = mysql_query("SELECT * FROM pemohon");
    	//$option .='<select>';
    	//$count=mysql_num_rows($results);
    	//
    	while ($row = mysql_fetch_array($results, MYSQL_ASSOC))
    	{
    	$bil++;
    	
    	
    
    	echo "<form
    ...
    See more | Go to post

  • leesyaa
    started a topic how to do pop up menu to show detail
    in PHP

    how to do pop up menu to show detail

    I have quarried data form DB (mysql) depend on user input and viewed that on a table. originally there is 12 column on my table, but I made only 7 that shows up on the table.

    I what that when i click the ID(made it as button/link) it should show a pop up menu/form with full details of that particular row contact.

    Code:
    <tr>
    		<td><center><input type="button" value="<?php echo
    ...
    See more | Go to post

  • leesyaa
    replied to How do you make submenu appear on hover?
    it works! thanks! :D
    See more | Go to post

    Leave a comment:


  • leesyaa
    started a topic How do you make submenu appear on hover?

    How do you make submenu appear on hover?

    hello,

    I have this problem on making a sub-menu in my navigation bar. it seems to be overlapped. how can I prevent this? I can't work out how to make the sub-menu open when you hover on the main word.

    I have use the display:none thingy, but still, it doesn't seems to work.

    Code:
    <div id="nav">
        <ul>
    		<li><a href="admin.php">HOME</a></li><br>
    ...
    See more | Go to post

  • how to update a database that has a dropdown list in php

    hello,

    I have a html form for user to submit their inquiry. after submitting the form, the data will go to php file and then it will connect to the database. I can do that.

    the problem is, for admin view, it will have a dropdown list (approved/not approved) for admin to validate the data. how to update the database? I managed to do the dropdown, but when I clicked the save button, the database didnt update anything.
    ...
    See more | Go to post
    Last edited by Rabbit; Jan 13 '14, 05:33 AM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
No activity results to display
Show More
Working...