I have a mysql insert command that is rather lengthy since it inserts 52 columns of data. Since it won't all fit on one line i have something like the following.
$query = "insert into table_name (col1, col2, col3,".
etc) values ('$col1', '$col2', '$col3',".
etc)";
MYSQL_QUERY($query);
trouble is it inserts nothing into the database. Does everything look okay to you? is "." a proper way to continue quotes (concatenate I think its called) onto the next line? Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you dont't succeed, try, try again. - programmer's motto.
$query = "insert into table_name (col1, col2, col3,".
etc) values ('$col1', '$col2', '$col3',".
etc)";
MYSQL_QUERY($query);
trouble is it inserts nothing into the database. Does everything look okay to you? is "." a proper way to continue quotes (concatenate I think its called) onto the next line? Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you dont't succeed, try, try again. - programmer's motto.