View Single Post
  #1 (permalink)  
Old Sep 6th, 2007, 07:27
tox0tes tox0tes is offline
Reputable Member
Join Date: Jan 2004
Location: California
Age: 19
Posts: 232
Thanks: 0
Thanked 2 Times in 2 Posts
WHy do I get this error?

What is wrong with this code?
PHP: Select all

if ($mainchoose == "towidth"){
$image->resizeToWidth($maintowidth);
}
elseif (
$mainchoose == "toheight"){
$image->resizeToHeight($maintoheight);
}
else {
$image->resize($mainwidth,$mainheight);
}
$image->save("imagescms/".$outgoing.".".$extend);
if (
$thumbchoose == "towidth"){
$image->resizeToWidth($thumbtowidth);
}
elseif (
$thumbchoose == "toheight"){
$image->resizeToHeight($thumbtoheight);
}
else {
$image->resize($thumbwidth,$thumbheight);
}
$image->save("imagescms/".$outgoing."thumb.".$extend);

I get a Parse error: syntax error, unexpected T_VARIABLE
Reply With Quote