Search found 26 matches

by Browny
Mon Sep 24, 2012 2:04 pm
Forum: PHP coding => General
Topic: Combine the Arrays
Replies: 1
Views: 409

Combine the Arrays

Hey Guys, Yesterday i had got this feature to a working standard but the problem that i had that it wasn't very good in terms of usability. Originally, the manager would have the option to click a '+' button in which it would create a drop-dow list. This would allow the user to pick the players who ...
by Browny
Sun Sep 23, 2012 6:15 pm
Forum: PHP coding => General
Topic: PHP Array Help
Replies: 1
Views: 314

PHP Array Help

Hello, I've got this array which has multiple duplicates. The code below works out the if there are any duplicate names and assigns the number of duplicates next to the name. $goal_scorers = array('Joe Bloggs', 'Joe Bloggs', 'Dan Carter'); $new_array = array(); foreach ($goal_scorers as $key => $val...
by Browny
Wed Sep 05, 2012 5:11 pm
Forum: PHP coding => General
Topic: PHP Function Help
Replies: 1
Views: 236

Re: PHP Function Help

Would this be appropriate? function teamcolor($color, $injured) { if ($injured == '1') { echo "<div style='height: 100%; width: 3px; background-color: red;'>"; } else if ($color == 'Senior As') { echo "<div style='height: 100%; width: 3px; background-color: #DDAB5B;'>"; } else if ($color == 'Senior ...
by Browny
Wed Sep 05, 2012 4:51 pm
Forum: PHP coding => General
Topic: PHP Function Help
Replies: 1
Views: 236

PHP Function Help

Hey Guys, I have just created a function where it determines a team color for their profile. Take a look at the photo for an example. This shows their team color next to their names. What im trying to do now is to determine of this player is injured or not. If the player is injured it will replace t...
by Browny
Tue Sep 04, 2012 3:29 pm
Forum: PHP coding => General
Topic: Select from 2 tables
Replies: 1
Views: 173

Select from 2 tables

Hey Guys, I originally had one table that was called users, which contained both the players and managers of my application. I now want to create separate tables for both managers and players. When i went to change my code from this: function login($email, $password) { $query = mysql_query("SELECT C...
by Browny
Sat Sep 01, 2012 2:07 pm
Forum: PHP coding => General
Topic: PHP/jQuery Validation
Replies: 3
Views: 356

Re: PHP/jQuery Validation

Thanks for reply. With the above code that you provided i'm getting this message:

Parse error: syntax error, unexpected T_IF in /Users/Tim/Sites/2012MP/check_email.php on line 7

Im still concerned about whether or not the remote jquery validation works with localhost aswell?
by Browny
Sat Sep 01, 2012 5:08 am
Forum: PHP coding => General
Topic: PHP/jQuery Validation
Replies: 3
Views: 356

PHP/jQuery Validation

Hey Guys, For the last couple of hours i have been playing around with ajax and this validation. I used this tutorial: http://www.opencoder.co.uk/2010/07/jquery-remote-form-validation/ Everything was working until i tried to replace the php and connect it to my database. This is what works using the...
by Browny
Fri Aug 31, 2012 6:12 pm
Forum: PHP coding => General
Topic: PHP/Jquery Form
Replies: 5
Views: 639

Re: PHP/Jquery Form

Your brackets and if .. else statements don't match up. I've matched them up here, just to give you an idea of what they could look like. Not sure if this is what you're going for though if(isset($_POST['tripleplay'])) { $email = trim($_POST['email']); $errors = array(); if (empty($_POST['email']))...
by Browny
Fri Aug 31, 2012 5:02 am
Forum: PHP coding => General
Topic: PHP/Jquery Form
Replies: 5
Views: 639

Re: PHP/Jquery Form

Thanks for your replys guys.

Much appreciated!
by Browny
Fri Aug 31, 2012 4:06 am
Forum: PHP coding => General
Topic: PHP/Jquery Form
Replies: 5
Views: 639

PHP/Jquery Form

Hey Guys, Ok im working on this jquery modal dialogue which contains a form inside. I found a good tutorial http://www.askaboutphp.com/213/php-and-jquery-submit-a-form-without-refreshing-the-page.html that has assisted me. Originally, i was having trouble when pressing submit and it would just close...
by Browny
Mon Aug 27, 2012 3:35 pm
Forum: JavaScript
Topic: Multiple Scrollbars within Tabs
Replies: 0
Views: 882

Multiple Scrollbars within Tabs

I have just implemented this jquery plugin nanoScroller. My work to date: http://jsfiddle.net/tebrown/uXV7c/11/ The trouble i am having at the moment is creating more than one scroll bar within 3 tabs. The first tabs works fine, although when you go to the next tab, it doesn't show. Ideally i would ...
by Browny
Wed Aug 08, 2012 2:46 pm
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3451

Re: CSS Problem (jsFiddle Provided)

Thanks for your reply,

Is there anyway I could hide the scrollbar of the content but still do the same effect of actually scrolling? - Ideally the user would just use his middle mouse scroller to scroll the content, if you know what i mean?

CHeers
by Browny
Tue Aug 07, 2012 3:57 pm
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3451

Re: CSS Problem (jsFiddle Provided)

Ok i have made a couple of changes.

http://jsfiddle.net/tebrown/87g2X/3/

Try open the result as far as you can, in my browser (localhost) it does center now, although i cant seem to scroll now with the placeholder text?
by Browny
Tue Aug 07, 2012 4:21 am
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3451

Re: CSS Problem (jsFiddle Provided)

Thanks for the reply. I see what you mean, i think im going to get really confused doing this. Would your option take long to fix from the jsFiddle that was provided. This reason being is because this feature has been the hardest part and this is all i need done before i can move on and start my php...
by Browny
Tue Aug 07, 2012 12:37 am
Forum: CSS
Topic: Scrollbar Problem
Replies: 0
Views: 1135

Scrollbar Problem

Hey, Below is the link to jsFiddle, which shows the code that I am currently stuck with. http://jsfiddle.net/tebrown/3KKZk/ What i am trying to do is make the border-bottom of each name go right to the edge of the div. I then want the scroll bar itself not to be right up against the right hand side ...
by Browny
Mon Aug 06, 2012 1:49 pm
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3451

Re: CSS Problem (jsFiddle Provided)

The purpose of this layout is to be able to scroll the middle section with the 2 side divs staying where they are so a user can just quickly do things. Given this, the 2 sidebars have to stay fixed. Is there any other way around it? - If i change the class (.hidden1) to fixed, then it doesnt push th...
by Browny
Mon Aug 06, 2012 4:08 am
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3451

CSS Problem (jsFiddle Provided)

Hey Guys, Ok this is really annoying me. I have provided a link, which shows the problem i have ran into. Basically when you mouse click the "DROPDOWN" div, another div drops down. This part works fine. The issue that i have is when you scroll down this div goes with the middle content. What i want ...
by Browny
Tue Apr 03, 2012 5:08 pm
Forum: PHP coding => General
Topic: Check Stored Data Help
Replies: 1
Views: 394

Check Stored Data Help

Hey Guys, I have got 3 chained select boxes working. Basically what you do is check for a region with the country, then once you pick a region, you select a club within that region. Once you have selected the club, you can then choose a team from within that club. Screenshot: Screen shot 2012-04-04 ...
by Browny
Fri Mar 23, 2012 1:23 pm
Forum: PHP General
Topic: Login Help
Replies: 11
Views: 865

Re: Login Help

Ah ok cool. Just wanting to make sure it was secure.
by Browny
Fri Mar 23, 2012 12:54 pm
Forum: PHP General
Topic: Login Help
Replies: 11
Views: 865

Re: Login Help

Thanks for your reply guys! I had figured somehow how to fix my problem before i saw your posts but i wanted to know if the one i did is good/secure? It works fine, just wanting to check though in comparison to Dave's one. <?php session_start(); include"database.php"; ?> <html> <head> <title>Login</...
by Browny
Thu Mar 22, 2012 5:23 pm
Forum: PHP General
Topic: Login Help
Replies: 11
Views: 865

Re: Login Help

Ok i've given it another go. Although this code below still doesn't work properly. When i log in and enter a correct email and password, it still shows "You have successfully logged in", it should be saying the error message: "You have not been activated yet!". I must be nearly there.... <?php sessi...
by Browny
Thu Mar 22, 2012 3:22 pm
Forum: PHP General
Topic: Login Help
Replies: 11
Views: 865

Re: Login Help

also you need to secure the username and password before passing them to the database make use of the mysql_real_escape_string command
Could you please expand on that for me, im having trouble playing with it.
by Browny
Thu Mar 22, 2012 2:07 pm
Forum: PHP General
Topic: Login Help
Replies: 11
Views: 865

Login Help

Hey Guys, Im trying to work on my login script after successfully doing my register script. The problem im having trouble is that when i login with false details, it still prompts me with 'You have logged in". Also if the user is not activated it should say "Account has not been activated." Could so...
by Browny
Thu Mar 22, 2012 2:50 am
Forum: PHP General
Topic: Register Problem. Help
Replies: 6
Views: 577

Re: Register Problem. Help

Although sometimes this actually registers the email address wtihout the @hotmail.com

Hmm theres def something wrong here.
by Browny
Thu Mar 22, 2012 2:45 am
Forum: PHP General
Topic: Register Problem. Help
Replies: 6
Views: 577

Re: Register Problem. Help

Yeah i think you could be right there. This is what ive got: <?php include"database.php";?> <html> <head> <title>Register</title> </head> <body> <h1>Register</h1> <form name="register" action="register.php" method="post"> Email: <input type="text" name="email"><br> Password: <input type="password" n...