Link to home
Start Free TrialLog in
Avatar of Larry Vollmer
Larry Vollmer

asked on

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:

            <?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?
Avatar of Bernard Savonet
Bernard Savonet
Flag of France image

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| -- "; }


Avatar of Larry Vollmer
Larry Vollmer

ASKER

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
the result comes up as

query is |select hometext.hometext from hometext| --
nevermind i found the error, the user was coding ftp info into the CMS. sorry.
B-))
Dont't forget closing the question, eg allocating (back) the points to your answer
ASKER CERTIFIED SOLUTION
Avatar of ee_auto
ee_auto

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial