vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help: homepage (https://vborg.vbsupport.ru/showthread.php?t=73239)

HiDeo 12-23-2004 04:32 PM

Help: homepage
 
My query don't work :(

PHP Code:

SELECT FROM " . TABLE_PREFIX ."user WHERE homepage IS NULL 

Can you help me ?

Thanks

Dean C 12-23-2004 04:46 PM

Are you running this within a script or phpmyadmin? Also what is the error you receieve?

HiDeo 12-24-2004 08:10 AM

I use this in a .php file !

I have no errors but no results :s

Dean C 12-24-2004 01:35 PM

Well show me the PHP code

Floris 12-24-2004 01:36 PM

I have no errors

Then the query is correct, but the content might be empty or the function after it ísn't correct.

HiDeo 12-25-2004 10:46 AM

PHP Code:

$querys $DB_site->query("SELECT * FROM " TABLE_PREFIX ."user WHERE homepage IS NULL");
while (
$query $DB_site->fetch_array($querys))
{    
$nom .= "<div>$query[username]</div>";



HiDeo 12-27-2004 09:09 AM

Nobody ????

Dean C 12-27-2004 10:01 PM

Use this and tell me what it outputs at the top of the page:

PHP Code:

 $querys $DB_site->query("SELECT * FROM " TABLE_PREFIX ."user WHERE homepage IS NULL");
if(
$DB_site->num_rows($querys))
{
        echo 
'We have results';
        while (
$query $DB_site->fetch_array($querys))
        {    
                
$nom .= "<div>$query[username]</div>";
        }
}
else
{
        echo 
'No results';



HiDeo 12-28-2004 09:29 AM

Thanks, I'll test and gove the answer !


All times are GMT. The time now is 03:41 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.01450 seconds
  • Memory Usage 1,724KB
  • 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)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete