Search found 10 matches
- Thu Aug 23, 2012 1:21 am
- Forum: Tutorials
- Topic: User Profile - edit profile not working.
- Replies: 19
- Views: 3521
Re: User Profile - edit profile not working.
For the win!! Ok so on the tut to make profile: User Profiles [part 04] (@ 6min) if you want to see. He just made the update table chunk: $sql = "UPDATE `users` SET `user_email` = '{$email}', `user_location` = '{$location}', `user_about` = '{$about}' WHERE `user_id` = {$_SESSION['uid']}"; ...
- Thu Aug 23, 2012 12:25 am
- Forum: Tutorials
- Topic: Register/login
- Replies: 14
- Views: 3552
Re: Register/login
Ok what are you wanting "guest" to have and be able to do and how long will the session last (till they close their browser, a week? For me I would want guest to have a user_id and user_name. (So lets do a simple flow chart ; ) login page login link and guest login link (you already have l...
- Wed Aug 22, 2012 4:21 pm
- Forum: Tutorials
- Topic: User Profile - edit profile not working.
- Replies: 19
- Views: 3521
Re: User Profile - edit profile not working.
Go into your table in your database and manually fill in some data. Then go to the edit profile page and see if it pulls that data from your table into your form.
- Wed Aug 22, 2012 8:12 am
- Forum: Tutorials
- Topic: User Profile - edit profile not working.
- Replies: 19
- Views: 3521
Re: User Profile - edit profile not working.
Hey Rabotos does your edit_profile form show info in it? Mine wasn't putting data in my form I changed: on the edit_profile file change $_SESSION to $_GET $user_info = fetch_user_info($_GET['uid']); now it puts stuff in the form but it still isn't updating the table. I want to sign in and have it go...
- Wed Aug 22, 2012 12:10 am
- Forum: Tutorials
- Topic: User Profile - edit profile not working.
- Replies: 19
- Views: 3521
Re: User Profile - edit profile not working.
Ya thats my next question too? I just watched the user profile tutorial which is great. (So are all of the tuts XD) In that tut he just sets the session to 1. $_SESSION['uid'] = 1; So to combine the login with the profile I need to grab info from the cookie that was set at login correct? All that wa...
- Tue Aug 21, 2012 7:26 pm
- Forum: Tutorials
- Topic: login email activation problem
- Replies: 3
- Views: 893
Re: login email activation problem
Oh my goodness!! Just a silly misspelling lol I guess I should take breaks more often : ) thanks soo much
- Tue Aug 21, 2012 6:02 am
- Forum: Tutorials
- Topic: login email activation problem
- Replies: 3
- Views: 893
login email activation problem
Some reason it still allows login if not activated. The email is being sent and the activation is being put into the table and if activated is being deleted. So the if statement to check if the activation is still in the table is not working... I've tried different things and I've tried error handli...
- Tue Aug 21, 2012 12:22 am
- Forum: Tutorials
- Topic: User Account System - not working
- Replies: 5
- Views: 1265
Re: User Account System - not working
Thanks again Temor that helped me figure out that it wasn't connecting to my database. I had to change the code a bit since I'm not connecting to a local db. Instead of the mysql_connect(127.0.0.1... I'm using: mysql_connect('database_host', 'data_username, 'data_pass'); mysql_select_db('data_name')...
- Mon Aug 20, 2012 10:48 pm
- Forum: Tutorials
- Topic: User Account System - not working
- Replies: 5
- Views: 1265
Re: User Account System - not working
Thanks Temor that got me a good ways. Do you see anything wrong here? function user_exists($user) { $user = mysql_real_escape_string($user); $total = mysql_query("SELECT COUNT('id') FROM 'users' WHERE 'user_name' = '{$user}'"); return (mysql_result($total, 0) == '1') ? true : false; } it g...
- Mon Aug 20, 2012 10:09 pm
- Forum: Tutorials
- Topic: User Account System - not working
- Replies: 5
- Views: 1265
User Account System - not working
First off these are awesome tutorials. Some reason my register.php is only saving the username and reloading that page with its value saved. I can't figure out why none of the errors come up. <?php include('deep_down/init.inc.php'); $errors = array(); if (isset($_POST['username'], $_POST['password']...