Windows 10: php redirect problem

Discus and support php redirect problem in Windows 10 Software and Apps to solve the problem; Guys, what am I doing wrong? The database "expiry" value is > 0 but I go to expiredpage.html. ========================================================... Discussion in 'Windows 10 Software and Apps' started by 1Tsme1941, Apr 10, 2022.

  1. 1Tsme1941 Win User

    php redirect problem


    Guys, what am I doing wrong? The database "expiry" value is > 0 but I go to expiredpage.html.
    ========================================================
    the code:

    <?php
    $link = mysqli_connect("localhost", "root", "", "numbersdb");
    // Check connection
    if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); }

    echo "<center>";echo date('m/d/y');echo "<br />";

    $id='id';
    $expiry='expiry';

    if($expiry==7) {echo "1 week remaining on contract<br />";}
    if($expiry==1)...

    Read more
     
    1Tsme1941, Apr 10, 2022
    #1
  2. caleb Win User

    PHP homework

    If you are looking for a way to redirect I think it was header() in PHP or window.location() in js.
    PHP: header - Manual
     
    caleb, Apr 10, 2022
    #2
  3. simrick Win User
    Google redirection localhost.world


    Guys, here is the solution, found in post #49.
    Please perform the steps indicated and advise if that resolves things for you as well.

    Many thanks to @moraleja39 for the investigative work!
     
    simrick, Apr 10, 2022
    #3
Thema:

php redirect problem

Loading...
  1. php redirect problem - Similar Threads - php redirect problem

  2. html and php

    in Windows 10 Gaming
    html and php: Hi, samplefacebook, i want to login in my account variables: url, mail and password via html and php. Thank youpic https://answers.microsoft.com/en-us/windows/forum/all/html-and-php/9c65b520-fac6-49e4-bc70-c4c8e6a36aa8
  3. html and php

    in Windows 10 Software and Apps
    html and php: Hi, samplefacebook, i want to login in my account variables: url, mail and password via html and php. Thank youpic https://answers.microsoft.com/en-us/windows/forum/all/html-and-php/9c65b520-fac6-49e4-bc70-c4c8e6a36aa8
  4. html and php

    in Windows 10 Network and Sharing
    html and php: Hi, samplefacebook, i want to login in my account variables: url, mail and password via html and php. Thank youpic https://answers.microsoft.com/en-us/windows/forum/all/html-and-php/9c65b520-fac6-49e4-bc70-c4c8e6a36aa8
  5. PHP

    in Windows 10 BSOD Crashes and Debugging
    PHP: Hiwon't let me send an email that says I need a PHP server what does that mean?Thank you https://answers.microsoft.com/en-us/windows/forum/all/php/4e99d17f-a423-44d3-9387-2ae3f8f13083
  6. php ini.Mcrypt PHP extension required.

    in Windows 10 Drivers and Hardware
    php ini.Mcrypt PHP extension required.: Where can I find my php ini. on windows 10 to enable or install it? https://answers.microsoft.com/en-us/windows/forum/all/php-inimcrypt-php-extension-required/69c7f857-a936-4097-9e31-6b00ab344ed2
  7. php location

    in Windows 10 Software and Apps
    php location: I want to go to a different page depending on different if results but don't know the correct syntax;as in: if (count == 1) { echo 'look at these cars';} go to page1.php elseif (count == 2) { echo 'look at these cars';} go to page2.php
  8. php not working?

    in Windows 10 Software and Apps
    php not working?: Hi, I just loaded new os (windows7 proessional) to my machine along with later version of xampp and when I run php files I get php code I could use some advice. thanks! here is the code: <html><body> <hr> <center><b><font size=+2> 515 Certification Expiration...
  9. Redirect a system file problem

    in Windows 10 Support
    Redirect a system file problem: First post here for me - have lurked and used many tips over the years. I'm setting up a new computer with Win 10 Pro pre-installed (version 1903 Build 18362.356). It's a Dell Alienware Aurora R9. While changing the location of some of the system folders in my primary User...
  10. update to php?

    in Windows 10 Software and Apps
    update to php?: Trying to update our html website ubertool.org to a php platform does web4 work for this or I have also been recommended Wordpress. Or does anyone have any experience or recommend using this Azure?...