Jump to content

phpboy

Member
  • Posts

    58
  • Joined

  • Last visited

Everything posted by phpboy

  1. Sir, i have here wewe.php <?php $con = mysql_connect("localhost","Root",""); if (!$con) { die('Could not connect: ' . mysql_error()); }if (mysql_query("CREATE DATABASE my_db",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); }mysql_close($con); ?> then the result is : Error creating database: Access denied for user ''@'localhost' to database 'my_db' why is that so?
  2. aw sorry for the randomly capitalizing parts of words, it's my in keyboard.. Not really random letters it is only S because as enter "s", "?" always come with it.. So i always capitalize s to get rid of that "?"
  3. ThiS iS the wewe.php: <?php $con = mysql_connect("localhost","Any ","Yes"); if (!$con) { die('Could not connect: ' . mysql_error()); }if (mysql_query("CREATE DATABASE my_db",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); }mysql_close($con); ?>
  4. ooppS i forgot to Start MySql... here IS now the ReSult... Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'Any '@'localhost' (using password: YES) in C:\xampp\htdocs\wewe.php on line 2 Could not connect: Access denied for user 'Any '@'localhost' (using password: YES) YeS i can accESS phpMYadmin..
  5. wheni tried running that Script ThiS iS the reSult: Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'localhost' (10061) in C:\xampp\htdocs\wewe.php on line 2 Could not connect: Can't connect to MySQL server on 'localhost' (10061) I mean how can i connect php to phpMYAdmin? PlS one eample will do:)
  6. No, not juSt like that... i mean How can i make A username and paSSword in my databaSe.. I have reSearch about connecting php to databaSe and here Is how.. The following example creates a database called "my_db": <?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); }if (mysql_query("CREATE DATABASE my_db",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); }mysql_close($con); ?> So i run ThiS ScriptS and it Said that AccESS denied.. And I think it iS because of thiS line: $con = mysql_connect("localhost","peter","abc123"); That tutorial Is using MySql while me, Im Using phpMyAdmin... So i think i have to replace "localhoSt" to 127.0.0.1 ryt? And in "peter" and "abc123" ThoSe are the Username and paSSword that'S why i aSk here how to make a Username and paSsword out of my databAse in phpMyAdmin
  7. Using phpMyAdmin, how can i make a username and a password in my database?
  8. aw getS... i forgot the htdocs at the video tutorial.. there are so many folders in xammp compared to wamp hehe so i got confused.. anyways tnx again... gotta back to theSis...
  9. aw nice... it'S now working,,,, at XAMMP localhost where i will Save my project? i mean where i can open my projectS then I'll See the outpuTS?
  10. Oh my... my head acheS !! >>_<
  11. aw.. I juSt removed WAMP and inStall XAMMP... BUt still i cant accESS the phpMyAdmin... x Error MySQL said: #2003 - The server is not responding Connection for controluser as defined in your configuration failed. That'S the error >_<
  12. wa what will i do? reformat? is there any wayS to Solve my problem >_
  13. yeah it is not. i've done a reSearch on google..And Finally I have Solve that problem... But i cant go to phpMyAdmin, i've finiShed Wathicng The VideoS but Still i cant do it practically I need ThiS for my TheSis:(
  14. Is it thiS? When i'm Starting m PC.. There Is always a promt Saying Error Loading C:\WINDOWS\system32\AdminLp.dll The Specified module could not be found. ??? Is It this CauSe my problem?
  15. i've done what u said i just finished deinstalling and reinstalling WAMP... but same thing happened
  16. Yes WAMP...And i removed IIS... URL? i go to http://127.0.0.1(localhost) and there under ToolS.. there is phpMyAdmin.. and AlSo at the right bottom there Is icon where WAMPserver is there.. I also tried there to go to phpMyAdmin
  17. i've done watching videos in OOP php.. then now i'm in mysql .. . .. . the problem why i write again here to ask question is that why i cant access or go to phpMyAdmin? when i tried it.. here is? the result. .. . . The website declined to show this webpage HTTP 403 Most likely causes: This website requires you to log in. What you can try: Go back to the previous page. More information This error (HTTP 403 Forbidden) means that Internet Explorer was able to connect to the website, but it does not have permission to view the webpage. For more information about HTTP errors, see Help. what seems to be the problem... pls reply i'm watching the videos right now ..and i want it to do the what is done in those videos again ty
  18. awts i forgot to edit that "you@yourdomain" in my script hehe.... anyways i think i have to call my isp and ask their SMTP to solve my problem regarding mail function.. back again to videos ty again masters
  19. oh wait at smtp.smartwifi.net same thing happened then i tried smtp.smartbro.net this is the result: Warning: mail() [function.mail]: SMTP server response: 553 5.1.8 ... Domain of sender address you@yourdomain does not exist in C:\wamp\www\php_work\function.php on line 8 then what again is the problem?
  20. sir i'm using smartbro at home... then i tried searching google.. i found out the two smtp smtp.smartbro.net and smtp.smartwifi.net but still same thing happned.. how come sir?
  21. sir i do what u said up to here : -- Go to Tools > Email Accounts -- select the "View or change existing email accounts" option but there is no email account >_<
  22. sir i have microsoft outlook here in my pc.... so how? thnx
  23. ooops i'm stock on function videos.... guys anyone pls answer my question... how will i know my isp's SMTP address? tnx
  24. how will i know my isp' SMTP address?
  25. awts, i cant understand sorry.... i have found the php.ini file in a notepad and upon looking at it i see this there: [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 is that what your saying? what will i do? delete it and paste [mail function] ; For Win32 only. SMTP = mail.myisp.net; for Win32 only smtp_port = 25 sendmail_from= php@home.com ; for Win32 only pls reply thnx
×
×
  • Create New...