[TYPO3] problem with sql query
MailSajjad
mailsajjad at gmail.com
Sun Feb 12 13:01:28 CET 2006
hi!
this is a resouce id. to get the result you will have to use
mysql_fetch_row() or mysql_fetch_assoc() or Typo3 version of any of these
functions.
----- Original Message -----
From: "stem" <stema at web.de>
Newsgroups: typo3.english
To: <typo3-english at lists.netfielders.de>
Sent: Sunday, February 12, 2006 5:25 PM
Subject: [TYPO3] problem with sql query
> hello,
>
> i'm sure it is a stupid thing, however it drives me crazy.
>
> i have the following sql query in my t3-extension:
> $query = 'SELECT storage_pid FROM pages WHERE uid =
> '.$GLOBALS['TSFE']->id;
> $storagePid = mysql(TYPO3_db, $query);
>
> therewith i would like to receive the storage pid of the page, where my
> extension is used in order to save the form entries in the corresponding
> sys_folder.
>
> however, i get the following result for $storagePid:
> Resource id #96
>
> i don't have any clue what that means. when i perform the query in
> phpmyadmin i get the proper result.
>
> could somebody help me please?
>
> thanks!
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
More information about the TYPO3-english
mailing list