vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   cross linking two arrays ? (https://vborg.vbsupport.ru/showthread.php?t=49394)

Nomb 02-27-2003 09:34 PM

I thought you said whoadded contained the user id's of those people that have added karma to you (you meaning your userid aka $bbuserinfo[userid]).

?

If you're unsure browse the karma table via phpmyadmin and see what is contained in the whoadded row for your userid.

fla5h 02-28-2003 08:58 PM

mmm, I'll try to explain this as best as I can, cos I still new at this.

on every row of the karma table, the whoadded column has one value.

But because the querie asks for the first 5 rows in the table that contain my userid , this would return an array of 5 userid's from the whoadded rows ?

This is correct aint it ?

Then with these 5 user id's I want to find out what their username is.

So in the mysql_fetch_array loop I can add the username variable in their.

I can therefore in the usercp, instead of just showing the karma and the comment I can show the username of the person who gave it to me.

That make sence ?

Thanks for your continuing help :)

fla5h 03-05-2003 01:07 PM

Bump ?

fla5h 03-10-2003 06:38 PM

Tis ok now I sussed it :D


All times are GMT. The time now is 01:45 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.00925 seconds
  • Memory Usage 1,710KB
  • 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
  • (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
  • (4)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