a guest Jul 11th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- var Tree = new Array;
- // nodeId | parentNodeId | nodeName | nodeUrl
- $query = mysql_query("SELECT nodeid, parentNodeId, nodeName, nodeUrl FROM tree ORDER BY nodeid ASC");
- while($row = mysql_fetch_array($query))
- echo "Tree.push('" . implode($row, '|') . "');\n";
RAW Paste Data