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("db1518312 59");
$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?
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("db1518312
$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?
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
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
ASKER
the result comes up as
query is |select hometext.hometext from hometext| --
query is |select hometext.hometext from hometext| --
ASKER
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
Dont't forget closing the question, eg allocating (back) the points to your answer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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| -- "; }