Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter voslex

    (@voslex)

    Thanks for the reply! I think the first one would be the best/safest option?

    Should it be in this part of the code? I’m not really sure what to change:

    $table_name = $wpdb->prefix . “AI_Quiz_tblQuestions”;
    $sql = “CREATE TABLE “.$table_name.” (
    questionID int NOT NULL AUTO_INCREMENT,
    question longtext,
    qType varchar(255),
    potID int,
    incorrectFeedback longtext,
    correctFeedback longtext,
    creator varchar(255),
    createDate datetime,
    optionOrderType varchar (50),
    optionOrderType2 varchar (50),
    PRIMARY KEY (questionID)
    )”.$charSet;
    dbDelta($sql);

Viewing 1 replies (of 1 total)