rlb1 Posted November 7, 2007 Share Posted November 7, 2007 Please assist me with this error. I have tried several things to no avail: "{$row['Manufacturer']}" '$row['Manufacturer']}' {$row['Manufacturer']} Fatal error: Call to undefined function: open_image() in /home/champion/public_html/directforless/watch.php on line 384 // Load image $image = open_image($row['URL_Image_Large']); // ERROR HERE ON LINE 384 if ($image === false) { die ('Unable to open image'); } // Get original width and height $width = imagesx($image); $height = imagesy($image); // New width and height $new_width = 75; $new_height = 75; // Resample $image_resized = imagecreatetruecolor($new_width, $new_height); imagecopyresampled($image_resized, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height); // Display resized image header('Content-type: image/jpeg'); imagejpeg($image_resized); die(); Print "<TABLE cellSpacing=0 cellPadding=2 width=765>"; while($rowy = mysql_fetch_array( $resulty )) { Print "<TBODY>"; Print "<tr>"; Print "<TD class=listings>"; Print "<TABLE cellSpacing=0 cellPadding=2>"; Print "<TBODY>"; Print "<TR>"; Print "<TD width=100>"; Print "<img src=spacer.gif height=12><BR>"; Print "<DIV class=image>"; Print "<A class=text_title title=".$rowy['Name'] . " href=/watch.php?id=".$rowy['id'] . " target=_top>"; Print "<img src=\"$image_resized\" border=0></A></td> "; Print "<TD vAlign=top align=left>"; Print "<TABLE cellSpacing=0 cellPadding=2 width=600>"; Print "<TBODY>"; Print "<TR>"; Print "<TD height=30 width=600>"; Print "<A class=text_title title=".$rowy['Name'] . " href=/watch.php?id=".$rowy['id'] . " target=_top>"; Print "".$rowy['Name'] . "</A></TD>"; Print "<TD vAlign=top align=right width=100 rowSpan=3>"; Print "<DIV class=text_price>$".$rowy['Price'] . "</DIV></TD>"; Print "</TR>"; Print "<TR>"; Print "<TD height=25>"; Print "".$rowy['Description'] . " "; Print "<A title=".$rowy['Name'] . " href=/watch.php?id=".$rowy['id'] . " target=_top>"; Print "<b><i>more...</i></b></A>"; Print "</TD>"; Print "</TR>"; Print "</TBODY>"; Print "</TABLE>"; Print "</TD>"; Print "</TR>"; Print "</TBODY>"; Print "</TABLE>"; } Print "</TD>"; Print "</TR>"; Print "</TABLE>"; ?> Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 7, 2007 Share Posted November 7, 2007 well you require the GD library install is it installed Quote Link to comment Share on other sites More sharing options...
rlb1 Posted November 7, 2007 Author Share Posted November 7, 2007 What is GD Library and where do I find it... I am relatively new to PHP, but I am picking it up fast! Thanks for your help!! Quote Link to comment Share on other sites More sharing options...
rajivgonsalves Posted November 7, 2007 Share Posted November 7, 2007 Well its a library in php you have ta it install to use any of its functions Quote Link to comment Share on other sites More sharing options...
rlb1 Posted November 7, 2007 Author Share Posted November 7, 2007 OK, GD is installed and working on my server per my hosting company. I am still getting this: Fatal error: Call to undefined function: open_image() in /home/champion/public_html/directforless/watch.php on line 384 Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.