This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-05-17 22:42:21

Raven14
Scratcher
Registered: 2009-06-04
Posts: 25

Scratch Website Queries?!?

Someone posted this on my project

"why did it say this as a comment: 14 queries took 21 ms Nr    Query    Error    Affected Num. rows    Took (ms) 1    SELECT `Pcomment`.`project_id` FROM `pcomments` AS `Pcomment` WHERE `Pcomment`.`id` = 4115659 LIMIT 1     1    1    0 2    SELECT `Project`.`user_id`, `Project`.`locked` FROM `projects` AS `Project` WHERE `Project`.`id` = 1030499 LIMIT 1     1    1    0 3    SELECT `Pcomment`.*, `User`.`id`, `User`.`username`, `User`.`urlname`, `User`.`role`, `User`.`timestamp` FROM `pcomments` AS `Pcomment` LEFT JOIN `users` AS `User`"

Ok so im guessing that is your mysql queries to the database to fetch comments. This doesn't sound secure if someone just saw this- I mean If i knew your password I could hack the databases!

Unless this person is lying but this is so detailed.

Offline

 

#2 2010-05-17 22:49:49

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Scratch Website Queries?!?

Was there a username above the comment, or do you think it was a bug?

Offline

 

#3 2010-05-18 08:45:53

Raven14
Scratcher
Registered: 2009-06-04
Posts: 25

Re: Scratch Website Queries?!?

I did not see it. A person commenting on my project did, Im guessing they loaded the page and this was in PLACE of a comment. Really weird tho, I think it was a bug. It does say query error but that is one sucky way to mysql_error it by echoing out all your queries I mean imagine if it echoed the DB name.


*I've never seen the "AS" query before lol

Offline

 

#4 2010-05-18 13:30:48

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: Scratch Website Queries?!?

That is really odd. Maybe they were just doing some work on the database at the moment.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#5 2010-05-18 15:27:37

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: Scratch Website Queries?!?

fullmoon wrote:

That is really odd. Maybe they were just doing some work on the database at the moment.

I completely agree. It was probably just a little bit of a temporary bug - maybe the browser didn't load the page properly (although that's really unlikely, considering MySQL queries are done on the Server's end of things) - so I'm guessing it was just a bit of database maintenence, like Fullmoon said. Or maybe their servers are messing up - uh-oh!

Offline

 

#6 2010-05-18 22:27:31

Raven14
Scratcher
Registered: 2009-06-04
Posts: 25

Re: Scratch Website Queries?!?

That is really weird because like you said PHP is all server sided so....it must be deliberately echoing it out. I mean, it HAS to be right?!

But w/e
Someone from the Scratch Team should fill us in ;D

Offline

 

Board footer