Ajax and mysql DB
First of all, I do not have much coding knowledge. I barely can modify others scripts.
That being said, I hired a coder to do an ajax form for me that fetch information from mysql database. It works fine on plaing html site, but now I’m trying to implement that into wordpress also. With no luck.
I can integrate my other db with wordpress if necessary. I’ll paste few lines here, which I think might be the problem. Thanks for correcting 🙂
$connect = mysql_connect($host,$username,$password)or die("<hr>Can't connect server". mysql_error()) ; mysql_select_db($db,$connect) or die("Can't connect database");
$query = mysql_query($sql) or die('error');
while ($object = mysql_fetch_object($query))
Are these correct?
- The topic ‘Ajax and mysql DB’ is closed to new replies.