[PHP-DB] Given only one mySQL user account by Host Company

2005-01-23 Thread Shay
My hosting company gave me one database and one root user account, and I have no access for priviliges at all. So as far as I can tell, the only way for me to connect to the database on my site is to do a mysql_connect("host", "user", "pass"), where the user and pass are the ones for this one s

Re: [PHP-DB] Given only one mySQL user account by Host Company

2005-01-23 Thread Shay
Yes they gave me phpMyAdmin to use, and no, I have no access to the user/privilege table. So the only way to output database entries is to connect with the single super account they gave me. I have a question about what you said Doug: >Use INCLUDEs for the login portions of the script(s) and pl

[PHP-DB] strtotime: Last Month problem

2005-03-30 Thread Shay
Hi, I'm trying to use strtotime("last month"), strtotime("-1 month"), or strtotime("1 month ago") to get the last month. However, it keeps returning March, not February. This started happening just yesterday, March 29th. This obviously has something to do with February's shorter amount of days,

[PHP-DB] &

2005-08-27 Thread Shay
Hi, I'm having trouble getting & to work properly. I start with a URL that has just & tags. I use str_replace to replace the & with &. Now this works with URLs that I print as hyperlinks, but the & does not print if I print the URL as a normal string. If I view the page source the & is there, b