Jump to content

Catp00p

Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Catp00p's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am using ajax to update a div on my page. The form to call the ajax script: <form name='updateTrainForm' method='post' onsubmit='return false;'><input type='hidden' name='skill_id' value='$skill_id'><button type='submit' class='train' onclick='doTrainUpdate();'>Train Now</button></form> The Ajax: function doTrainUpdate() { var xmlHttp = getXMLHttp(); xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState == 4) { HandleResponse(xmlHttp.responseText); } } xmlHttp.open("POST", "train.php", true); xmlHttp.setRequestHeader("cache-control", "no-cache"); xmlHttp.send(null); } function HandleResponse(response) { document.getElementById('trainUpdate').innerHTML = response; } In train.php, the value is not passed. $skill_id = $_POST["skill_id"]; I'm guessing i have to somehow pass the values through the js, but I don't know java at all. Any pointers?
  2. I have tried this but it is returning value of 0... postdate is a datetime field and there are many records in the current month. $query2 = "SELECT count(*) FROM news WHERE author = \'$newsPosterName\' AND posttime = MONTH(NOW())";
  3. I am trying to code a replacement to PHPnuke for my site. I am trying to take all the old news articles (stories) that i have posted in the nuke database and put them in a dump file. I don\'t want all the fields, and I want them ordered differently than nuke has them ordered. Is there a way to make this sql file using PHPmyAdmin... or is there another way to do it? Any help would be greatly appreciated.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.