Diff Revisions 784 vs 807 for /branches/0.9/functions/addlink.php

Diff revisions: vs.
784 807   <- Revisions
       
      Diff lines for:
 Rev 784 : Lines 44 -> 50
 Rev 807 : Lines 44 -> 50
44 44 $fetch = call('sql_fetch_array',$sql);
45 45 $order = (call('sql_num_rows', $sql) == 0 ? 1 : $fetch['item_order'] + 1);
46 46 $authid = (empty($authid) ? 0 : 1);
47 - $query = call('sql_query', "INSERT INTO menu (name, link, rank, item_order, authid, window, height, width) VALUES ('$name', '$link', '$rank', '$order', '$authid', '$window', 'height', '$width')");
47 + $query = call('sql_query', "INSERT INTO menu (name, link, rank, item_order, authid, window, height, width) VALUES ('$name', '$link', '$rank', '$order', '$authid', '$window', '$height', '$width')");
48 48 if($query)
49 49 return true;
50 50 }