Checking for and not printing JavaScript in generated data?
In my php web app, suppose I want to go the extra mile and in addition to going gang-busters and being anal-retentive about sanitizing my inputs, I also want to ensure that no JavaScript is being...
View ArticleProblem inserting XML parsed data in MySQL tabel
I am trying to parse XML using PHP DOM and then insert this data in MySQL tables, i am using the following code for this:
View ArticleRecursive function to generate breadcrumbs
function createPath($id, $category_tbl, $path) { $s = “SELECT * FROM “.$category_tbl.” WHERE ID = $id”; $r = mysql_query($s); $row = mysql_fetch_array($r); if($row['PARENT_ID'] == 0) { $path...
View Articlefacebook publish stream
i have problem… I did follow this site… Im not good at facebook API.. sorry im really noobs with API..my code:
View ArticleClone a draggable div
This script to clone a draggable has a weird effect. I create a clone of a draggable div and then remove the original. When I drag the clone and drop it on a second container, two draggables appear:...
View Articleinsert special character in mysql using php
When, I am trying to insert “I am Fine & How are you”. And, when i look back to the database, then i see, only “I am Fine” is inserted rest words are trimmed from that sentence. This problem also...
View Article