Help me use mysql_create_db in xampp 1.7.2

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Help me use mysql_create_db in xampp 1.7.2

Postby warmoger » 23. December 2009 12:47

I am trying use the function mysql_create_db in xampp 1.7.2
What should I do?
And Why the function mysql_create_db deprecated?
warmoger
 
Posts: 4
Joined: 23. December 2009 12:42

Re: Help me use mysql_create_db in xampp 1.7.2

Postby Hanspeter Thöni » 23. December 2009 13:08

You shound use:
mysql_query("create database name....");

see here
http://ch.php.net/manual/en/function.mysql-create-db.php
Gruss Hanspeter
User avatar
Hanspeter Thöni
 
Posts: 233
Joined: 17. August 2004 10:29
Location: Schweiz

Re: Help me use mysql_create_db in xampp 1.7.2

Postby warmoger » 23. December 2009 16:50

You shound use:
mysql_query("create database name....");
see here
http://ch.php.net/manual/en/function.my ... ate-db.php


Thanks very much...

But... I writed "I am trying"

I make question in this topic to ask somebody about how use the function mysql_create_db in xampp 1.7.2
Plz. Teach me. If u can.

Sorry about my english. It is bad.
warmoger
 
Posts: 4
Joined: 23. December 2009 12:42

Re: Help me use mysql_create_db in xampp 1.7.2

Postby Hanspeter Thöni » 23. December 2009 19:28

well, my english is not better...
Gruss Hanspeter
User avatar
Hanspeter Thöni
 
Posts: 233
Joined: 17. August 2004 10:29
Location: Schweiz

Re: Help me use mysql_create_db in xampp 1.7.2

Postby Altrea » 23. December 2009 21:27

you can use this function like before, but now it throws a notice, that this function is deprecated (because the use of mysql_query() is the cleaner way, i think).

If you don't want to see deprecated notices, than you can configure the error reporting.
But wherever it is possible, you should use mysql_query()
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8299
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Help me use mysql_create_db in xampp 1.7.2

Postby warmoger » 23. December 2009 22:58

you can use this function like before, but now it throws a notice, that this function is deprecated (because the use of mysql_query() is the cleaner way, i think).

If you don't want to see deprecated notices, than you can configure the error reporting.
But wherever it is possible, you should use mysql_query()


Thanks!!!
I see that I should use the function mysql_query().
I got error "Call to undefined function mysql_create_db" when I used the function mysql_create_db().
After I used function_exists('mysql_create_db') and it return FALSE
I look in the manual of PHP and I see that this function is available in PHP 5. Mysql 5 too
So that... I want know... how can I use the mysql_create_db() in xampp 1.7.2?

Sorry about my english again. Plz! Help me.
warmoger
 
Posts: 4
Joined: 23. December 2009 12:42

Re: Help me use mysql_create_db in xampp 1.7.2

Postby Wiedmann » 23. December 2009 23:17

how can I use the mysql_create_db() in xampp 1.7.2?

There is no way to do this.
(this function is only available with a very old MySQL client library)
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: Help me use mysql_create_db in xampp 1.7.2

Postby warmoger » 23. December 2009 23:29

There is no way to do this.
(this function is only available with a very old MySQL client library)


Thanks!!!
warmoger
 
Posts: 4
Joined: 23. December 2009 12:42


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests