Be Excellent To Each Other

And, you know, party on. Dude.

All times are UTC [ DST ]




Reply to topic  [ 89 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 12:38 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
5 is a fair bit quicker, and the only main difference I found is that date/time fields now need you to specify DATE = '0000-00-00 00:00:00' rather than DATE = '' if you want 'date not set'.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 12:49 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
Grim... wrote:
5 is a fair bit quicker, and the only main difference I found is that date/time fields now need you to specify DATE = '0000-00-00 00:00:00' rather than DATE = '' if you want 'date not set'.

Just checked, I *do* have a 'click here to upgrade to mySQL 5' button, but it makes me nervous.

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 12:51 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
CLICK IT

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 12:53 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
*screams*

edit:

Updating "MySQL® Version" from "4.1" to "5.0".
MySQL version update occurring in background. This process can take up to 10 minutes to complete.

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 13:01 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
Haahaa, you'll have 60+ customers on the phone inside the next 20 minutes. GRIM... FOOLED YOU GOOD BOY.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 13:04 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
Appears to have gone without a hitch, although I did just do a mega backup of everything known to man, so I was fairly safe eitherway ;)

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 13:05 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
Yeah, man. For starters, all MySQL 5 queries have to be written in French.
Code:
CHOISESSEZ * PARMI my_table OÚ age > 18 ORDRE PRÉS id

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 13:09 
User avatar
Excellent Member

Joined: 30th Mar, 2008
Posts: 5924
Location: Stockport - The Jewel in the Ring
That has just made me laugh far too much.

_________________
Mint To Be Stationery - Looking for a Secret Santa gift? Try our online shops at Mint To Be.

Book me in the Face | Tweet me. Tweet me like a British nanny.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 13:10 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
J'ai juste été ram pillée dans les fesses :spew:

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 20:14 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
Damn you Grim... damn you.

I just noticed one of my sites had bust, some php claiming an invalid query result set where before there was no problem. I just had a look and couldn't work it out because the query appeared perfectly valid.

Then it hit me - I have a field in a table called 'condition'. Turns out 'condition' is a reserved word in mysql 5.0. Booooo!

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 22:27 
User avatar

Joined: 30th Mar, 2008
Posts: 14367
Location: Shropshire, UK
And that, dear friends, is why you should always put backticks around table and field names in SQL queries.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 22:30 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
:spew:

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 02, 2008 22:51 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
GazChap wrote:
And that, dear friends, is why you should always put backticks around table and field names in SQL queries.

Also,
Image


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 03, 2008 10:07 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
PHP version 5.2.5
MySQL version 5.0.45-community

I HOPE YOU'RE HAPPY NOW

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:01 
User avatar

Joined: 30th Mar, 2008
Posts: 2053
you know these forums you host yourself (ie - this one).

I take it SQL is a basic requirement for these right?

Also, is phpBB generally better than Simple Machines?

_________________
PlayStation Country


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:02 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
Yes, you'll need some sort of database (PHPBB can run with most types of database, but MySQL is the most common).
Simple Machines? Never heard of it.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:06 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
Bluce_Ree wrote:
you know these forums you host yourself (ie - this one).

I take it SQL is a basic requirement for these right?

Also, is phpBB generally better than Simple Machines?

Dude I've already plugged my own services, what are you waiting for? ;)

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:12 
User avatar
lazy eye patch

Joined: 27th Mar, 2008
Posts: 3955
Location: Telford, UK
From what I was able to make out, phpBB is a far more 'established' forum - it's older, gets regular real-world pounding, and is all comprehensive and stuff. Simple Machines is the brash young rookie who so far has done nothing wrong, has taken its knocks without a fuss, and is catching the eye of many a young forum-fancier.

_________________
Photographs


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:13 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
The admin section of PHPBB is pretty complicated.
Again, I can't compare it to Simple Machines.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:14 
User avatar

Joined: 30th Mar, 2008
Posts: 14367
Location: Shropshire, UK
phpBB also has a pretty fuckin' lax security record, I wouldn't trust it.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:16 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
That's what it gets for being the most popular, though. PHPBB3 is greatly improved, though (apparently).

[edit]And, er... You're trusting it right now.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:19 
SupaMod
User avatar
Commander-in-Cheese

Joined: 30th Mar, 2008
Posts: 49244
Grim... wrote:
The admin section of PHPBB is pretty complicated.


Oh hell, yes.

_________________
GoddessJasmine wrote:
Drunk, pulled Craster's pork, waiting for brdyime story,reading nuts. Xz


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:31 
User avatar
Comfortably Dumb

Joined: 30th Mar, 2008
Posts: 12034
Location: Sunny Stoke
Grim... wrote:
That's what it gets for being the most popular, though. PHPBB3 is greatly improved, though (apparently).


Yeah, I imagine that phpbb, Invision and Vbulletin are the biggest targets for hackers but it also means that there are more people ready to plug the holes when they appear. I think I used Simple Machines initially on my site but I use Fireboard now but only because its a native Joomla component, otherwise I'd be using phpbb myself.

_________________
Consolemad | Under Logic
Curse, the day is long
Realise you don't belong


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Tue Jun 10, 2008 11:32 
User avatar

Joined: 30th Mar, 2008
Posts: 14367
Location: Shropshire, UK
Grim... wrote:
[edit]And, er... You're trusting it right now.

Yeah, but if someone hacks into BeEx through a phpBB security flaw, I couldn't give a shit ;) Not my servers, son ;)


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 0:56 
User avatar

Joined: 30th Mar, 2008
Posts: 2053
hey chaps,

I've got SQL up and running (one database for my new forum, one ready for 'content'). All the tutorials start with you installing it locally as if your machine was a webserver or something but that's okay.

What's confusing me though is the php side of things. Specifically, they talk about making a connection to the SQL database from a php page which is fine except wouldn't it be incredibly easy to just view the source of that php page and suddenly know all my connection details and thus kill my database if they wanted to?

What's the really obvious stupid thing I'm missing here?

(any help = lots of love from me)

_________________
PlayStation Country


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 0:57 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
Bluce_Ree wrote:
What's the really obvious stupid thing I'm missing here?

You can't view the source of a PHP page*. Try it with this one - no PHP anywhere.


*Okay, technically it's possible, but only if your apache is set up wrong and isn't actually running the pages as PHP. But you'd realise pretty quickly, because all you'd get is a page of script.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 1:08 
User avatar

Joined: 30th Mar, 2008
Posts: 2053
Grim... wrote:
Bluce_Ree wrote:
What's the really obvious stupid thing I'm missing here?

You can't view the source of a PHP page*. Try it with this one - no PHP anywhere.


That sounds like MAGIC but I trust you implicitly Mr Grim.

Thanks, I might actually make some progress on this now.

(possibly!)

_________________
PlayStation Country


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 1:13 
User avatar

Joined: 27th Mar, 2008
Posts: 14497
HEY CHUM. I've completely skipped this whole thread, but I'm going to be setting something very similar up soon, in WordPress. If you would consider switching PEOWW over to WP (although I like the style as is), there's this extremely handy bit of malarky all ready to plug straight in;

http://www.channel-ai.com/blog/plugins/star-rating/

Scroll down to see a table exactly like what you want.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 1:21 
User avatar

Joined: 30th Mar, 2008
Posts: 2053
jonarob wrote:
HEY CHUM. I've completely skipped this whole thread, but I'm going to be setting something very similar up soon, in WordPress. If you would consider switching PEOWW over to WP (although I like the style as is), there's this extremely handy bit of malarky all ready to plug straight in;

http://www.channel-ai.com/blog/plugins/star-rating/

Scroll down to see a table exactly like what you want.


i'm going to bed now but I shall investigate WP and the link thoroughly instead of doing any work tomorrow!

thanks!

_________________
PlayStation Country


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 1:51 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
Bluce_Ree wrote:
That sounds like MAGIC but I trust you implicitly Mr Grim.

Good good.
It's not magic - PHP is a server side scripting language. It does all it's calculation on the server, then outputs the HTML to the client (ie. user), so the client only ever sees the HTML.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 13:58 
User avatar

Joined: 30th Mar, 2008
Posts: 2053
Jonarob, I've been having a look at things. I see it was mentioned over at WOS that Wordpress isnt too reliable in heavy traffic situations.

Also, I write for a site that uses CCMS, a content manager thing specifically for gaming websites, which looks good (but isn't free) but they are looking to switch to Joomla.

ARGH!

So I'm torn between trying to do it all myself, using WP or using a Joomla or some other CMS. erk!

_________________
PlayStation Country


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 14:21 
User avatar

Joined: 30th Mar, 2008
Posts: 32624
Bluce_Ree wrote:
Jonarob, I've been having a look at things. I see it was mentioned over at WOS that Wordpress isnt too reliable in heavy traffic situations.
Not by itself, but there is a free plugin to solve that issue: wp-cache.

Quote:
So I'm torn between trying to do it all myself, using WP or using a Joomla or some other CMS. erk!
Better add Drupal to your list if you are looking at free CMSs!


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 15:48 
User avatar
Comfortably Dumb

Joined: 30th Mar, 2008
Posts: 12034
Location: Sunny Stoke
Bluce_Ree wrote:
So I'm torn between trying to do it all myself, using WP or using a Joomla or some other CMS. erk!


Personally, I wouldn't attempt doing it myself when there's already a good choice of other stuff around. Plus if there is a big enough userbase, you'll find a host of useful add-ons (and not-so-useful - unless you want to display the weather in Estonia for example) should you need them

_________________
Consolemad | Under Logic
Curse, the day is long
Realise you don't belong


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 15:52 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
devilman wrote:
Bluce_Ree wrote:
So I'm torn between trying to do it all myself, using WP or using a Joomla or some other CMS. erk!


Personally, I wouldn't attempt doing it myself when there's already a good choice of other stuff around.


Ah, but if I'd have had that attitude six years ago I'd be digging up the M1 with a JCB right now.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 16:02 

Joined: 30th Mar, 2008
Posts: 8679
As opposed to digging it up with your landie.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 16:03 
SupaMod
User avatar
Est. 1978

Joined: 27th Mar, 2008
Posts: 69713
Location: Your Mum
Dudley wrote:
As opposed to digging it up with your landie.

Fuck yeah.

_________________
Grim... wrote:
I wish Craster had left some girls for the rest of us.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 16:40 
User avatar
Comfortably Dumb

Joined: 30th Mar, 2008
Posts: 12034
Location: Sunny Stoke
Grim... wrote:
devilman wrote:
Bluce_Ree wrote:
So I'm torn between trying to do it all myself, using WP or using a Joomla or some other CMS. erk!


Personally, I wouldn't attempt doing it myself when there's already a good choice of other stuff around.


Ah, but if I'd have had that attitude six years ago I'd be digging up the M1 with a JCB right now.


Oh yeah, sometimes it's better to learn it for yourself - even with my amateurish php skills I've knocked up a few things that this company now use regularly but with content management, everyone seems to have had a go so to me it makes sense to go with something that has already had shedloads of development thrown at it.

_________________
Consolemad | Under Logic
Curse, the day is long
Realise you don't belong


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 19:21 
User avatar

Joined: 27th Mar, 2008
Posts: 14497
Aye, the number of things you can tack onto WP is fucking awesome.


Top
 Profile  
 
 Post subject: Re: Websites with databases
PostPosted: Mon Jun 30, 2008 19:23 
User avatar
Legendary Boogeyman

Joined: 22nd Dec, 2010
Posts: 8175
I'm now putting that cache thing onto mine that The Gaywood suggested. It might prove handy if anyone actually cares to look at the blog this month. I'll be relying on you all to spam the URL in places where it'll get loads of interest and thus make me loads of money. :hat:

_________________
Mr Kissyfur wrote:
Pretty much everyone agrees with Gnomes, really, it's just some are too right on to admit it. :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Reply to topic  [ 89 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: Columbo, markg and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search within this thread:
You are using the 'Ted' forum. Bill doesn't really exist any more. Bogus!
Want to help out with the hosting / advertising costs? That's very nice of you.
Are you on a mobile phone? Try http://beex.co.uk/m/
RIP, Owen. RIP, MrC. RIP, Dimmers.

Powered by a very Grim... version of phpBB © 2000, 2002, 2005, 2007 phpBB Group.