Search found 38 matches

by wignall6
Mon Jun 29, 2015 8:23 am
Forum: General Chat
Topic: jacek
Replies: 20
Views: 17976

Re: jacek

Really glad you're back. I loved your tutorials. I would love to see some JavaScript tutorials.
by wignall6
Tue Jan 31, 2012 4:50 pm
Forum: Tutorials
Topic: Blog tutorial
Replies: 1
Views: 620

Blog tutorial

Hi, Could someone please tell me when is wrong with this MYSQL query. SELECT `problem`.`problem_id` AS `id`, `problem`.`problem_title` AS `title`, LEFT(`problem`.`problem_body`, 512) AS `preview`, `problem`.`problem_user` AS `user`, DATE_FORMAT(`problem`.`problem_date`, '%d/%m/%Y %H:%i:%s') AS `date...
by wignall6
Wed Jan 25, 2012 9:25 am
Forum: PHP
Topic: Submitting Data and upload form
Replies: 1
Views: 543

Submitting Data and upload form

I have another issue with my code. I am submitting a form which adds a company to the database. I have a file upload box in the add company form. Before I added this it all worked fine. Could some please take a look at my code and see if there is anything wrong. It's probably something really easy w...
by wignall6
Tue Jan 17, 2012 9:57 am
Forum: PHP
Topic: User Permissions
Replies: 1
Views: 529

User Permissions

Hello, I have setup user permissions so that only certain users can view certain pages. I have make a form to add a company to a database but I want to assign it so only certain users can see it and edit it. It's a Intranet I am trying to build for a company and they want 3 user permissions, main ad...
by wignall6
Thu Dec 29, 2011 11:56 am
Forum: PHP
Topic: Count down time in database
Replies: 8
Views: 1283

Re: Count down time in database

Since I want people to die once their time runs out, would it be efficient to run the cron job every second?
by wignall6
Thu Dec 29, 2011 11:32 am
Forum: PHP
Topic: Count down time in database
Replies: 8
Views: 1283

Re: Count down time in database

That is a lot more understandable, Thanks very much.
by wignall6
Thu Dec 29, 2011 11:15 am
Forum: PHP
Topic: Count down time in database
Replies: 8
Views: 1283

Re: Count down time in database

I have this code which will work out how many days, hours, minutes and seconds, from seconds. Is there a possibility to keep counting down a number in the database. For example I auto set it so when they start they get 1 week which is 604800 seconds, then every second that number is subtracted by 1 ...
by wignall6
Mon Dec 26, 2011 2:33 pm
Forum: PHP
Topic: Count down time in database
Replies: 8
Views: 1283

Count down time in database

Hello, I am trying to create a game inspired by the film In Time. I was wondering is it possible to make a count down timer in the database. The idea is everyone is given 1 week time, and then there will be ways in which they can make more time and there are things they can do to spend the time. Thi...
by wignall6
Sun Oct 30, 2011 11:29 am
Forum: Tutorials
Topic: User Profile tutorial
Replies: 7
Views: 1480

Re: User Profile tutorial

Would this work for getting the user_id in your login system?
$_SESSION['user_id'] = htmlentities($_GET['user_id']);
by wignall6
Fri Oct 28, 2011 12:50 pm
Forum: Tutorials
Topic: User Profile tutorial
Replies: 7
Views: 1480

Re: User Profile tutorial

How would I store two values in the session?
by wignall6
Sun Oct 09, 2011 9:19 pm
Forum: Tutorials
Topic: User Profile tutorial
Replies: 7
Views: 1480

Re: User Profile tutorial

Yeah, how would I make it so the page will get the userid to display the right information.
by wignall6
Sat Oct 08, 2011 3:59 pm
Forum: Tutorials
Topic: User Profile tutorial
Replies: 7
Views: 1480

User Profile tutorial

Hello, I am implementing the user profile system into your login system. On the edit profile page it isn't grabbing the users information. I have changed the session parts to the session in the login but it still doesn't get the information. This is my edit_profile.php - <?php include('core/init.inc...
by wignall6
Tue Sep 06, 2011 11:21 pm
Forum: Suggestions
Topic: Projects
Replies: 16
Views: 3597

Re: Projects

I would suggest web based game. Nothing too fancy. Just some cool features which the community could vote on.
by wignall6
Wed Jun 29, 2011 4:39 pm
Forum: Tutorials
Topic: If statment to say if the user is logged in or not.
Replies: 2
Views: 786

Re: If statment to say if the user is logged in or not.

I was looking through my code and i noticed that i didn't include the include file, that's why my code wasn't working.
by wignall6
Wed Jun 29, 2011 3:38 pm
Forum: Tutorials
Topic: If statment to say if the user is logged in or not.
Replies: 2
Views: 786

If statment to say if the user is logged in or not.

Hello, On the user login system i want the user to be able to login from the index.php page. I have set that up but i am having some problems with getting it to change when the user is logged in. I want it so when the user is not logged in the login form shows and when the user is logged in i want a...
by wignall6
Tue May 31, 2011 5:19 pm
Forum: Tutorials
Topic: User Register and Login
Replies: 7
Views: 2036

Re: User Register and Login

Thanks very much! All working now.
by wignall6
Tue May 31, 2011 11:53 am
Forum: Tutorials
Topic: User Register and Login
Replies: 7
Views: 2036

Re: User Register and Login

For some reason it still doesn't add the activation to the database. It's in the function is_active.
by wignall6
Tue May 31, 2011 11:41 am
Forum: Tutorials
Topic: User Register and Login
Replies: 7
Views: 2036

Re: User Register and Login

Kamal wrote:function vaild_credentials
omg i didn't even notice that, i knew it would be a spelling mistake.
by wignall6
Tue May 31, 2011 11:26 am
Forum: Tutorials
Topic: User Register and Login
Replies: 7
Views: 2036

Re: User Register and Login

It's in the user.inc.php: <?php // Checks if the username exists in the table function user_exists($user) { $user = mysql_real_escape_string($user); $total = mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}'"); return (mysql_result($total, 0) == '1') ? true : ...
by wignall6
Tue May 31, 2011 10:03 am
Forum: Tutorials
Topic: User Register and Login
Replies: 7
Views: 2036

User Register and Login

Hello, I finished off the User Register and Login tutorial and it all worked fine, i moved onto Email activation one and i got some errors. When i register it all works fine, the user is added to the users table but the activation isn't added to the user_activation table. The activation email is sen...
by wignall6
Mon May 30, 2011 9:25 am
Forum: PHP
Topic: Stopping someone from clicking a button
Replies: 1
Views: 610

Stopping someone from clicking a button

I'm in the process of developing a php game and i am using a button, i want to make it so the button can only be pressed every 20mins, how would i go about doing this?