Jump to content

limitphp

Members
  • Posts

    706
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

limitphp's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Div would knock the text after it down on the next line, unless I added some style properties to the div. So, perhaps span is the best tag to use to change the font of one word in a section of text?
  2. I thought html 5 has gotten rid of the font tag. I understand it still works in browsers, but is that really the appropriate tag to use? Is there a tag that would be more in line with the new standards?
  3. If I have a section of text in a table or div, or something else, and I just want to change the font color of one word in the text, what is the correct tag to use to change the font color? I understand I should use the style='color:', but what tag is the most appropriate for this?
  4. ok, I just set folder to "Greckle"; so now that piece of code looks like this: <?php $path_set = "/"; $folder = "Greckle"; // set this to be "/folder" if the script is included in a folder define("DOC_ROOT", $_SERVER['DOCUMENT_ROOT'] . $folder); define("SITEURL", "http://" . $_SERVER['HTTP_HOST'] . "/" . $folder); ?> I exited wamp and restarted. And the links still don't have the folder. They still are like this: http://localhost/register.php instead of this: http://localhost/Greckle/register.php ONEDIT: nevermind....I just changed to: $folder = "Greckle/"; the foward slash fixed it. thanks again.
  5. oh my goodness, I'm a fool. I'm sorry....thank you. I haven't been getting alot of sleep lately and my mind is nowhere near 100%. Thanks again.
  6. Ok, my index page loads up, but the images don't work and none of the links work. example) link points to http://localhost/register.php but it should point to http://localhost/Greckle/register.php the folder name is not being included in my links. here is the code I have that should be taking care of that its in a file called inc_set_root.php: <?php $path_set = "/"; $folder = ""; // set this to be "/folder" if the script is included in a folder define("DOC_ROOT", $_SERVER['DOCUMENT_ROOT'] . $folder); define("SITEURL", "http://" . $_SERVER['HTTP_HOST'] . "/" . $folder); ?> in the index file I call this file using this code: <?php session_start(); include("inc_set_root.php"); include("inc_connGreckle.php"); include("inc_global_functions.php"); include("inc_login_script.php"); that is the beginning of my index file. the site is in C:wamp\www\Greckle\
  7. Ok....I solved it. I deleted the testuser and created it again. This time I gave the user all access and localhost and set the testdata database privileges. But, I think the problem was, I had to go back in the user privileges and set to all access to testdata. I guess it had not done that last time, even though I set access to testdata. Anyway, my issue is resolved. thanks all
  8. ok, i'll replace testuser % with testuser localhost. how do you flush privileges?
  9. ok...I did it just for the user testuser and I got this error message: #1141 - There is no such grant defined for user 'testuser' on host 'localhost' here's a screenshot of the users. on testuser, under hosts....there is a %. Does that mean any host including localhost?
  10. ok, I opened up phpmyadmin and put that code in the sql tab. I got this:
  11. on phpmyadmin, on lefthand side I see list of all databases including testdata. I click on users. I clicked add user. for username I put testuser. For password, I put what matches in my code. for "database for user" I left it at none. for global privileges I had it check all. then I clicked the add user button. then i went to "edit privileges" on testuser from the phpmyadmin. under "Add privileges on the following database:" I clicked on testdata. then under Database-specific privileges for the testdata i clicked check all. then i clicked the go button. anyway, for the code to connect I have this: <?php $con = mysql_connect('localhost', 'testuser', 'xxxxxxxxx') or die ('Failed to connect to the database: '.mysql_error()); mysql_select_db ('testdata',$con); ?>
  12. When I load the site on my local machine (using wamp server) I get this error: ( ! ) Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'testuser'@'localhost' (using password: YES) in C:\wamp\www\Greckle\inc_connGreckle.php on line 2 In the apache error log I get this: PHP Warning: mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Access denied for user 'testuser'@'localhost' (using password: YES) in C:\\wamp\\www\\Greckle\\inc_connGreckle.php on line 2, referer: http://localhost/ [Mon Jul 30 19:21:11 2012] [error] [client 127.0.0.1] PHP Stack trace:, referer: http://localhost/ [Mon Jul 30 19:21:11 2012] [error] [client 127.0.0.1] PHP 1. {main}() C:\\wamp\\www\\Greckle\\index.php:0, referer: http://localhost/ [Mon Jul 30 19:21:11 2012] [error] [client 127.0.0.1] PHP 2. include() C:\\wamp\\www\\Greckle\\index.php:4, referer: http://localhost/ [Mon Jul 30 19:21:11 2012] [error] [client 127.0.0.1] PHP 3. mysql_connect() C:\\wamp\\www\\Greckle\\inc_connGreckle.php:2, referer: http://localhost/ I setup the user testuser in phpmyadmin and added testdata database to his privileges and gave him full access. Or at least i think I did. I don't understand why its still saying access denied.
  13. Please, I need help on creating a batch file that will set the clock back five minutes. All the clocks in my computer lab are fast.... I know this is a php forum....but you guys have always come through on helping me with my coding problems.....and I can't find an active dos forum thank you
  14. thank you guys for all the info. So, for production turn off notices and e reporting.....but in the testing phase it best to try and get rid of these notices.... thanks again!
  15. I have this notice: Notice: Undefined index: currentpage in C:\wamp\www\index.php on line 172 Here's the code for that line: // get the current page or set a default $currentpage = is_numeric($_GET['currentpage']) ? (int) $_GET['currentpage'] : 1; I wrote this a while back....i forgot what the question mark and colon do. How can I fix this notice and keep $currentpage set to the right value? thanks
×
×
  • 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.