Jump to content

Recommended Posts

Posted

Script...

<?php

// connect to your MySQL database here using the

// script we made in the previous step of this lesson

include_once "connect_to_mysql.php";

// create the query string

$sql = 'ALTER TABLE `myMembers` CHANGE `phone` `style_sheet` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL';

 

if (mysql_query($sql)){

print "Success in table field manipulation!";

} else {

print "Script Failure!";

}

 

?>

 

Error message when I test in browser...

Script Failure!Its in phpMyAdmin myMembers_table with no problems

 

Thanks in advance

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...