530 Error on my PHP page

I have a weird error on my PHP page

http://si gn go l d.com/n ew/ind ex.php  (remove the spaces)

in firefox i get a pop up telling me "530 in correct login"

the php code on that page looks like this:

$link = mysql_connect("", "", "") OR DIE("Unable to connect to the database");
$sqlc = "select * from hometext";
$rsc  = mysql_query($sqlc) or die(mysql_error());
$rowc  =  mysql_fetch_array($rsc);
$hometext = $rowc['hometext'];
        <span class="style4"><? echo $sValue = stripslashes($hometext); ?></span></p>

The username and password are correct because it pulls the text in from the database. Any idea what is going on?
Who is Participating?
ee_autoConnect With a Mentor Commented:
Question PAQ'd, 500 points refunded, and stored in the solution database.
Bernard S.Commented:
1 - Can you paste the precise error message? It should give the line nulber of the php script...

2 - Is your script starting with <?php withihout any spave or empty line before?

3 - Not sure which fields are in your table 'hometext' in addition to field 'hometext' (same name for field and table, right?)
Just in case, could you replace the line
$sqlc = "select * from hometext";
$sqlc = "select hometext.hometext from hometext";
$debug=true; // easy to change
if ($debug) { echo "query is |$sqlc| -- "; }

lvollmerAuthor Commented:
its a pop up window that comes up stating:

530 Login Incorrect

Then I press OK - if you copy and paste the link and remove the spaces you will see what i am talking about.

I will try the solution you provided
Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

lvollmerAuthor Commented:
the result comes up as

query is |select hometext.hometext from hometext| --
lvollmerAuthor Commented:
nevermind i found the error, the user was coding ftp info into the CMS. sorry.
Bernard S.Commented:
Dont't forget closing the question, eg allocating (back) the points to your answer
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.