hi everybody,
i made get_menu_id function :
<?php
function get_menu_id($menu) {
$result = mysql_query("SHOW TABLE STATUS LIKE 'menu'");
$rows = mysql_fetch_assoc($result);
return $rows['auto_increment'];
}
echo get_menu_id()
?>
this is return the next auto_increment id in the mysql table (5.0.5a),
PROBLEM !
when i check it on local server(localhost) i dont have any problem and i 'm getting the next id , but as soon as i upload in my server i will get the warning.
here are the warning:
Warning: Missing argument 1 for get_menu_id(),
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
any idea?
tnx