Jump to content

[SOLVED] Very basic, add a line to a table


MadnessRed

Recommended Posts

ok, I keep having to add lines to my database. This is a pain as I don't run it, so i keep having to bug my friend to add extra lines to it as I don't have access to the phpmyadmin.

 

anyway whilst looking through some code I saw this.

 

doquery ("DELETE FROM {{table}} WHERE `stat_type` = '2' AND `id_owner` = '".$CurAlly['id']."';",'statpoints');

 

and that made me wonder, would this code work¿

 

doquery (ALTER TABLE `game_planets` ADD `sm_grav_dome` BIGINT( 11 ) NOT NULL DEFAULT '0' AFTER `big_protection_shield` ;

 

sorry if that is a bit unclear, I know absolutely zilch about mysql. All I can tell you is that the line above adds a new line to the database, everything inside the first brackets is simply a copy past from tha code that i was asking him to execute inside the phpmyadmin.

 

any help would be great, if you need more info i will endeavor to find it

Link to comment
Share on other sites

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.