vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   My Thread of Php Questions..Please Help (https://vborg.vbsupport.ru/showthread.php?t=43548)

DrkFusion 09-15-2002 06:30 PM

How to remove dir?

with the rm() function?

Thanks again in advanced again
Arunan

DrkFusion 09-15-2002 06:54 PM

OK I found out how to remove dir too.. -_-

Is there a rename dir function?

DrkFusion 09-15-2002 08:30 PM

How do you make a drop down menu, something like the makeforumchooser() but for your own personal option?

Thanks again in Advanced

Arunan

DrkFusion 09-15-2002 10:44 PM

OK I am still hanging here from the question above, and I also have this question, with the list() function, how would I exclude certain files from being viewed?

Thanks again
Drk

Neo 09-15-2002 11:04 PM

give me a few ot answer them.. even know they are mostly the same question oO;;;;;

DrkFusion 09-15-2002 11:18 PM

Lol...not really they all output something different, and they are all used differently.

Anyways, yes I will :)

-Arunan

E 09-17-2002 10:40 AM

well.. the drop down menu...

ud probably have to expand more but its pretty much a while statement

like say u wanna select the name of 5 users and there posts (ordered by posts_) and make it so u select one and click go it would goto there profile......

u first start with the variable that selects it from the database
PHP Code:

$getinfo=$DB_site->query("SELECT * FROM user ORDER BY posts DESC LIMIT 5"); 

make sure it says query not query first or it will produce an error.... now for the loop that makes the options
PHP Code:

while ($options=$DB_site->fetch_array($getinfo)) {
$results .= "<option value=\"$options[userid]\">$options[username] - $options[posts]Posts.</option>";


now all u need is the html to run the page... hehe simple form...
PHP Code:

<form name="selector" action="https://vborg.vbsupport.ru/member.php?s=&action=getinfo&userid=$userid" method="post">
<select name="userid">
<? echo("$results"); ?>
</select><br>
<input accessKey="s" type="submit" value="Go"></form>

and thats it all done :)


[/php]

DrkFusion 09-17-2002 07:03 PM

You are very smart man, how about if you want to loop a template?

And no database info is used? How would I go about doing that.

Thanks

E 09-19-2002 09:20 AM

well.. wat exactly do u want to loop?


All times are GMT. The time now is 08:15 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
  • Page Generation 0.00981 seconds
  • Memory Usage 1,734KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete