Solved

530 Error on my PHP page

Posted on 2008-10-07
7
196 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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
The viewer will learn how to count occurrences of each item in an array.
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…

747 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

13 Experts available now in Live!

Get 1:1 Help Now