I keep getting that error message. I’m trying to get data from my database into an array to display different columns on the page
[code=php]
<?php
$link=mysql_connect(“localhost”, “username”, “password”)
or die(‘I cannot connect to the database because: ‘ . mysql_error());
mysql_select_db (“database”, $link);
$sql=”SELECT Name, Creator, Category, Socks, Steps, Difficulty, ImageType, ID
FROM Models
WHERE ID = ‘$_GET[id]’ AND Confirmed = 1″;
$result=mysql_fetch_array(mysql_query($sql, $link) or die(mysql_error()));?>
<DIV CLASS=”content”>
<DIV ID=”leftcolumn”>
Creator: <?php echo $result[‘Creator’]; ?><BR>
Difficulty: <?php echo $result[‘Difficulty’]; ?><BR>
Socks: <?php echo $result[‘Socks’]; ?><BR>
<?php echo $result[‘Steps’]; ?></DIV>
<DIV ID=”rightcolumn”><IMG SRC=”http://models.sockigami.com/images/models/<?php echo $result[‘ID’]; ?>. <?php echo $result[‘ImageType’]; ?>” ALT=”<?php echo $result[‘Model’]; ?>”></DIV></DIV>