a simplier way to have a user log in using mysql is
[PHP]
<?
$query = mysql_query("select name from users where name='$name and pw='$pw'");
$count = mysql_num_rows($query);
if($count == 1)
{
$row = mysql_fetch_assoc($query);
$username =…
in a file that is included every just use
say u have an install dir
if(dir(install))
{
echo "please delete the install directory";
die();
}
put at top of code let run before anything else :)
you would first need to have a session setup with either cookies or a browser end session il show u with cookies :)
saying that you have the following cookies
user_id
[php]
<?
session_start();
include(class.php);
include(config.php);
$user_id = $…
you might want to do it so it uses the user's id instead of password....
mysql_query("update users set password='".$hashed."' where user_id='"$user_id."'");
eh...the header errors r youve started a session after some s…
css hands down.......even though ive ran into more cross browser errors while using css i can make the preview layout and the finished tempalte look identical while with tables it just creates to much space between everything and load time is much g…
athm its running News with comments,Multi-Game Roster, Matches, Schedule, Downloads, Links, Sponsors, History, Recent Matches, Upcoming Matches, Clan Servers.
i think thats all of it...;p
im going to release a beta version to a couplea people so they can find the bugs and wut not when i put out the forums and user system then i plan on selling it and then making a free version with less features as this one
lol thnx i know how to get the number of rows that are in a table i was just wondering if that was a good way of doing it and if there are any other ways of doing it as far as wut tables you use and wut not