Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

530 Error on my PHP page

Posted on 2008-10-07
7
Medium Priority
?
223 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

718 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