Jump to content

mfoster

New Members
  • Posts

    6
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

mfoster's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Server: Localhost via UNIX socket Server version: 5.0.87-community Protocol version: 10 User: fultonr1@localhost MySQL charset: UTF-8 Unicode (utf8) I've just moved a domain from one host to another. The script worked fine at the former host. The information on the new host is listed above. I was successful at exporting the database and can work with it through the control panel. However now I don't seem to be able to access the database from my php script. My new host says that it's a programming problem and can't help me. The code (which I copied from w3schools) includes some error analysis which I have included in the script. That code also shows that the mysql_connect seems to be working and is returning Resource Id1. The mysql_select_db command seems to be the problem as it is throwing the following error message: Access denied for user 'fultonr1_mfoster'@'localhost' to database 'fultonr1_entries' You can access the script yourself at http://fulton68reunion.com/view2.php I've checked the database name, username, and password and all seem to be correct. $con = mysql_connect("localhost", "****", "****") ; $db_selected = mysql_select_db("fultonr1_entries",$con); if (!$db_selected) { die ("<br/> Can\'t use fultonr1_entries database : " . mysql_error()); } I/ve included a copy of the file.
  2. The host maintains that all of their equipment are working properly and that it is a problem with php coding which they do not support. I resubmitted the trouble ticket and replied that it certainly looks like it's a server problem and NOT a php problem. So far no new replies.
  3. Well, I looked up the reference that you cited and editted my code to the following: $from = "Conference Registration System"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: html; charset=iso-8859-1' . "\r\n"; $headers = "From:" . $from . "\r\n"; // now lets send the email. mail($to, $subject, $message, $headers); Unfortunately, it had no effect on the time it takes for the script to work. However, now the email comes out with the source code for the html message rather than the display of the code! Not good.
  4. It doesn't seem to matter whether I send it to one person, or three. Here's what I have for the header: $to = "mfoster@xxxxxx.org"; $from = "Conference Registration System"; $subject = "Conference Request Update - Notification of approval"; $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; It seems to follow the rules, but please point out problems if you see them
  5. I have a whole bunch of php scripts that utilize the mail() function. They have worked fine previously, but now, although they work, are very slow (20-30 seconds). I have written a couple of testing programs to make sure that the slow completion was due to the mail() function and have shown it is definitely related to it. In one program, I send the mail and in the other program I put comment code (//) in front of the mail statement so that everything else in the program is identical. The program with the active mail runs 20-30 seconds, while the inactivated mail program runs in less than 2 or 3 seconds. I have not changed the code in the scripts, but the hosting company did move to a new server. The technician for the hosting site tells me that it is NOT a server problem, but a php coding problem. I honestly don't see how that could be true, but an open to any suggestions that anyone else has. Here is the code (with the mail function disabled) that seems to be the problem: $headers = "From: $from\r\n"; $headers .= "Content-type: text/html\r\n"; // now lets send the email. //mail($to, $subject, $message, $headers); I would be most appreciative of any suggestions.
  6. I have a table of events that I have stored in a mysql (Mysql 5.0) table. The table is accessed by a php script that allows the general public to view the events. I have another program that allows me to add, delete, and edit the information in the table. I am the only person that has access to that script. However, the table randomly has records deleted despite the fact that I have not deleted them. I have examined my scripts and can't seem to find any problems in them. I have a number of other msql tables that do not exhibit this behavior. My service provider finds nothing wrong with the tables. Any ideas?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.