Jump to content

whitedragon101

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by whitedragon101

  1. I got this reply back on another forum Would this not be secure? They would have to know the page address and then crack a long password. Isn't that what would be required to break the ssh? i.e know the port then brute force the secret key. If the index was disabled on htaccess wouldn't the page address have to be brute forced as well? e.g www.mywebsite.com/ri13t673gr672tf762g7676f2i37fggreg23i7f623/index.php (Only asking as this way seems easier, but if its not secure I'll go ssh)
  2. What would you recommend for securing access to phpMyAdmin? I am the developer and need remote access to phpMyAdmin which is on a server in another country (a linux machine with a LAMP stack at the owners office). At the moment for development it's just an internet accessible url and a username and password. a) restrict access to phpMyAdmin to localhost and ssh into the server to get access b) Allow access via an internet url and use 2 factor authentication (probably Google Authenticator) c) keep it as username and password with public url and use a crazy long password to protect against brute force
  3. Don't want to code a forum from scratch for no reason. Just wondered if anyone had any particular recommendations for what forum they prefer to use.
  4. Hi, I have finished a webshop (coded in php, Javascript, MySQL) for a client and they want to add a Forum . Does anyone have any recommendations for a free forum I can just drop in with minimal setup ? In an ideal world it would be good if it used MySQL so I can create a forum account at the same time they create their customer account, but its not the end of the world if that's not possible. Many thanks
  5. #1064 - 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 'table3 LEFT JOIN (SELECT lga_id , COUNT(schools.school_id_p) as num_of_scho' at line 15
  6. MYSQL Version : 5.0.91 I have two queries which run fine however when I alias them and left join them I get a syntax error : QUERY_1 SELECT * FROM( (SELECT lga_id , COUNT(school_id_p) as num_of_schools_unapproved FROM schools WHERE EXISTS ( SELECT * FROM orders WHERE approved = 'no' AND schools.school_id_p = orders.school_id) GROUP BY lga_id) AS table1 LEFT JOIN (SELECT lga_id_p, name FROM lga) AS table2 ON table1.lga_id = table2.lga_id_p ) produces: lga_id num_of_schools_unapproved lga_id_p name 2 2 2 lga_name2 4 1 4 lga_name4 5 1 5 lga_name which is correct QUERY_2 SELECT lga_id , COUNT(schools.school_id_p) as num_of_schools FROM schools GROUP BY lga_id produces : lga_id num_of_schools 1 5 2 5 3 5 4 5 5 5 6 3 7 2 which is correct. However when I try to call them table3 and table 4 and do a LEFT JOIN on the lga_id I get a syntax error. Any help much appreciated : SELECT * FROM( SELECT * FROM( (SELECT lga_id , COUNT(school_id_p) as num_of_schools_unapproved FROM schools WHERE EXISTS ( SELECT * FROM orders WHERE approved = 'no' AND schools.school_id_p = orders.school_id) GROUP BY lga_id) AS table1 LEFT JOIN (SELECT lga_id_p, name FROM lga) AS table2 ON table1.lga_id = table2.lga_id_p ) AS table3 LEFT JOIN (SELECT lga_id , COUNT(schools.school_id_p) as num_of_schools FROM schools GROUP BY lga_id) AS table4 ON table3.lga_id = table4.lga_id )
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.