The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Error from Database?
tudsy
post Sep 13 2017, 02:00 AM
Post #1


Advanced Member
****

Group: Members
Posts: 246
Joined: 30-September 14
Member No.: 21,611



Hi

I have been trying to delete an email address from a database and I get this error. I have checked the password and its ok.


Error Message: SQLSTATE[42000] [1044] Access denied for user 'ecovibdc_tudsy66'@'localhost' to database 'ecovib2d_Subscribers' Back to my blog - Try again !


3-Sep-2017 06:52:14 UTC] PHP Notice: Undefined variable: conn in /home/ecovibdc/public_html/ECOVIB2D/unsubscribe/unsubscribe.php on line 69
[13-Sep-2017 06:52:14 UTC] PHP Warning: mysql_close() expects parameter 1 to be resource, null given in /home/ecovibdc/public_html/ECOVIB2D/unsubscribe/unsubscribe.php on line 69



Thanks.


Attached image(s)
Attached Image

Attached File(s)
Attached File  unsubscribe__2_.php ( 2.07k ) Number of downloads: 1248
Attached File  Unsubscribe.php ( 1.55k ) Number of downloads: 1254
Attached File  Sorrytoseeyougo.html ( 1.02k ) Number of downloads: 1209
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
 
Reply to this topicStart new topic
Replies
CharlesEF
post Sep 14 2017, 12:41 PM
Post #2


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



Instead of creating your database connection in a function I would recommend you create a class and use it. This is a nice tutorial of doing that, here. You still have a lot of research to do concerning PHP.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 02:32 PM