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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.