![]() |
Don't forget to take table prefixes into account in your SHOW COLUMNS query.
|
Quote:
$vidcolumns = $db->query_read("SHOW COLUMNS FROM " . TABLE_PREFIX . "video"); $videocolumns = array(); while ($vidcolumn = $db->fetch_array($vidcolumns)) { $videocolumns[] = $vidcolumn['Field']; } if (!in_array('timelength', $videocolumns)) { echo('<li>Altering Table <strong>' . TABLE_PREFIX . 'video</strong> ... '); $db->query_write("ALTER TABLE video ADD timelength int(10) unsigned NOT NULL"); } |
All times are GMT. The time now is 03:19 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|