User Profile
Collapse
-
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. -
-
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());
-
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"); } ?>
the user could still open the admin page :(Leave a comment:
-
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 !=
-
less secure? hmm maybe this :D
Code:$sql = "DELETE FROM admin WHERE md5(adminID)= '".md5($adminID)."'";
Leave a comment:
-
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"> <b>Username:</b> <input type="text" name="username" id="username"/> <b>Password:</b> <input
-
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>
Leave a comment:
-
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'];
-
@Dormilich, ah I forget to mention, but I test Luuk's code already, which is resulting the same error.Leave a comment:
-
-
-
-
-
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'];
Leave a comment:
-
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
-
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
-
-
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>
-
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.
...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
Leave a comment: