cpugeek Posted November 11, 2008 Share Posted November 11, 2008 I was wondering what the code for putting a predefined prefix in front of the table and column for both when retrieving and sending to MySql databaseexample (best to my knowledge) $TPrefix = "TablePrefix_";$CPrefix = "ColumnPrefix_";$examplevariable = mysql_query("SELECT $CPrefix + fakecolumnname FROM $TPrefix + faketablename;") Keep in mind i'm not the best with MySqlAny and All help is appreciated. Link to comment Share on other sites More sharing options...
Synook Posted November 11, 2008 Share Posted November 11, 2008 Why don't you just append it is PHP? $examplevariable = mysql_query("SELECT {$CPrefix}fakecolumnname FROM {$TPrefix}faketablename;"); Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.