Search found 205 matches
- Sat Dec 15, 2012 4:16 am
- Forum: PHP
- Topic: photo gallery
- Replies: 46
- Views: 6757
Re: photo gallery
The htmlentities error is indeed gone now However, this is what your source code shows: [syntax=xhtml]<a href="uploads//."><img src="122" title="" />[/syntax] First, it's not really dealing with your issue but you aren't closing your <a> tag. Second, You are calling eve...
- Fri Dec 14, 2012 1:17 pm
- Forum: PHP
- Topic: cannot edit profile
- Replies: 89
- Views: 11221
Re: cannot edit profile
What is user.php?
Are you using session_unset(); or session_destroy(); in any places other than logout?
Are you using session_unset(); or session_destroy(); in any places other than logout?
- Fri Dec 14, 2012 12:53 am
- Forum: General Chat
- Topic: Jquery Tutorial
- Replies: 4
- Views: 1140
Re: Jquery Tutorial
Yes, I'm pretty deep into javascript. Jquery is seeming too easy...
- Thu Dec 13, 2012 9:52 pm
- Forum: PHP
- Topic: photo gallery
- Replies: 46
- Views: 6757
Re: photo gallery
The htmlentities error is still there, just view the source of your page. Just for clarification, both the folder and files have 755 permission?
- Thu Dec 13, 2012 4:06 am
- Forum: General Chat
- Topic: Jquery Tutorial
- Replies: 4
- Views: 1140
Re: Jquery Tutorial
Yea I'm officially a professional at alerting, showing, and hiding
I'd rather not spend on a book but wow that list looks intimidating...
I'll play around with it for a while thanks![Smile :)](./images/smilies/icon_e_smile.gif)
![Laughing :lol:](./images/smilies/icon_lol.gif)
I'd rather not spend on a book but wow that list looks intimidating...
I'll play around with it for a while thanks
![Smile :)](./images/smilies/icon_e_smile.gif)
- Thu Dec 13, 2012 3:49 am
- Forum: General Chat
- Topic: Jquery Tutorial
- Replies: 4
- Views: 1140
Jquery Tutorial
Does anyone know a good tutorial for beginner jquery? Just getting done with Python and Java, looking to try something new
Seems every link you search for doesn't explain at all...or just copied and pasted from w3schools ![Neutral :|](./images/smilies/icon_neutral.gif)
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
![Neutral :|](./images/smilies/icon_neutral.gif)
- Thu Dec 13, 2012 3:44 am
- Forum: PHP
- Topic: cannot edit profile
- Replies: 89
- Views: 11221
Re: cannot edit profile
Ok first step to debugging it is...do you actually have a column in your users database called uid?
- Wed Dec 12, 2012 5:03 pm
- Forum: PHP
- Topic: cannot edit profile
- Replies: 89
- Views: 11221
Re: cannot edit profile
Insert this somewhere in edit_profile.php where you will be able to see it being displayed: [syntax=php]echo "<h1>The current SESSION UID is: ".$_SESSION['uid']."</h1>";[/syntax] What does it display? Also why is edit_profile.php containing what should be on login.php? Post login...
- Wed Dec 12, 2012 1:33 am
- Forum: PHP
- Topic: cannot edit profile
- Replies: 89
- Views: 11221
Re: cannot edit profile
Change: [syntax=php]if (empty($errors)){ $grad = htmlentities($_POST['grad']); $drzava = htmlentities($_POST['drzava']); $fan = htmlentities($_POST['fan']); $website = htmlentities($_POST['website']); mysql_query("UPDATE `users` SET `grad` = '{$grad}', `drzava` = '{$drzava}',`fan` = '{$fan}', `...
- Tue Dec 11, 2012 4:40 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
Post the processing file of your login.
- Tue Dec 11, 2012 3:39 pm
- Forum: PHP
- Topic: cannot edit profile
- Replies: 89
- Views: 11221
Re: cannot edit profile
Posting all updated files would help
- Tue Dec 11, 2012 2:27 am
- Forum: Tutorials
- Topic: Login Probs again D:
- Replies: 2
- Views: 900
Re: Login Probs again D:
[syntax=php] mysql_query("SELECT COUNT(`user_id`) FROM `users` WHERE `user_name` = '{$user}' AND `user_password` = '{$password}'"); return (mysql_result($total, 0) == '1') ? true : false; [/syntax] You aren't giving your query the variable name of $total so mysql_result is throwing an erro...
- Mon Dec 10, 2012 11:22 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
You need to set $_SESSION['uid'] at login and remove it from init.inc.php
- Mon Dec 10, 2012 10:53 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
Change if(preg_match
to if(!preg_match
to if(!preg_match
- Mon Dec 10, 2012 10:34 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
On line 12 you're missing an underscore for $POST['location']
And that foreach I told you to add earlier is causing the implode error I think. I'm not too experienced with implode but removing the foreach won't hurt anything
And that foreach I told you to add earlier is causing the implode error I think. I'm not too experienced with implode but removing the foreach won't hurt anything
- Mon Dec 10, 2012 10:08 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
I think you mean preg_match
- Mon Dec 10, 2012 8:38 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
Edit_profile.php [syntax=php] <label for="location">Location:</label> <br> <input type"text" name="email" id="email" class="round" value="<?php echo $user_info['location']; ?>" />[/syntax] Check the name on that textfield
- Mon Dec 10, 2012 8:21 pm
- Forum: Tutorials
- Topic: User Profiles - Edit Profile Not Working
- Replies: 18
- Views: 3294
Re: User Profiles - Edit Profile Not Working
There are a couple errors that could be happening: 1. Your query in fetch_user_info is failing. This might also be a result of automatically setting $_SESSION['uid'] = 1 in init.inc.php, if there is no user with uid of 1. 2. Edit: Not needed Sorry for lack of organization there ^^ but tab doesn't wo...
- Mon Dec 10, 2012 7:22 pm
- Forum: PHP
- Topic: photo gallery
- Replies: 46
- Views: 6757
Re: photo gallery
You are breaking up the array ($images) with a foreach. Then later down using htmlentities($full_image).
$full_image is sourcing the array which I believe is the source of your error I'm not too sure tbh.
$full_image is sourcing the array which I believe is the source of your error I'm not too sure tbh.
- Sun Dec 09, 2012 10:06 pm
- Forum: PHP
- Topic: Background Image rotator
- Replies: 9
- Views: 1330
Re: Background Image rotator
jacek wrote:[syntax=php]
}else if ($date == '26-09'){
// Jacek's birthday
}[/syntax]
![Laughing :lol:](./images/smilies/icon_lol.gif)
- Sun Dec 09, 2012 9:59 pm
- Forum: PHP
- Topic: Restrict functions file?
- Replies: 2
- Views: 705
Re: Restrict functions file?
That's what I was thinking, but couldn't find anything on it. Ty ![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)