d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Php/mysql Issues
Add Reply New Topic New Poll
Member
Posts: 26,323
Joined: Dec 30 2009
Gold: 2.00
May 16 2014 10:52am
So I'm trying to add a column to a table via php, but I can't get it to work.

I'm sure there's a connection to the database, because I can get other things to work just fine.

The query is:
ALTER TABLE table ADD var INT;
And I use mysqli_query() to execute it.

Now, if I write the exact same query in the phpmyadmin sql field, it works. I'm not really sure what's happening here, but it'd be great if someone could help.

Edit: It appears it only doesn't work for special characters (particularly æ, ø and å).

This post was edited by Molle_fkk on May 16 2014 10:55am
Member
Posts: 11,610
Joined: Oct 28 2008
Gold: 1,795.00
Member
Posts: 2,217
Joined: Sep 10 2007
Gold: 35.88
May 19 2014 08:28am
Quote (0n35 @ May 16 2014 04:47pm)



good guy 0n35
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll