| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
- Pages:
- 1
- 2
| Quick question; on this mysql code | |
|---|---|
| Tweet Topic Started: Dec 15 2005, 08:54 PM (878 Views) | |
| MetallicaSk8er | Dec 15 2005, 08:54 PM Post #1 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
Yeah i am trying to connect to mysql and create a new database. Im not sure what is wrong with the code? can you help.
btw the password and username are random |
![]() |
|
| Dennis | Dec 15 2005, 09:31 PM Post #2 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
What is the error you're receiving? |
![]() |
|
| MetallicaSk8er | Dec 15 2005, 09:42 PM Post #3 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
it doesnt have an error the screen is just blank, but when i try this
this is the error that comes up : Fatal error: Call to undefined function mysql_connect() in C:\Program Files\Apache Group\Apache2\htdocs\connection.php on line 2 |
![]() |
|
| ABeakyboy | Dec 15 2005, 10:20 PM Post #4 |
![]()
Computer wiz and freak
![]() ![]() ![]() ![]()
|
what version of PHP are you using? If you are using 5, you must manually enable the MySQL extension in the php.ini file. |
![]() |
|
| MetallicaSk8er | Dec 15 2005, 10:27 PM Post #5 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
yea how do u do that? |
![]() |
|
| Jory | Dec 16 2005, 03:43 AM Post #6 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You can see it by using phpversion() or phpinfo(). |
![]() |
|
| MetallicaSk8er | Dec 16 2005, 04:21 PM Post #7 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
yea i have version five how did u say i enable it through the .ini file |
![]() |
|
| ABeakyboy | Dec 16 2005, 04:56 PM Post #8 |
![]()
Computer wiz and freak
![]() ![]() ![]() ![]()
|
Manuals are there that explain it..... *ABeakyboy looks it up. Ok here we go, thats the link to the documentation that explains it. Hope that helps ya http://www.php.net/manual/en/ref.mysql.php Edit: Unfortuately, that can be tricky to understand. If you tell us which OS it is, I MIGHT be able to give you a simple proceedure for doing it. |
![]() |
|
| MetallicaSk8er | Dec 16 2005, 05:33 PM Post #9 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
thanx i have windows |
![]() |
|
| bugmenot | Dec 17 2005, 04:16 PM Post #10 |
|
Member
![]() ![]() ![]()
|
W!nd0w$? Well, can't help you but the query wont work anyway, it's mysql_query not mysqlquery |
![]() |
|
| MetallicaSk8er | Dec 19 2005, 04:52 PM Post #11 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
hmm i still cant get it to work |
![]() |
|
| ABeakyboy | Dec 19 2005, 05:00 PM Post #12 |
![]()
Computer wiz and freak
![]() ![]() ![]() ![]()
|
Um, I need more information than that. Are you now getting an error message? Did you follow the instructions for enabling the MySQL extension in PHP? |
![]() |
|
| MetallicaSk8er | Dec 19 2005, 06:18 PM Post #13 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
yes i tried as best as i could to follow the instructions, and no i am not getting any message |
![]() |
|
| ABeakyboy | Dec 19 2005, 07:36 PM Post #14 |
![]()
Computer wiz and freak
![]() ![]() ![]() ![]()
|
Are you sure that PHP is set up correctly? If so, then $result must be equalling false or you would get something to appear. Make sure your query is correct. |
![]() |
|
| MetallicaSk8er | Dec 19 2005, 09:09 PM Post #15 |
|
<? echo"web-designer"; ?>
![]() ![]() ![]() ![]() ![]()
|
yes it is setup right but ill work on sum stuff tonite, thanx for all ur help if u think of sumthin post please |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Technology Chat · Next Topic » |
- Pages:
- 1
- 2
| Track Topic · E-mail Topic |
4:27 AM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)




4:27 AM Jul 11