sql help needed badly

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
2bit
New member
New member
Posts: 23
Joined: 01 Aug 2008, 23:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

sql help needed badly

Postby 2bit » 01 Aug 2008, 23:55

I have checked the coding guidlines and a few other sources wich confused me even more. In php it is rather strait forward to connect to the database,retrieve data,and close database connection, and there you have it! but with phpbb3 its toatly diffrent. i just need a basic example of how to query the database without all the added confusion of adding limits and so forth to the query. I hope you understood what all that! any help will be cool.

User avatar
EXreaction
New member
New member
Posts: 11
Joined: 19 Jul 2008, 16:33
Real name: Nathan
Contact:

Re: sql help needed badly

Postby EXreaction » 02 Aug 2008, 00:16

$db->sql_query($sql);

$sql is the query you want to run
My phpBB3 Mods:
| | | |

User avatar
2bit
New member
New member
Posts: 23
Joined: 01 Aug 2008, 23:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: sql help needed badly

Postby 2bit » 02 Aug 2008, 00:18


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: sql help needed badly

Postby igorw » 02 Aug 2008, 00:24


- we're poor!

User avatar
2bit
New member
New member
Posts: 23
Joined: 01 Aug 2008, 23:34
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: sql help needed badly

Postby 2bit » 02 Aug 2008, 01:14


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: sql help needed badly

Postby igorw » 02 Aug 2008, 09:18

Yep, that's good. One piece at a time. :)

- we're poor!


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 21 guests