• Home
  • Forum
  • Fare Web
  • PHP

Aiuto Query

  • Creatore Discussione Creatore Discussione dux86
  • Data di inizio Data di inizio 14 Lug 2009
D

dux86

Utente Attivo
20 Lug 2007
97
0
0
  • 14 Lug 2009
  • #1
ciao ragazzi..

ho bisogno di un piccolo aiutino con una query

// CREATE ARRAY OF ACTION TYPES
$actiontypes_disallowed = explode(",", $user->usersetting_info['usersetting_actions_dontpublish']);
$actiontypes_query = $database->database_query("SELECT * FROM inkontatto_actiontypes WHERE actiontype_enabled=1 AND actiontype_setting=1");
while($actiontype = $database->database_fetch_assoc($actiontypes_query))
{
// MAKE THIS ACTION TYPE SELECTED IF ITS NOT DISALLOWED BY USER
$actiontype_selected = 1;
if(in_array($actiontype['actiontype_id'], $actiontypes_disallowed)) { $actiontype_selected = 0; }
INKONTATTO_Language::_preload($actiontype['actiontype_desc']);
$actiontypes_array[] = Array(
'actiontype_id' => $actiontype['actiontype_id'],
'actiontype_selected' => $actiontype_selected,
'actiontype_desc' => $actiontype['actiontype_desc']
);
}
Clicca per allargare...

in pratica questa query mi stampa tutti gli "actiontype_id" presenti nella tabella, invece a me servirebbe che mi stampasse un range di "actiontype_id", per esempio da actiontype_id=34 a actiontype_id=39

spero di essere stato chiaro, grazie
 
D

dux86

Utente Attivo
20 Lug 2007
97
0
0
  • 14 Lug 2009
  • #2
nessuno sa come risolvere questa query?
magari qualche sito dove posso studiare un po di query MySQL?
 

borgo italia

Super Moderatore
Membro dello Staff
SUPER MOD
MOD
4 Feb 2008
16.044
150
63
PR
www.borgo-italia.it
  • 14 Lug 2009
  • #3
ciao
non puoi continuare con la query:

database_query("SELECT * FROM inkontatto_actiontypes WHERE actiontype_enabled=1 AND actiontype_setting=1 AND (actiontype_id>$quelloche_vuoi1 AND actiontype_id<$quelloche_vuoi2)" );
?
 
D

dux86

Utente Attivo
20 Lug 2007
97
0
0
  • 14 Lug 2009
  • #4
purtroppo nn funge... grazie cmq..
 
D

dux86

Utente Attivo
20 Lug 2007
97
0
0
  • 14 Lug 2009
  • #5
dux86 ha scritto:
purtroppo nn funge... grazie cmq..
Clicca per allargare...

perfetto! ho risolto... il "$" era di troppo
 

Eliox

Utente Attivo
25 Feb 2005
4.390
3
0
  • 15 Lug 2009
  • #6
prova:
PHP:
SELECT * FROM inkontatto_actiontypes WHERE actiontype_enabled=1 AND actiontype_setting=1 AND actiontype_id BETWEEN 34 AND 39
 
Devi accedere o registrarti per poter rispondere.

Discussioni simili

E
Aiuto per query
  • Emanuele85
  • 25 Nov 2023
  • PHP
Risposte
8
Visite
3K
PHP 14 Dic 2023
marino51
T
aiuto per trasformare un quiz fatto in JS in un quiz in JQUERY
  • theseo
  • 6 Gen 2022
  • jQuery
Risposte
0
Visite
3K
jQuery 6 Gen 2022
theseo
T
R
Aiuto con le query
  • Rach3
  • 23 Gen 2021
  • MS Access
Risposte
2
Visite
2K
MS Access 25 Gen 2021
Rach3
R
I
Aiuto query
  • iw8ffg
  • 20 Dic 2019
  • MySQL
Risposte
8
Visite
2K
MySQL 7 Gen 2020
iw8ffg
I
[Javascript] aiuto su jquery per calcolo altezze dom
  • claudio_lorenzo
  • 23 Nov 2019
  • Javascript
Risposte
1
Visite
1K
Javascript 23 Nov 2019
Tommy03
R
Aiuto Jquery
  • roxasxii7
  • 23 Set 2017
  • jQuery
Risposte
1
Visite
1K
jQuery 30 Set 2017
jonnino2004
D
aiuto con query
  • Daniele Teryn De Martino
  • 23 Set 2015
  • PHP
Risposte
1
Visite
1K
PHP 23 Set 2015
borgo italia
J
Aiuto per localstorage con jquery/js/json
  • Jakub Lemiszewski
  • 8 Apr 2015
  • Javascript
Risposte
4
Visite
2K
Javascript 15 Apr 2015
criric
A
[risolto] aiuto integrazione query per db calcistico
  • aleweb74
  • 19 Nov 2013
  • MySQL
Risposte
2
Visite
2K
MySQL 20 Nov 2013
aleweb74
A
S
aiuto con le query
  • sbuzza
  • 18 Ott 2013
  • PHP
Risposte
0
Visite
1K
PHP 18 Ott 2013
sbuzza
S
S
aiuto jquery: draggable & droppable
  • surferbloggy
  • 11 Ott 2013
  • jQuery
Risposte
1
Visite
1K
jQuery 11 Ott 2013
surferbloggy
S
S
aiuto con query
  • slyx
  • 4 Ott 2013
  • MySQL
Risposte
10
Visite
2K
MySQL 6 Ott 2013
alessandro1997
E
Aiuto per Sviluppo app Eclipse + Phonegap + Jquery
  • elcapron
  • 27 Giu 2013
  • Sviluppo app per Android
Risposte
1
Visite
2K
Sviluppo app per Android 14 Gen 2014
michelep
L
  • Bloccata
verifica mail in db con jquery e ajax. Aiuto
  • lorenzo84
  • 3 Mag 2013
  • jQuery
Risposte
9
Visite
6K
jQuery 10 Mag 2013
alessandro1997
P
Aiuto con query "SELECT"
  • pinoshine
  • 9 Apr 2013
  • PHP
Risposte
6
Visite
2K
PHP 17 Apr 2013
Longo8
J
Aiuto per una query di eliminazione
  • Jizzy
  • 16 Mar 2013
  • PHP
Risposte
5
Visite
2K
PHP 2 Apr 2014
Jizzy
J
A
Aiuto con Funzione/Query
  • andreone
  • 20 Feb 2013
  • PHP
Risposte
3
Visite
1K
PHP 21 Feb 2013
GoshMaledetto
B
Aiuto query mysql in php
  • bau
  • 6 Feb 2013
  • PHP
Risposte
1
Visite
1K
PHP 6 Feb 2013
bau
B
S
jquery plugin per vedere foto e video problemi aiuto
  • shivi
  • 1 Mar 2012
  • jQuery
Risposte
0
Visite
1K
jQuery 1 Mar 2012
shivi
S
F
aiuto per query UNIONE mysql
  • furbettokk
  • 11 Nov 2010
  • MySQL
Risposte
2
Visite
3K
MySQL 12 Nov 2010
furbettokk
F
Condividi:
Facebook X (Twitter) LinkedIn WhatsApp e-mail Condividi Link
  • Home
  • Forum
  • Fare Web
  • PHP
  • Italiano
  • Termini e condizioni d'uso del sito
  • Policy Privacy
  • Aiuto
  • Home
Community platform by XenForo® © 2010-2024 XenForo Ltd. | Traduzione a cura di XenForo Italia
Menu
Accedi

Registrati

  • Home
  • Forum
    • Nuovi Messaggi
    • Cerca...
  • Novità
    • Featured content
    • Nuovi Messaggi
    • Ultime Attività
X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?

X

Privacy & Transparency

We use cookies and similar technologies for the following purposes:

  • Personalized ads and content
  • Content measurement and audience insights

Do you accept cookies and these technologies?