Jump to content

[SOLVED] never loading script


Foser

Recommended Posts

alright this is my script

<?php
include('../../config.php');
session_start();
// Authentication
if ($_SESSION['LOGGEDIN'] == !TRUE){
echo "You are not logged in. Click <a href=\"../../index.php\">here</a> to login."; exit;}
$result = mysql_num_rows(mysql_query("SELECT admin_rights FROM user_info WHERE username = '$_SESSION[uNAME]'"));
if ($result != TRUE){
echo "You are not authorized to view the selected page."; exit;}


echo "<table width=\"200\" border=\"1\">";
echo "<form name=\"form1\" method=\"post\" action=''>";
$memquery = mysql_query("SELECT username FROM user_info");

while (mysql_num_rows($memquery)){
echo "<tr>";
echo "<th scope=\"col\">{$memquery}</th>";
$user = $memquery;
echo "<th scope=\"col\"><label><input type=\"submit\" name=\"edit\" id=\"edit\" value=\"Edit\"></label></th>";
echo "<th scope=\"col\"><label><input type=\"submit\" name=\"edit\" id=\"delete\" value=\"Delete\"></label></th>";
}
echo "</tr></table>";

?>

I basicly want all the user info usernames and have two things saying edit or delete. but this page never loads maybe my while loop never ends? but since no error displays hard for me to see the mistake.

 

any help would be great thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/58232-solved-never-loading-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.