Title: wp-useronline sql problem
Last modified: August 18, 2016

---

# wp-useronline sql problem

 *  Resolved [silverwing](https://wordpress.org/support/users/silverwing/)
 * (@silverwing)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/wp-useronline-sql-problem/)
 * I’m trying to install wp-useronline from [http://www.lesterchan.net/portfolio/programming.php](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

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [20 years, 7 months ago](https://wordpress.org/support/topic/wp-useronline-sql-problem/#post-270867)
 * So what was the error message about the $sql[]?

Viewing 1 replies (of 1 total)

The topic ‘wp-useronline sql problem’ is closed to new replies.

## Tags

 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [20 years, 7 months ago](https://wordpress.org/support/topic/wp-useronline-sql-problem/#post-270867)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
