NOTE: it wouldn't let me post most the code I wanted to so here's what it would let me post <?php while($row = mysql_fetch_assoc($result)){ echo '<a href="index.php?menu=edit_user&user_id='.$row['user_id'].'">Edit User</a>'; } ?> Understand? it will create a link that will lead you to the edit page.

there are two ways I know of that you can do. the first one is with javascript and an onclick action that sets a hidden variable to the record you select that also submits the page. the other one is to have images/href link that goes to a page and gets the data within the $_GET superglobal. I ususal...

ok you check is_file("./$z") but you include it as include($z) those two aren't the same try include("./$z") also the inlcude("main.php") try include("./main.php") I'm guessing it's the include_path you can find out what that is by get_include_path and that's the directory it looks in for includes. ...

well.. your query is failing... if you know a.MobileNumber=b.MobileNumber then you don't need to check both a.MobileNumber=$MobileNumber and b.MobileNumber=$MobileNumber one will suffice. echo it out and see what happens when you put it in phpMyAdmin.. when the query fails it usually means you have ...

mysql_fetch_array -- Fetch a result row as an associative array, a numeric array, or both. The type of array that is to be fetched. It's a constant and can take the following values: MYSQL_ASSOC, MYSQL_NUM, and the default value of MYSQL_BOTH. i.e. mysel_fetch_array($result, MYSQL_ASSOC) for associ...

What I like to do so I don't do any mistakes is include the field names i'm inputting into. If you want to insert you have to have all fields accounted for if not lising the fields <?php $query = 'INSERT INTO kontakter (first_name, last_name, phone, mobile, email, website) VALUES ("'.$first.'","'.$l...

Usually what I would do is put all the results into an array and for loop through the array $current_heading = ''; $headings = array(); while ($row=mysql_fetch_array($result)) { $headings[] = $row; } $size = count($headings); for($x=0; $x<$size; $x++){ if($current_heading != $heading[$x]['heading_ti...

I try to use the {} on all if statements even id one result condition.. also have the variable I'm checking first and the test condition second... code below reflects my best practices. hopefully that helps. <?php function checkAccess($access) { if ($access == 1 || $access > 5){ return true; }else{ ...