Do not understand the problem with My SQL...

Greetings! Having a bit of a weird problem here...

We update a Web site that uses forms and a database, and we did this once a year for the last 3 years. The man who worked on this subject before me created the elaborate together thing and then it died while he has put us in an awkward position... In any case... We have this form of quotation, and when the people, fill it out and click on submit, the information is sent to us and we fill then his quote based on the information the customer provides and then send us the quotation to the email they provided in the form. All this is done to a "base". OK so now when I fill out the quote form myself as a test and clicking on send, it says this...

Warning : mysql_connect() [Function.mysql - connect]: Unknown MySQL server host 'duser1.db.7927716.hostedresource.com' (0) by /home/content/76/12767976/HTML/backend/configHR.php online 7
can't do




So by the looks of it, something is wrong in MySQL, am I right? It's something that I know much, but something is not communicate it would seem. He has never done this before.


In case you wanted to know what it says in 'configHR.php, it contains these lines of code... ".


<? PHP

$host = "duser1.db.7927716.hostedresource.com";

$username = "duser1";

$pass = "Dosaur1";

$database = "duser1";

mysql_connect ($Host, $username, $Pass) or die ("cannot do '");

@mysql_select_db ($Database);

? >

I changed the names a little bit, so I don't understand our account...

Now, it is important to point out that it recently had to change the user name ftp and password with GoDaddy to make changes to this website via Dreamweaver this year. Don't ask me why, they just made to us, and once we reconnect to the site with the new user name and password, this problem started occurring.

So, what do you think?

Thank you very much.

Seems to me that there is a problem with your connection to the MySql database.  If the former web developer used old fashioned MySql connections and your server has been recently upgraded to PHP 5.5, which could explain the gap because the MySql connections are no longer supported in PHP 5.5 +.  To confirm this yourself, create a new page test.php with the following code and download on your remote server.  Then view the results in your browser

phpinfo();
?>

Nancy O.

Tags: Dreamweaver

Similar Questions

  • What is the problem with my sql says invalid identifier

    CREATE THE TABLE PROJECT

    (proj # NUMBER (6) NOT NULL,)

    p_name VARCHAR2 (15) NOT NULL,

    p_desc VARCHAR2 (150) NOT NULL,

    p_budget NUMBER (8).

    CONSTRAINT project_proj PRIMARY KEY #pname_pk (proj #, p_name));

    CREATE TABLE WORK ORDERS

    (wo # NUMBER (6))

    proj # NUMBER (6).

    wo_desc VARCHAR2 (150).

    wo_assigned VARCHAR2 (30),

    wo_hours NUMBER (5),

    wo_start DATE,

    wo_due DATE,

    wo_complete char (1),

    CONSTRAINT workorders_wo #_pk KEY(wo#) primary SCHOOL.

    CONSTRAINT workorders_wo #_fk FOREIGN KEY (proj #)

    REFERENCES PROJECT (proj #).

    Workorders_wodesc_uk of CONSTRAINT UNIQUE (wo_desc).

    CONSTRAINT workorders_hours_ck CHECK (wo_hours > = 0).

    CONSTRAINT workorders_wocomplete_ck CHECK (wo_complete in ('Y', 'n')));

    Whenever you have an error message the best thing to do is post a copy of your session with your statement sqlplus output. Like this.

    I have no problem with your first statement regarding the syntax and semantics

    SQL> create table project
      2  (
      3  proj# number(6) not null,
      4  p_name varchar2(15)not null,
      5  p_desc varchar2(150)not null,
      6  p_budget number(8),
      7  constraint project_proj#pname_pk primary key (proj#, p_name)
      8  );
    
    Table created.
    

    Second table a problem that his tent to make reference to project.proj #. But the problem is that it doesn't have a primary or unique key defined in this topic.

    SQL> create table workorders
      2  (
      3  wo# number(6),
      4  proj# number(6),
      5  wo_desc varchar2(150),
      6  wo_assigned varchar2(30),
      7  wo_hours number(5),
      8  wo_start date,
      9  wo_due date,
     10  wo_complete char(1),
     11  constraint workorders_wo#_pk primary key(wo#),
     12  constraint workorders_wo#_fk foreign key (proj#)
     13  references project (proj#),
     14  constraint workorders_wodesc_uk unique (wo_desc),
     15  constraint workorders_hours_ck check (wo_hours >=0),
     16  constraint workorders_wocomplete_ck check (wo_complete in ('y' ,'n'))
     17  );
    references project (proj#),
                        *
    ERROR at line 13:
    ORA-02270: no matching unique or primary key for this column-list
    

    I defined a

    SQL> alter table project add constraint project_proj#_uk unique (proj#);
    
    Table altered.
    

    Now, the second table is also created correctly

    SQL> create table workorders
      2  (
      3  wo# number(6),
      4  proj# number(6),
      5  wo_desc varchar2(150),
      6  wo_assigned varchar2(30),
      7  wo_hours number(5),
      8  wo_start date,
      9  wo_due date,
     10  wo_complete char(1),
     11  constraint workorders_wo#_pk primary key(wo#),
     12  constraint workorders_wo#_fk foreign key (proj#)
     13  references project (proj#),
     14  constraint workorders_wodesc_uk unique (wo_desc),
     15  constraint workorders_hours_ck check (wo_hours >=0),
     16  constraint workorders_wocomplete_ck check (wo_complete in ('y' ,'n'))
     17  );
    
    Table created.
    
    SQL>
    

    My Version of DB's

    SQL> select * from v$version where rownum = 1;
    
    BANNER
    ----------------------------------------------------------------
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    
    SQL>
    
  • HPPIW. EXE does not solve the problem with the installation of the complete software for 8500 A909g

    Waterboy71 - sorry for a new position, but the forum is read-only (?) so I can't respond to your response to my problem with the installation of the driver/software 8500 A909g.  By your answer on 5/19, I downloaded HPPIW. EXE and it ran.  It detects my wireless printer, but it tells me that "the selected printer is not supported by this wizard."  Is there another thing I can do to install the software so that I can scan and fax from my Windows laptop 8.1?

    Hello
    If please try following the steps below and check if this can solve the problem:

    1 open the Mcafee Virus and Spyware Protection software you are interested in, click on calendar and perform analyses. Click analysis in real time, and then click stop. Select until I restart the PC and confirm by clicking the button turn off.
    2. open the dialog box run by clicking on the Windows key and the R key on your keyboard. Type %windir%, and then click OK.
    3. type hpoins*.dat in the search bar at top, if there is that no result rename the extention in old instead of dat. (e.g. hpoins1.old)
    4. type hpwins*.dat in the search bar at top, if there is that no result rename the extention in old instead of dat. (e.g. hpwins1.old)
    5. start the Run dialog box by clicking the Windows key and the R key on your keyboard. Type MSIEXEC /Unregister. in the Run dialog box and click OK.
    6. launch the Run dialog box by clicking the Windows key and the R key on your keyboard. Type MSIEXEC/REGSERVER in the Run dialog box and click OK.
    7. run the installation file and check all difference.

    Kind regards
    Shlomi

  • OK, what's the problem with this SQL?

    I just can't understand it:

    SQL > /.

    SELECT

    "CREATE or REPLACE trigger abc_ ' | seq___1.nextval | "_aiud" | CHR (10) |

    ' AFTER Insert or Update or delete on ' |  TABLE_NAME | CHR (10) |

    "New reference as new and old old ' | CHR (10) |

    "For each line. CHR (10) |

    'declare ' | CHR (10) |

    ' v_opr varchar2 (1); ' || CHR (10) |

    "start" | CHR (10) |

    "IF THE INSERTION CAN" | CHR (10) |

    "v_opr: ="I"; ' |" CHR (10) |

    "Update then ELSIF | CHR (10) |

    "v_opr: ="U"; ' |" CHR (10) |

    "ELSE" | CHR (10) |

    "v_opr: ="D"; ' |" CHR (10) |

    ' END IF; ' || CHR (10) |

    ' log_to_table ("ROWID", ' |) '''' || TABLE_NAME | '''' || V_OPR); ' || CHR (10) |

    ' end; ' || CHR (10) |

    '/ ' || CHR (10) |

    ' ' || «"CHR (10)»»

    From user_tables where rownum < 3

    ORDER BY table_name

    ORA-02287: sequence number not allowed here

    Hello

    remove the order clause contained in the query, it should work.

    Thank you

  • Could not find the problem with the sound and speakers

    Hi, I have a Pavilion dv7 with windows 7 and there is the sound of the computer, commissioning, but if I try to watch a video or listen to music online there is no sound. Also if I open Itunes, and I press play on a song of the song does not play. I tried using media player but it says it can not play either.

    Hello

    Try the following.

    Download IDT Audio Installer on the link below and save it in your downloads folder.

    http://ftp.HP.com/pub/SoftPaq/sp58001-58500/sp58226.exe

    One time finished, open windows control panel, open Device Manager and open sound, video and game controllers.  Right click on the IDT device and select uninstall - also, you should get a command prompt to delete the current driver, check the box allow this and then proceed to uninstall.

    When you're done, shut down the laptop, unplug the AC adapter and then remove the battery.  Press and hold the Power button for 30 seconds.  Reinsert the battery and plug in the AC adapter.

    Robinet tap away at the key esc that you start the computer to launch the Start Menu, and then select f10 to open the bios menu.  Press f5 to load the default values (sometimes it's f9, but the menu below indicates the correct key), use the arrow keys to select 'Yes' and press ENTER.  Press f10 to save the setting and still use the arrow keys to select 'Yes' and press on enter.

    Allow Windows to fully - charge it will automatically load an audio driver, but let just this complete.  Then open your download folder, right-click on the IDT Installer and select "Run as Administrator" to launch the installation.  Once this done, do a right-click the speaker icon in the taskbar and select playback devices.  'Speakers and headphones' left click once to highlight, and then click the Set Default button - check if you now audio.

    Kind regards

    DP - K

  • Why can't I make a new tab in Firefox 3.6.16 manually? I have Windows 7 and did not have the problem with other versions of Firefox.

    My question says it all. I click on the new tab button and nothing opens. By clicking on the links will open a new tab, if necessary, or using "Open in new tab" seems to work very well.

    Uninstall the toolbar Ask and it should work again. There is a compatibility issue with the Ask and Firefox toolbar that prevents the opening of new tabs.

    There are a few places to check for the Ask toolbar:

  • Do not understand the problem of marked yellow Cotroller SM Bus... Why his yellow marked

    Here is the entire page driver for Windows 7 64-bit:

    http://h20000.www2.HP.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=5086734&prodTypeId=321957&prodSeriesId=5086733&swLang=13&TaskID=135&swEnvOID=4060#11394

    I'd install the Intel Chipset and video drivers. There is also a very recent BIOS update you can consider installing.

    If you need assistance.

  • What is the problem with this pl/sql code?

    What is the problem with this statement of the cursor? I am getting PLS-00341 error for her:
    CURSOR cur_rsource(p_sql_stmt IN VARCHAR2) IS
            SELECT plan_table_output FROM v$sql s, table(dbms_xplan.display_CURSOR(s.sql_id, s.child_number)) t WHERE sql_text LIKE '''%'||p_sql_stmt||'%''';
    How to solve this problem?

    Thank you

    Published by: PhoenixBai on December 14, 2009 14:05

    I don't have time right now to study exhaustively, but for me his vomit ORA-00942 table or view does not exist on this line:

        SELECT sql_id, child_number into tmp_sql_id, tmp_child_number
             from v$sql where sql_text like sql_statement||'%' and sql_text not like '%v$sql%';
    

    I am able to select from v$ sql in normal SQL as user I am compiling as, so don't know why it's complaing.

    Anyone know if there are certain restrictions on access to the views v$ through PL/SQL?

    EDIT: http://www.dbasupport.com/forums/showthread.php?t=22299

    Access to the views of $ v seems to be through a role - try giving explicit access to it.

    As SYS, you must grant select permissions on V_$ SQL (V$ SQL is synonymous with V_$ SQL) to your owner of the procedure. Just tested on my system and it allows him to compile.

    Published by: Cyn on December 14, 2009 10:30

  • I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the safe mode and still no success. Help, please.

    Question
    I can't see the pictures in my yahoo email, I did not have this problem with other browsers. I used the mode 5 firefox safe and always without success. Help, please

    To help other users find solutions, please come back to this Thread and connect you to the
    Forum with your user name and password:

    Click on 'resolved' beside the answer above that BETTER resolved your issue

    DO NOT CLICK on 'Solved It' next to this answer

  • Since the last update of Firefox, I don't see a security lock when I connect to my two web sites to secure Bank so am forced to use IE and the two banks said the problem with Firefox, not their systems.

    Since the last update of Firefox (Version 4.0.1) I do not see a security lock when I connect my two web sites to secure Bank so am forced to use Internet Explorer for internet banking. I contacted the St George Bank and the ANZ Bank and both say that the problem with Firefox, not their systems. They advise also strongly me to not perform Internet banking unless the security padlock closed is visible in the window secure. The padlock is not visible when I connect secure site of PayPal. Before the upgrade, this problem did not exist and there is no when I use IE. Firefox is my favorite browser.

    The status bar everything has been redesigned, so now allows you to check if the site is secure the box to the left of the address (green, blue or plain).

    The site identity button | How | Firefox help

    Further discussion on this change mention an add-on, you can use if you really prefer to see a lock:

    Firefox 4 where is the lower right corner of padlock | Firefox Support Forum | Firefox help

  • the problem with the wi - fi does not work on windows 8.1

    Hello dear forum users (sorry for the English, use a translator)

    I have a laptop HP Pavilion dv6-7055er, 8.1 Windows 64-bit

    Card Broadcom WiFi 802.11b/g/n 1 x 1 4313GN worked on windows 7, but fails on windows 8.1. Tried to find the driver on the broadcom , but not found. Device Manager indicates that the problem with a PCI device. Specifies no problems with the Wi - Fi adapter.

    What could be the cause and how to fix it? Thank you!

    It seems that your WIFI adapter is not supported by Windows 8.1

    There are a few options available.

    The first and simplest is to purchase a USB wifi adapter to plug into one of the USB ports on the laptop. I have a dual ASUS USB-AC56 band that meets the 802.11ac specification.

    The second option will be to take a look at the installed optional wifi adapters to see if they have Windows 8.1 supports, buy one to replace the Broadcom card installed with.

    Ok. The two following adapters are compatible with your laptop and Windows 8.1. They have a BIOS support.

    The Qualcomm Atheros AR9485

    The Intel Centrino Advanced - N 6230 WLAN module

  • The problem with Windows update - automatic updates service won't start not (error 126)

    original title: the problem with Windows update

    Please help me to get Windows Update operational return.

    XP Media Center Edition, Version 2002, SP3

    Had a problem with "Generic host process for Win32 has encountered a problem and needs to close."  Follow-up of the instructions on this link:
    http://support.Microsoft.com/kb/931852

    Seems to have cleared the error message.  So far so good.

    However, now a Windows Update does not work.  Security Center Windows were told to go to control panel > system and use the Automatic Updates tab.  But, if I go to control panel > system, the Automatic Updates tab does not appear.

    I also went to the control panel > Services.  Tried to start the automatic updates service.  Received this error message: could not start the service automatic updates on Local computer.  Error 126: The specified module could not be found

    I already followed several instructions on this subject:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/cannot-access-Windows-automatic-update-after/aeaec175-01f4-47ed-8F97-55b854af4220

    In the thread above, I was following the post on 30 August.  According to Option A, I completed step 5 for the uninstallation of McAfee Security.  At this time, my network card has stopped working.  On the recommendation of the officer, I posted to the Malwarebytes forum.  The officer determined Malwarebytes that I don't have a malicious software.  I ended up posting on forum McAfee to get my network card works again.  Then I reinstalled McAfee and start to run Windows Update.

    I started with Option A, step 8 to reset Internet Explorer using http://support.microsoft.com/kb/923737.  The difficulty it has worked very well.

    Then Option A, step 9 says reset Windows Update using http://support.microsoft.com/kb/971058.  When I ran the difficulty in default or aggressive mode, I got an error message saying: he cannot start wuauserv.  The message asks me to verify that the user has privileges to take this step.  Well, I checked through user accounts who am the only one user set up on this PC and I have administrator privileges.  Help me please run this difficulty or recommend another way to get Windows Update works again.

    [1]... looks like you are saying that my system is so wet that a clean install is the (only?) way to go.

    [2] if I do a clean install, not only what I need to reinstall Windows and all my applications, I also have to reinstall the drivers... Etc. ?

    [3] I think I have the disks supplied with the PC system. Is it better to use than to use the recovery partitiion?

    [4A]... is there a possibility that some of [my data are] infected?

    [4] preventing me from simply infect the whole PC again?

    A1. Yes, and it was my recommendation in August, too.

    A2. Yes.

    A3. Only not really well using the restore Partition hidden to make the "destructive recovery" will include all drivers, etc., that have been installed at the factory.

    A4a. Yes, a real possibility.

    A4b. You run at least three 3 tests on the backup data before restoring one (1) with your installed & updated up-to-date anti-virus application (for example, Microsoft Security Essentials) and two 2 with good reputation, free online scans (e.g., ESET;) Bit Defender; Kaspersky; HouseCall; (F - Secure).

    If you have saved your data on CD/DVD, the disc scanner. If you have backed up your data to a flash drive, SD card, or another external drive AND KB971029 is installed, analyze the drive.

    If you have any questions or need additional help, please start a new thread in this forum: http://answers.microsoft.com/en-us/windows/forum/windows_xp-system

    Once again, good luck!

  • Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities of free ware

    Windows Media player on my machine does not run some AVI files. How can I check what the problem with AVI files. Files are running in other utilities free ware. Also, windows Explorer does not display dimension and other video related information for the file. Y at - it a tool that can indicate what exactly is the problem with the file.

    Ritu

    Hello

    1. you get any error message?

    2. don't you make changes to the computer before the show?

    Please follow the steps from the link below.

    http://support.Microsoft.com/kb/279242

  • The problem with Windows7 updates - don't get do not update at all (since the 14/06/2016)

    I got no automatic updates of Windows7 since 6/14; I went through all the troubleshooting steps provided by Windows/Microsoft, but just not get the problem solved.  I don't know what to do and I am positive, there are of new updates that must be downloaded.  Microsoft blocks updates for Windows7 to force people to switch to Windows 10?  I also use Norton as the security for my computer package. Norton Help Center says there was a major update in mid-June caused problems with the center of Action of Windows, but this problem has been resolved.  What can I possibly do to get this problem resolved?  I am VERY frustrated.

    Previous versions of the Windows Update client cannot properly manage updates. Install the latest version, included in KB3161608.

    https://support.Microsoft.com/en-us/KB/3161608

    Set never 'Find updates' automatic updates and restart before installing.

    Best regards, VZ

  • When I try to establish a wifi connection, it shows that the problem with the network card is not fixed. How can I solve this problem?

    When I try to establish a wifi connection, it shows that the problem with the network card is not fixed. How can I solve this problem?

    Hello

    Thank you for writing to Microsoft Communities.

    Until we start troubleshooting on this issue please provides us additional information by answering a few questions, this will help us better solutions to the problems.

    1. What is the full error message do you get?

    2. are - that you be able to access or connect to the Internet via wired?

    3 have there been recent changes to the computer before the show?

    Please go ahead and follow the steps mentioned and later a update on the State of the question.

    Method 1:
    Try to run the network troubleshooters. Check if it enumerates and helps resolve the errors.
    http://Windows.Microsoft.com/en-us/Windows7/open-networking-troubleshooters

    Method 2: If the problem persists, try to follow the steps from the link.

    In the Windows wireless network connection problems:
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Check this link for more information:

    How can I troubleshoot network card? http://Windows.Microsoft.com/en-us/Windows7/fix-network-adapter-problems

    Why can't I connect to the Internet?
    http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-connect-to-the-Internet

    Please follow these recommended steps and post if you still experience the problem.

Maybe you are looking for

  • LabVIEW freezes randomly while loop

    Hello world I'm relatively new to LabView, I like to think that I learned a lot through trial and error and read this forum, but I am confused by something here. I hope someone out there has an idea. I have a program that controls a pump. I am commun

  • I can't read, delete, or whatever it is, the mail in my Inbox on both of my hotmail accounts.

    This problem started with one of my accounts that a few days ago and now the two hotmail accounts are affected.

  • Can I watch digital TV files on my Vista laptop

    Hello Is it possible to watch the dtv files created on my Windows 7 MC, on my Vista laptop in MC? Thank you jmcj

  • Unable to return to date of payment

    Hi allEmployee has been hired for 5 January 15 but used. Payroll has not been run for the employee and also no payment assignment (Bank Transfer) has been defined for the employee.Now, in February users have updated the payment transfer method (Bank

  • Flash player constant crashing.

    Hello, I use windows 8.1, Firefox 43.0.3, version of the 20.0.0.267 NPAPI flash drive. I'll go to any site and as soon as it loads I get (adobe flash player broke down) on all sites, the works of good player in IE. I tried all the steps that I have o