Here's my insert statement that I'm trying to run

```
$stmt = $conn->prepare("INSERT INTO styles1 ($names) VALUES ($placeholders)");
    $stmt->bind_param($dataTypes, $values);
    $stmt-execute();

```

but I'm getting a 'Number of elements in type definition string doesn't match number of bind variables' error, even though they do. I'm assuming the bind\_param() expects 8 variables for 8 placeholders, but would be much more useful if I could just use one. Each variable is a string of data that is echoed out just like below: 

```
$names = width, height, color, depth, posX, posY, rotate, corners
$values = 56, 35, green, 4, 52, 24, 345, 64
$placeholders = ?, ?, ?, ?, ?, ?, ?, ?
$dataTypes = "ssssssss"

```

Would PDO be a better option?