Jump to content

something

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

something's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. While I was setting up the news script from the code examples I received this error on the index page (it is the only thing on the index page) "Warning: mysql_connect() [function.mysql-connect]: Access denied for user '***********'@'*********' (using password: YES) in ********/public_html/index.php on line 8 Access denied for user '**********'@'**********' (using password: YES)" The news script is here [url=http://www.phpfreaks.com/quickcode/News-System/523.php]http://www.phpfreaks.com/quickcode/News-System/523.php[/url] Is this a problem with the table I set up or the password (the user I setup has all rights to the database with the table set up) $db_name = "********"; Here do I put the table name or the database name? (I used the database name)
  2. Thank you :) I seem to have solved that, now though it is giveing me this error Warning: mysql_connect() [function.mysql-connect]: Access denied for user '*******_******'@'**.***.**.**' (using password: YES) in /*****/index.php on line 14 Access denied for user '********'@'**.***.**.**' (using password: YES) I have the right password in the password area, my username came with a prefix, but my password is as I set it.  Is there a reason why it won't connect? P.S. I tried adding a local host ("% means allow connection from every Host (IP address)") is there any way to remove the local hosts I added, they didn't form a list below the local host button as I had expected.
  3. I have the submit news working fine, but my new that I'm trying to put on my index keeps showing this... *edit* removed *edit* when I uploaded the client/ viewing side on a php instead of html it gave me this error: Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'http' (1) in /home/******/public_html/news.php on line 14 Unknown MySQL server host 'http' (1) ***** replaces a word
  4. I need to change the local host in $db_host = "localhost"; to my own local host, I'm working on a remote server.  What can I give it if I can't give it the ip (unknown currently)...
  5. Can you write a php file and then have it run remotely so people can not simply steal it from the source?
  6. <?php $db_host = "localhost"; // This is the IP address or fully qualified domain name of the server on which MySQL is installed $db_host = "http://www.something.com" $db_username = "your_db_username"; // This is the username that has been granted rights to modify the database $db_username ="something" $db_password = "your_db_password"; // This is the password for the above username $db_password = "admin" $db_name = "your_db_name"; // This is the name of the database. If you look in the left column of PHPMyAdmin, then you will see the database name above the tables. $db_name = "some_only" ?> That’s the approximation of what I changed it to (none of that is the real information) and it still gave me a error message.  Is this setup correctly? P.S. Is it ok that my table entrees are set to NULL is that ok?
  7. I just need to be sure about what I'm putting in $db_host = "localhost"; $db_host = "http://something.com" $db_username = "your_db_username"; Here do you make up a username or do you have to add it in the table first? $db_password = "your_db_password"; Same as username. $db_name = "your_db_name"; What do I enter here?  Just who I want it to say posted it?
  8. I finally have my table setup [img]http://img258.imageshack.us/img258/3740/tablemv8.jpg[/img] It still gives me a error message, the tutorial gives very little help [url=http://www.phpfreaks.com/quickcode/News-System/523.php]http://www.phpfreaks.com/quickcode/News-System/523.php[/url] what did I miss?
  9. I found the program used on my server to setup fields, but what do I do with all these options? (type, length values, Collation, Attributes, Null, Default2, Extra, then the choice between Primary, Index, unique, ---, Fulltext, Comments.  How do I know what to set them to?  Is there a guide anyone could point me to?)
  10. I'm new to php and i'm trying to install a news script to use on a page.  It asks me to do this "Before we begin, we should set up a table in our mysql database.  We will need to following fields: Name Subject Message Date ID" I'm working on a remote server with mysql already set up with everything configured, how do I do this?
  11. Are we allowed to use code from the PHP Code Library until we lean enough php to create a similar script ourselves? (I did not see this mentioned in the FAQ.)
×
×
  • 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.