Solved

530 Error on my PHP page

Posted on 2008-10-07
7
198 Views
Last Modified: 2013-12-12
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:

            <?php
$link = mysql_connect("", "", "") OR DIE("Unable to connect to the database");
mysql_select_db("db151831259");
$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?
0
Comment
Question by:lvollmer
  • 3
  • 2
7 Comments
 
LVL 29

Expert Comment

by:fibo
ID: 22663975
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";
with
$sqlc = "select hometext.hometext from hometext";
$debug=true; // easy to change
if ($debug) { echo "query is |$sqlc| -- "; }


0
 

Author Comment

by:lvollmer
ID: 22664023
its a pop up window that comes up stating:

Alert:
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
0
 

Author Comment

by:lvollmer
ID: 22664032
the result comes up as

query is |select hometext.hometext from hometext| --
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:lvollmer
ID: 22664088
nevermind i found the error, the user was coding ftp info into the CMS. sorry.
0
 
LVL 29

Expert Comment

by:fibo
ID: 22664433
B-))
Dont't forget closing the question, eg allocating (back) the points to your answer
0
 

Accepted Solution

by:
ee_auto earned 0 total points
ID: 24145719
Question PAQ'd, 500 points refunded, and stored in the solution database.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
calculated column 12 74
PHP Healthcheck 2 85
PHP Undefined Index in HTML Form? 2 32
PHP preg_replace code convert to Delphi 14 35
Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now