1
MS-2001
Re: Convert "GET"-Items to make a query work
  • 2007/2/10 10:50

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Thank you for all your answers. It's just about a delete option in the adminarea of one of my self-written modules.

I'll try to use xoops_confirm then. Thank you.



2
MS-2001
Re: Convert "GET"-Items to make a query work
  • 2007/2/8 18:31

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


I need help *uuh*



3
MS-2001
Re: Convert "GET"-Items to make a query work
  • 2007/2/6 17:55

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


For understanding my question you should know about the query / queryF thing in XOOPS. Using the query function of the xoopsDB object requieres not to use variables referencing $_GET-values in the SQL string.

But I'm using such a variable as you can see in the code above.

Now I want to "convert" the variable to use it in a query function.

Again:
$cid = (isset($_GET['cid']) ? (int)$_GET['cid'] : 0;
so $cid is my variable referencing the $_GET-value 'cid'.

As an example see the following sql query:
$xoopsDB->query("DELETE FROM ".$xoopsDB->prefix("table")." WHERE cid=$cid");
This one is not beeing executed because $cid is part of it. To make the query work, I have to use the function "queryF".

And exactly that's the problem: I can't use it because the problem I'm adressing occures in the kernel (groupperm.php).

I hope you know what I mean.



4
MS-2001
Convert "GET"-Items to make a query work
  • 2007/2/5 17:28

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Is there any possibility to convert $_GET-values to make a ->query work?

$cid = (isset($_GET['cid']) ? (int)$_GET['cid'] : 0;
[...]
$xoopsDB->query("DELETE FROM ".$xoopsDB->prefix("table")." WHERE cid=$cid");

This one isn't working because of the query / queryF thing. The problem is: I can't use queryF because it's a line of code in the kernal and I don't want to change that line.



5
MS-2001
Re: Content Module
  • 2007/1/23 17:36

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Thanks a lot.
I'm going to take a look at it.



6
MS-2001
Re: Content Module
  • 2007/1/23 16:47

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


And again?
--> Hmm???



7
MS-2001
Re: Content Module
  • 2007/1/22 17:54

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Is there a german version and a demo?



8
MS-2001
Re: Content Module
  • 2007/1/22 17:18

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


Huh?
Maybe any other recommendations?



9
MS-2001
Re: Content Module
  • 2007/1/21 10:18

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


And where can I download it? It's not in the module repository.



10
MS-2001
Content Module
  • 2007/1/20 20:59

  • MS-2001

  • Quite a regular

  • Posts: 204

  • Since: 2004/7/27


I'm looking for a module for static content. I found TinyContent but it seems to be pretty old. Is there any module which you could recommend most?

I'm still using a quite old version of XOOPS (2.0.7.3) so it should be compatible with it.




TopTop
(1) 2 3 4 ... 20 »



Login

Who's Online

96 user(s) are online (71 user(s) are browsing Support Forums)


Members: 0


Guests: 96


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits