Forums

[resolved] wp-useronline sql problem (2 posts)

  1. silverwing
    Member
    Posted 6 years ago #

    I'm trying to install wp-useronline from http://www.lesterchan.net/portfolio/programming.php .

    I followed the instructions, and when I went to install onlineuser-install.php I get an error about [].

    $sql[] = "CREATE TABLE $wpdb->useronline (".

    Now I have:

    $sql = "CREATE TABLE $wpdb->useronline (".

    I removed it, now I get this error:
    Warning: Invalid argument supplied for foreach() in /home/..../useronline-install.php on line 26

    Lines 26 and 27 read:
    foreach($sql as $query) {
    $wpdb->query($query);

    Anyone that can offer some help on this?
    silvewing
    running MySQL 4.0.25

  2. MichaelH
    Volunteer
    Posted 6 years ago #

    So what was the error message about the $sql[]?

Topic Closed

This topic has been closed to new replies.

About this Topic