Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Okay well create the field and assign the default value to 0. If the table is called expire_login then you would just do a query like: if(isset($_POST['login_button']) { $results = mysql_query("SELECT expire_login FROM users WHERE username = " . $username . ";"); $data = mysql_fetch_array($results); if($data['expire_login'] { //update database mysql_query("UPDATE users SET expire_login = expire_login + 1;") or die (mysql_error()); } else { //make them change their name/password } } This is not tested, sorry for any mistakes.
-
Do you know how to create tables and access your database?
-
Have a field in your table called expire_logins and every time the user logs in just increment this value, and check to see if it's equal to 5.
-
Sometimes google is good for solving google related problems.
-
Link Populatiry, who to use? I need thousands of links to my site
Maq replied to edwardtilbury's topic in Miscellaneous
No, I don't like to spam sites and I do not know a good one. -
What do you mean by it's still not working? Are the check boxes just not being check? No errors right? If you don't know how to turn them on put this piece of code at the top of the page: ini_set ("display_errors", "1"); error_reporting(E_ALL); Also, are you sure there are values in the array? Please print out the array by doing: print_r($b);
-
Lol, I hope you're being sarcastic. I think it's too plain and boring. I like the original site better but that still needs a lot of work.
-
Oh yeah hehe...
-
Link Populatiry, who to use? I need thousands of links to my site
Maq replied to edwardtilbury's topic in Miscellaneous
You would use a webcrawler to spam sites and submit your link. -
Not sure I completely understand. So your table could have something like this: If $id = cycling, you want to grab all of the users with Cycling in their group? So in this case it would be user 1 and 2?
-
You don't close your PHP tag. >BBC
-
Do you want to see if there is any value or a specific one? First case use rhodesa's code, latter use in_array.
-
It doesn't happen. Look at your code. You only assign $foo[$i] = $site[$i] when $site[$1] IS NOT EQUAL to "". if ($site[$i] != ""){ $foo[$i] = $site[$i]; }
-
Just have another field in your database called next_rank. When they sign up take the current date + 1 year. When they hit that date (now() = next_rank) then you give them the next rank and increment next_rank by another year. You could do this whenever they sign in or better yet run a cron job to check everyday.
-
Weird, doesn't load for me either. Says, "Address Not Found". He just asked for a critique and now his site is down ???
-
What do you mean, "say if the field is blank!"? Looks to me you want to get all records that aren't blank... If that's the case then you should use MadTechie's solution and use the NOT ISNULL().
-
They have computers that come stock with Linux OS's now...
-
Yes, that should work. The best way to find out is to test it out.
-
I hear ya, don't they make multi-disk DVD players these days?
-
You should be getting an error, please change this line to view the error: $fileLIST=mysql_query($delRT) or die(mysql_error()); You have WHERE `date_rendezvous` with no comparison, I don't even understand how this works. Please re-run the script with the debugging code and tell me what it says.
-
Don't know how, this query isn't right... $sql = 'EXPLAIN SELECT CURRENT_DATE FROM `members` WHERE `date_rendezvous`'; The WHERE clause needs something to compare to. Anyway, if it works in PhpMyAdmin then I guess it should work in your code. We need to see the whole query part of your code.
-
Monitor for computer, TV for movies. Besides 52" IMO is way too big for a monitor, but I think it's a good size for a TV.
-
No, nothing wrong with that.. But I think there is something wrong when someone buys a template, then claims to have begun working on a website and would like feedback on the design. It's not even their design. I always figured this particular forum was for people who are building their own sites, not buying a template and making out to look like their own. If the OP had at the very least mentioned that it was a purchased template from the get-go, it wouldn't reflect so poorly. I agree 100% with what you're saying. If he altered the template or put some custom work into it then I could see him asking for a critique but since it looks like there's no altercations than I don't see the point of putting a template in this section, especially when it costs $.
-
Apparently it is... http://www.templatemonster.com/website-templates/19199.html I knew it was a template because the website was made mostly of images that he just spliced apart and put back together but there's nothing wrong with that...