We extend the quandle cocycle invariant to oriented singular knots and links using algebraic structures called singquandles assigning weight functions at both regular crossings. This coincides with classical for knots, but provides extra information about links. The new distinguishes granny knot from square knot.