![]() |
vbulletin 3.8 array parse problem.
my array
PHP Code:
my template PHP Code:
not printing please help me.. |
You would need something like:
Code:
$users[1][username] Or you could use a for loop in a plug to format your names into a string, then include the string. |
Quote:
PHP Code:
|
Quote:
|
my sql table
tablename -> programs - id - url - sahip this table while print for vbulletin How do I make a plug-in to do this Loop through the screen to write the data into the database |
Sorry, I don't quite undertsand all that. But I'm talking about something like this:
Code:
$users = array( Then in the template: Code:
<TABLE> You could also use a template for each user instead of coding in the html, like: Code:
foreach ($users as $user) Then you'd need a new my_userbit template something like: Code:
<TR><TD>$user[username]</TD><TD>$user[email]</TD> It's exactly the same except that the html is in a template. |
very good :)
thanx kh99 :) |
Quote:
BTW, I just realized that the reason you saw "ARRAY" when you tried to follow my suggestion is because it needed curly braces around them, like: Code:
{$users[1][username]} Sorry about that. |
All times are GMT. The time now is 05:32 AM. |
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:
|