The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Hi,
I need a script, which I can INSERT more rows at once. I have this code in admincp: PHP Code:
Can anyone help me? Thank you (sorry for my very bad English )
|
|
#2
|
||||
|
||||
|
What's POST insert code?
|
|
#3
|
|||
|
|||
|
<a href="http://www.desilva.biz/mysql/insert.html" target="_blank">http://www.desilva.biz/mysql/insert.html</a>
|
|
#4
|
||||
|
||||
|
PHP Code:
Quote:
I mean how to use Loops => VALUES ('Helen', 24), ('Katrina', 21), ('Samia', 22), ('Hui Ling', 25), ('Yumie', 29)"; Thank you for helping me I hope you understand it
|
|
#5
|
|||
|
|||
|
PHP Code:
|
|
#6
|
||||
|
||||
|
Thanks MoT3, could you help me again with
$vbulletin->input->clean_gpc('p', 'title', TYPE_STR); $vbulletin->input->clean_gpc('p', 'description', TYPE_STR); Now I have method POST = insert like this: PHP Code:
(
|
|
#7
|
|||
|
|||
|
What is title and description supposed to be a file or plain text?
|
|
#8
|
||||
|
||||
|
Quote:
THanks |
|
#9
|
|||
|
|||
|
PHP Code:
|
|
#10
|
||||
|
||||
|
Quote:
And how to make this in vbulletin? Code:
for ($x = 1; $x <= 10; $x++)
{
$_POST["title"][$i] = $vbulletin->input->clean_gpc('p', 'title'[$i], TYPE_STR);
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|