The Bookmark Database
Bookmark Creation Result
/*
** replace space with _
*/
$name=reg_replace(" ","_",$name);
$rc=sybsql_connect();
$rc=sybsql_dbuse("mtest");
/*
** check if the thing already exists
*/
$qs="select name from bookmarks where name='$name' and parent='$parent'";
$rc=sybsql_query($qs);
if($rc == 1);
$nr=sybsql_numrows();
if ($nr > 0);
echo "Creation Failed!!!
";
echo "Bookmark of that name exists at that level
";
exit;
endif;
endif;
$qs="insert into bookmarks (type,parent,path,name,url) values ('$type','$parent', '$parent/$name','$name','$url')";
$rc=sybsql_query($qs);
echo "Bookmark added!";
>
echo ""
>