Jump to content

deadpickle

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About deadpickle

  • Rank
    Newbie
  1. Your absolutely right about the json_encode, as soon as I converted it, everything worked. thank you much.
  2. I'm not sure if this is a wordpress issue (and if it is I'll ask in that forum) or a javascript issue. I'm trying to use ajax to connect to a mysql database. The idea right now is to return a status of 'error' or 'success' after trying to connect to the database. It seems that when I try to login to the database what gets returned in $result['type'] is undefined. I would expect something other than that and I believe this is telling me that the php script was not ran. Anything I'm missing to get the php to run? Why is it not entering the php script? citools.php <?php/*Plugin Name: CI Tools
  3. I'm pretty new to javascript/ajax/php/html so bear with me.I am Trying to use ajax to connect to a database. The reason I am using ajax is so I can dynamically update the webpage as information is gathered about the database. So far I have is setup so that when a button is clicked: <input type="button" value="Login" onclick="sqllogincheck(this.form)"> a function is ran that will connect up to the database server side: <html><head><title>High Plains Regional Climate Center</title><link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>"><
×
×
  • Create New...