Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9136631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:58:41+00:00 2026-06-17T08:58:41+00:00

HI I am sending a username to my php file located on the server

  • 0

HI I am sending a username to my php file located on the server to check if the username exists in my database. If it does I want to send back a response which contains only “False”, or else it will send back “True”.

Here is my php code:

<?php

$username = $_POST['username'];
$password = $_POST['passsword'];
$email = $_POST['email'];

mysql_connect(//server name, server_admin, server_password) or die(mysql_error());
mysql_select_db("a1754417_word") or die (mysql_error());

$result = mysql_query("SELECT username FROM Users WHERE username = '$username'");

if(mysql_num_rows($result) != 0){
  echo mysql_num_rows;
  echo "False"; 
}else{
  echo "True";
}
?>

Here is my output from Logcat

01-13 03:16:34.606: I/Response 'False'(791): True
01-13 03:16:34.606: I/Response 'False'(791): <!-- Hosting24 Analytics Code -->
01-13 03:16:34.606: I/Response 'False'(791): <script type="text/javascript" src="http://stats.hosting24.com/count.php"></script>
01-13 03:16:34.606: I/Response 'False'(791): <!-- End Of Analytics Code -->

My code is sending back “True” correctly but it is also sending the extra information why?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T08:58:42+00:00Added an answer on June 17, 2026 at 8:58 am

    It seems, that your hoster has configured the server to append some analytics stuff. If you cannot disable it somewhere in a control panel, you might need to switch to a more reputable hoster. You could also try to modify the header with header() to get rid of this:

    Also, have a look at this question:

    Webhoster inserts a javascript which brokes my code how to remove it?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I sending ajax request from a jQuery file like below, which expects response in
I'm sending myself a text message using PHP mail() and it says FRM: username@myftpaddress.com
I'm sending data via Jquery Ajax post, I want to send the text box
I'm sending some data by Ajax to a PHP script, which handles registration. I'm
Following snippet should be collecting data and sending it to a php file. It
I am developing php application in which i am querying database and the generated
So there is a PHP file where I'm sending an array to my android
I have a registration form if username does not exist in database then it
Sending XML from C# Server and receiving it it in Android Java client This
Im sending (with ASIFormDataRequest) a POST request, with 4 parameters. The server launches a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.