Jump to content

gw1500se

Members
  • Content count

    12
  • Joined

  • Last visited

  • Days Won

    1

gw1500se last won the day on December 6

gw1500se had the most liked content!

Community Reputation

2 Neutral

About gw1500se

  • Rank
    Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. gw1500se

    ^= means what in PHP language?

    Oops. Apologies. I misread the syntax.
  2. gw1500se

    ^= means what in PHP language?

    Syntax error.
  3. Oops. I forgot that. I stand corrected.
  4. You will be executing the print before you even display the page the first time. I'm assuming ' campus_test_form.php ' is this page. You need to put that in an if block. <?php if (isset($_GET)) { print_r($_GET); echo '<p>Hello World</p>'; /* You may want different html after the submit */ } else { ?> <!-- Your initial html code here --> <?php } ?>
  5. gw1500se

    mysqli affected rows not working with INSERT

    You are missing the point. The PHP script is working with respect to MySQL. But it is not outputting a valid HTML page that the C++ code can interpret. I highly suspect that is what the -11 is trying to tell you.
  6. gw1500se

    mysqli affected rows not working with INSERT

    You need to look at the HTML source being returned by the PHP script to the C++ code. If it is blank or just -1 or 0 then the headers are not being output and that is why the C++ code cannot interpret it. Thus, perhaps, the -11.
  7. gw1500se

    mysqli affected rows not working with INSERT

    My C++ is very rusty but the response codes are not coming from the PHP script per se. I think you need to investigate the C++ code. It obviously not really outputting what comes back from the PHP script. The -11 may mean it cannot properly interpret what comes back. If it is expecting HTML in return you may have some headers messed up in the PHP script. Keep in mind that nothing, not even white space can be output before headers.
  8. gw1500se

    mysqli affected rows not working with INSERT

    That method returns an integer. If it is returning a "blank" then something is interfering with the myslqi calls. Is there a call-back function somewhere?
  9. gw1500se

    mysqli affected rows not working with INSERT

    I agree with requinix. Where is that error coming from? To what "monitor" are you referring? It looks like you may not have posted all your code.
  10. gw1500se

    mysqli affected rows not working with INSERT

    Also I see the OP is not using prepared statements.
  11. gw1500se

    save HTTP Post headers to MySQL

    This article should get you going.
  12. gw1500se

    $_SERVER

    I think this is what you are requesting: $full_url = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
×

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.