MadnessRed Posted June 6, 2008 Share Posted June 6, 2008 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 More sharing options...
fenway Posted June 7, 2008 Share Posted June 7, 2008 If by "line" you mean "field", then likely yes. Link to comment https://forums.phpfreaks.com/topic/109014-solved-very-basic-add-a-line-to-a-table/#findComment-560018 Share on other sites More sharing options...
MadnessRed Posted June 9, 2008 Author Share Posted June 9, 2008 yes, sorry i do mean feilds thanks Link to comment https://forums.phpfreaks.com/topic/109014-solved-very-basic-add-a-line-to-a-table/#findComment-561047 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.