Might want to check the insert and prepare discussion in wpdb.
hi iperez_genius,
check whether you have added any prefix to the wordpress tables… like
$prefix=’wp_’;
so the table name is wp_posts
magickman5 you were partly correct
even though i updated the table name to be
wp_something the table name wasn’t in the query so instead of using
$wpdb->insert($wpdb->something, $data);
i used
$wpdb->insert('wp_something', $data);
that fixed the problem…i have a new problem though. Because i have added something to the comment.php and wp_new_comment.php when i try to delete a comment i receive an error…i am looking into that now. here is the error
Fatal error: Call to undefined function wp_trash_comment() in /home/sydneyme/public_html/dir/wp-admin/admin-ajax.php on line 217
hi iperez_genius,
thats what i actually meant. The syntax for insert is
$wpdb->insert( ‘table’, array( ‘column1’ => ‘value1’, ‘column2’ => 123 ), array( ‘%s’, ‘%d’ ) )
so as i told you “check whether you have added any prefix to the wordpress tables… like
$prefix=’wp_’;” at the time of installation.
but anyways we got it correct…cheers and i will look into the next issue also.
so it turns out that the trash function some how got deleted from the comment.php file…
i have no idea why…but i added the functions back in and all is well so…
everything is resolved!
thanks for all the help.
Ilan