Xyphon Posted December 17, 2007 Share Posted December 17, 2007 <?PHP include('Connect.php'); alter table users add user_ip VARCHAR(225) ; ?> I get an unexpected T_string.. Whats wrong there? Link to comment https://forums.phpfreaks.com/topic/82026-solved-unexpected-t_string-huh/ Share on other sites More sharing options...
revraz Posted December 17, 2007 Share Posted December 17, 2007 Looks like you are trying to do a SQL command without a mysql_query function. Link to comment https://forums.phpfreaks.com/topic/82026-solved-unexpected-t_string-huh/#findComment-416817 Share on other sites More sharing options...
helraizer Posted December 17, 2007 Share Posted December 17, 2007 <?PHP include('Connect.php'); alter table users add user_ip VARCHAR(225) ; ?> I get an unexpected T_string.. Whats wrong there? change your code to something like this: <?php include('Connect.php'); $sql = "ALTER TABLE `users` ADD user_ip VARCHAR(225)"; mysql_query($sql); ?> Sam Link to comment https://forums.phpfreaks.com/topic/82026-solved-unexpected-t_string-huh/#findComment-416820 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.