Solved

530 Error on my PHP page

Posted on 2008-10-07
7
214 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This article discusses how to implement server side field validation and display customized error messages to the client.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

627 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