קוד:
<?php
function get_notepad()
{
global $notepad;
$query = "SELECT * FROM notepad";
$result = mysql_query($query);
confirm_query($result);
$notepad = mysql_fetch_array($result);
return $notepad;
}
?>
הקוד שהצגתי עובד בPHP4 אך לא בPHP5 יש למישהו מושג מהי הבעיה וכיצד ניתן לפתור אותה?