![]() |
Insert Thread into database.
Hello all,
im trying to create a PHP Function that will add a thread to the forums. This is what i got must its not working: Code:
private function MakeThread( $ForumId, $Title, $Content ) At this point no thread is being made. Thanks |
I'm not sure, but if I'm counting right it looks like maybe you're not setting 'visible' to 1 (it looks like you're setting 'sticky' to 1 so probably something's off by one).
|
Quote:
I counted and it looks correct. |
I count 31 columns and 30 values, again unless I'm screwing up somehow. I pasted it into phpmyadmin, changed the vars to constants, and I got a "value count doesn't match" or something like that (the first query, I mean).
But I don't know why you wouldn't see any error messages. Here's a stupid question - are you sure that's even getting called? |
Quote:
i just did a re-count and got 31 columns and 31 values. Im stumped on this. |
Check out my "New Thread on User Banning" mod- it makes a new thread.
Here's a copy of the code to make a new thread... I got it off a tutorial somewhere around here that was for 3.x but the code is the same. Code:
|
All times are GMT. The time now is 11:59 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|