Search found 26 matches

by brisk
Mon Apr 09, 2012 2:42 pm
Forum: General Chat
Topic: Questionnaire feedback on my university project website V2
Replies: 2
Views: 908

Re: Questionnaire feedback on my university project website

I just realised the rating system was only appearing on one post, I fixed this now, should be a lil more obvious!
by brisk
Sun Apr 08, 2012 11:45 pm
Forum: General Chat
Topic: Questionnaire feedback on my university project website V2
Replies: 2
Views: 908

Questionnaire feedback on my university project website V2

Hey guys, I believe everything is working now. Please visit my website: http://www.budgie.richardcmpage.com/ And answer the questionnaire http://www.surveymonkey.com/s/MWXTXPW Thank you for your time and feedback. EDIT - I should mention I entirely self taught myself the languages and this is my fir...
by brisk
Sun Apr 08, 2012 1:14 am
Forum: JavaScript
Topic: How to change a word colour (a link) in navbar when clicked?
Replies: 6
Views: 3498

Re: How to change a word colour (a link) in navbar when clic

Sweet, think i got it working!!

Cheers dude, was really smart thinking there
by brisk
Sun Apr 08, 2012 1:06 am
Forum: JavaScript
Topic: How to change a word colour (a link) in navbar when clicked?
Replies: 6
Views: 3498

Re: How to change a word colour (a link) in navbar when clic

jacek wrote:There must be something that contains the name of the current page ? Maybe $_GET['page'] ? However your template system is set up :?
Yeah I just through of that, I want to know as well...if you go to my site the index.php is not actually in the URL, if i use the get method will it pick it up?
by brisk
Sun Apr 08, 2012 12:58 am
Forum: JavaScript
Topic: How to change a word colour (a link) in navbar when clicked?
Replies: 6
Views: 3498

Re: How to change a word colour (a link) in navbar when clic

I'm confused as to how/what I'd be setting the $page variable as?
by brisk
Sat Apr 07, 2012 9:53 pm
Forum: JavaScript
Topic: How to change a word colour (a link) in navbar when clicked?
Replies: 6
Views: 3498

How to change a word colour (a link) in navbar when clicked?

So I have my navbar: What I want to do is... if the user is on index.php then 'latest post's in the navbar turns red, if the user is on ideas.php then 'ideas' in the navbar turns orange, if the user is on facts.php then 'facts' in the navbar turns yellow. When one of these navbar words changes the c...
by brisk
Mon Mar 26, 2012 2:08 am
Forum: PHP
Topic: Any generic ways of setting users's 'new/latest posts'?
Replies: 3
Views: 810

Re: Any generic ways of setting users's 'new/latest posts'?

i'm just guessing here… in the `users` table have a column like "time last visited", so every time a user signs out or whatever it gets updated. then when the user logs back in and checks out the newest posts, have it display every post that was entered from the time in the database and t...
by brisk
Mon Mar 26, 2012 1:07 am
Forum: PHP
Topic: Any generic ways of setting users's 'new/latest posts'?
Replies: 3
Views: 810

Any generic ways of setting users's 'new/latest posts'?

I have a feed showing the latest posts ordered by Time but i want to integrate some function that just displays a yellow star or something showing the newest posts since the user last visited. Also if 2 posts have the exact same time how does php decide which one goes first? Is this hard to implemen...
by brisk
Sun Mar 25, 2012 3:54 pm
Forum: PHP
Topic: How to insert a table column value into another table column
Replies: 4
Views: 813

Re: How to insert a table column value into another table co

Temor wrote:the function mysql_insert_id() returns the last inserted ID. Maybe that's what you're looking for?

http://php.net/manual/en/function.mysql-insert-id.php
YESYYESYSEYSEYSESEYES THAT'S IT, IT WORKS!!!

OMG THANKS!!!
by brisk
Sun Mar 25, 2012 2:59 pm
Forum: PHP
Topic: How to insert a table column value into another table column
Replies: 4
Views: 813

How to insert a table column value into another table column

Feel like this so bloody easy but I can't figure it out :-S So I have a submit button which gives a couple of columns some data but then the ID column is left alone as it is auto incremented. However I then need a statement after taking that automatic incremented ID column value and put it in anothe...
by brisk
Wed Mar 21, 2012 2:52 pm
Forum: Tutorials
Topic: Where is tut regarding users only being able to vote once?
Replies: 3
Views: 934

Re: Where is tut regarding users only being able to vote onc

jacek wrote:I guess I never got around to it ;)
Get on it Jacek! You the man ;)
by brisk
Wed Mar 21, 2012 2:22 pm
Forum: Tutorials
Topic: Where is tut regarding users only being able to vote once?
Replies: 3
Views: 934

Where is tut regarding users only being able to vote once?

PHP Tutorial: Simple Rating / Voting System

The end of this tutorial series you say there will be a bit integrating a user system so users an only vote once? This is really crucial and would love to know how to do it as I can't quite figure it out?

Peace

Ed
by brisk
Mon Mar 05, 2012 5:25 pm
Forum: CSS / Styling
Topic: Is it possible to draw this shape in css?
Replies: 3
Views: 2449

Re: Is it possible to draw this shape in css?

thank you thank you
by brisk
Mon Mar 05, 2012 2:00 pm
Forum: CSS / Styling
Topic: Is it possible to draw this shape in css?
Replies: 3
Views: 2449

Is it possible to draw this shape in css?

Example - http://www.budgie.richardcmpage.com/Images/IDEA2.png

Like the rectangle with another tab type bit? Or can another language do it?

I would like to try and avoid using an image-bg.
by brisk
Fri Feb 17, 2012 5:28 pm
Forum: CSS / Styling
Topic: SPAN is adding spaces in front of text?
Replies: 3
Views: 2443

Re: SPAN is adding spaces in front of text?

jacek wrote:You have a space before the opening <?php ;)
I solved it, I had a random generic SPAN tag in my css already with a margin-left lol
by brisk
Wed Feb 15, 2012 1:25 pm
Forum: CSS / Styling
Topic: SPAN is adding spaces in front of text?
Replies: 3
Views: 2443

SPAN is adding spaces in front of text?

The span seems to be adding a few spaces in front of the text. This is an example of one of my lines <p class='article_title'> <?php echo str_replace($keyword,'<span class="highlight">'.$keyword.'</span>',$headline); ?> </p> and if yo see in the image below.. http://img850.imageshack.us/im...
by brisk
Mon Feb 13, 2012 3:32 pm
Forum: SQL
Topic: WHERE/OR
Replies: 8
Views: 4264

Re: WHERE/OR

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\budgie\Organised2\functions\functions.php on line 486 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`idea` `quot...
by brisk
Mon Feb 13, 2012 3:11 pm
Forum: SQL
Topic: WHERE/OR
Replies: 8
Views: 4264

Re: WHERE/OR

Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\budgie\Organised2\functions\functions.php on line 486 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '`idea` `quote...
by brisk
Mon Feb 13, 2012 1:17 am
Forum: SQL
Topic: WHERE/OR
Replies: 8
Views: 4264

Re: WHERE/OR

implode("%' OR `idea LIKE '%", $keywords) You missed a ` after idea. Hard to spot ! Wow nice one, sorry for that. It's still not working :( Getting same error. Screen shot of my table: http://img15.imageshack.us/img15/1024/13286720.png http://img15.imageshack.us/img15/1024/13286720.png
by brisk
Mon Feb 13, 2012 1:10 am
Forum: SQL
Topic: WHERE/OR
Replies: 8
Views: 4264

Re: WHERE/OR

You should be able to OR, OR, OR, OR, OR ye[ try adding echo mysql_error(); after the failed query and see if it tells you what is wrong. I'm getting the "Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given" error. I can assure you each column has the word 'gree...
by brisk
Mon Feb 13, 2012 12:12 am
Forum: SQL
Topic: WHERE/OR
Replies: 8
Views: 4264

WHERE/OR

Hey guys

In the tutorial there is (using my column/table names):
FROM threads
			WHERE {$fact_where}
			OR  {$quote_where}
			
But I have about 8+ columns, so how do I do the OR bit? I tried WHERE, OR, OR, OR but it doesn't work so what is the correct syntax?

Thanks

Ed