[TYPO3-dev] pi_getRecord
Sebastiaan van Parijs
sebastiaan at framed.nl
Tue Jun 17 11:02:03 CEST 2008
Hi,
Thnx for the quick reply, i used your function and it returns this:
# Values #
params
0 tx_formsbuilder_datacollection
1 7
# End #
This is the same as the echod values:
# Echos #
Table: tx_formsbuilder_datacollection
Uid: 7
# End #
So that seems to be working fine, but still i get the same error with
the function:
# Error #
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL
result resource in
/usr/local/www/vhosts/framed.nl/subdomains/dev/httpdocs/t3lib/class.t3lib_db.php
on line 796
# End error #
What am i doing wrong? When i try to get another Table it works...
# Code sample #
$rec = $this->pi_getRecord(
$this->extTables['structureSelection'], '1' );
print_r( $rec );
# End sample #
It shows a complete array or wanted values.
So again what to do now?
Thnx for the good help by the way, love the good ideas.
Sebastiaan
Steffen Kamper wrote:
> "Sebastiaan van Parijs" <sebastiaan at framed.nl> schrieb im Newsbeitrag
> news:mailman.1.1213691034.12784.typo3-dev at lists.netfielders.de...
>> Thnx for your Reply,
>>
>> The strange part is that the function $this->pi_getRecord() does work for
>> a different table, there the message doesn't occur so, any idea how
>> this can be? I did not use the kickstarter to build the extention this
>> might mean there went something wrong in any part of the configuration of
>> the tables or where ever?
>>
>> Ill use the Solution that you gave me, but that doesnt explain how the
>> $this->pi_getRecord function does work for 1 table and doesnt for the
>> other... Clearly its some thing i haven't considered, and im eager to know
>> that makes this go wrong.
>>
>> So any information on why, or how is very welcome!
>>
>> Thnx and regards,
>>
>
> Hi,
>
> try to ensure you're calling with right arguments
>
> t3lib_div::debug(array(
> $this->extTables['dataCollection'], intval(this->piVars['showUid'])
> ), 'params');
>
> important to use intval !
>
> vg Steffen
>
>
More information about the TYPO3-dev
mailing list