Jump to content

[SOLVED] Unexpected T_STRING? HUH?


Xyphon

Recommended Posts

<?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

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.