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
https://forums.phpfreaks.com/topic/109014-solved-very-basic-add-a-line-to-a-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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