Jump to content

[SOLVED] Fatal error: Call to undefined function mysqi_query() in /srv/www/htdocs/adduser


Recommended Posts

I get this error:

[quote]
Fatal error: Call to undefined function mysqi_query() in /srv/www/htdocs/adduser.php on line 14
[/quote]


When attempting to run this query against my mysql database:

[quote]
mysqi_query($con, "CREATE TABLE chris (id MEDIUMINT(9) auto_increment primary key, track VARCHAR(50) not null, artist VARCHAR(50) not null, album VARCHAR(50), year SMALLINT(4), genre VARCHAR(50), filelink VARCHAR(150), playlist VARCHAR(50))");
[/quote]

The mysqli connection is working as I am able to perform a query which inserts into a table.  Why am I unable to create a new table in the same database?  I have created a special user for queries against this db and create_priv is on in the mysql.user table.  Even when I try with root I get the same error! 

Any ideas?  Let me know if more information is needed.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.