PHP - Any Clues?
Hi, fairly new to php, can't seem to figure out why this isn't working, it did before i added the $level_type aspect in... which i need to work with the way ive changed my script, any ideas as to why its not working?
Code: [Select] if ($token == $_SESSION['token']){ $sql = "SELECT * FROM skills WHERE id=$sid"; $que = mysql_query($sql) or die(mysql_error()); $res = mysql_fetch_array($que); //code goes here if ($playerdata['$level_type'] < $res['level_req']) { echo "You don't have the required level to learn this skill<br><br><a href='doresearch.php?sid=$res[id]'>Return to skill points!</a>"; } else { Similar TutorialsHow can i read this kind of xml document using simple xml.I have not seen such format and i need some clues on what to do. Code: [Select] <?xml version='1.0' encoding='UTF-8' standalone='yes' ?> <?xml-stylesheet type="text/xsl" href="sms.xsl"?> <smses count="2"> <sms protocol="0" address="0800000" date="1328814938421" type="2" subject="null" body="Its raining cat and dogs;and their owners." toa="null" sc_toa="null" service_center="null" read="1" status="-1" locked="0" date_sent="null" readable_date="Feb 9, 2012 10:15:38 PM" contact_name="Hans Petit" /> <sms protocol="0" address="+2273839309" date="1329194575094" type="1" subject="null" body="Take it easi" toa="null" sc_toa="null" service_center="+4422500000" read="1" status="-1" locked="0" date_sent="null" readable_date="Feb 14, 2012 7:42:55 AM" contact_name="Miguel" /> </smses> |