Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Add new column to table in mysql using php



$added= mysql_query("ALTER TABLE customers ADD email VARCHAR(50) NOT NULL");

if($added !== FALSE)
{
   echo("The column has been added.");
}else{
   echo("The column has not been added.");
}
Source by www.learningaboutelectronics.com #
 
PREVIOUS NEXT
Tagged: #Add #column #table #mysql #php
ADD COMMENT
Topic
Name
2+2 =