Jump to content

dianagaby2002

New Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by dianagaby2002

  1. I used the new mysqli syntax because with the mysql version I had errors on local BD and other BD.

    However, when I use mysqli, I have NO errors in local BD, but got errors in the other BD:

    Warning: mysqli_connect(): The server requested authentication method unknown to the client [mysql_old_password], Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given, Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given.
    

    Yup, I have these errors when connected to the OTHER BD, though I use mysqli.

    If it has some importance, the local BD has no password(and user is ROOT), the other BD HAS password.

  2. Old 16 character long password hash?

     

    Did php or mysql get updated?

     

    http://dev.mysql.com/doc/refman/5.7/en/set-password.html

    SET PASSWORD FOR 'username'@'localhost' = PASSWORD('thepassword')

     

    Basically you need to set the password again

     

    You can look in my.cnf and comment out this line, restart the server

    old-passwords = 1

     

    #1133 - Can't find any matching row in the user table 

     

    And I don't have my.cnf file

  3. I've installed XAMPP win32-1.7.0 and I choose other port for Apache than 80(in config files) because 80 is used by other application. Still, when I open in the Browser the index page(the test page) of XAMPP or my page, I see a white page, not even errors.

  4. I want to use a switch.....case like for example:

    <a href="?link=1">Page 1</a>
    <a href="?link=2">Page 2</a>
    <a href="?link=3">Page 3</a>
    
    <?php
    $link = $_GET['link'];
    
    switch($link){
        case 1: $page = "page1.php";
        break;
        
        case 2: $page = "page2.php";
        break;
        
        case 3: $page = "page3/page3.php";
        break;
    }
        
    @include "$page";
      ?>

    will it be hard to process about 800 pages with switch...case?

     

    thank you in advance;)

×
×
  • 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.