1
ramoneariel
I've problem with User in my module
  • 2005/11/23 17:36

  • ramoneariel

  • Just popping in

  • Posts: 6

  • Since: 2005/11/23


Please, I've problem making my module, this's a problem:

I need to filter external database for USUARIO, when 'User login' content in USUARIO show NNE, INE y Cantidad, but I'cant to use the 'login name' to filter my database.

This's a code :

<?php
# virtual('/Connections/Test.php'); ?>
#
<?php

#$colname_Recordset1 = "-1";
#if (isset($_POTS['uid'])) {
#$colname_Recordset1 = (get_magic_quotes_gpc()) ? #$_POST['uid'] : addslashes($_POST['uid']);
#}

#mysql_select_db($database_Test, $Test);
#$query_Recordset1 = sprintf("SELECT NNE, INE, CANTIDAD FROM #arsnreg WHERE USUARIO LIKE '%%%s%%' ORDER BY INE ASC", #$colname_Recordset1);
#$Recordset1 = mysql_query($query_Recordset1, $Test) or #die(mysql_error());
#$row_Recordset1 = mysql_fetch_assoc($Recordset1);
#$totalRows_Recordset1 = mysql_num_rows($Recordset1);
#?>
<?php
#include("../../mainfile.php");

#?>
<?php
#include(XOOPS_ROOT_PATH."/header.php"); ?>

<table border="1">
<tr>
<td width="122"><div align="center">NNE</div></td>
<td width="430"><div align="center">INE</div></td>
<td width="170"><div align="center">CANTIDAD</div></td>
</tr>
<?php do { ?>
<tr>
<td><?php echo $row_Recordset1['NNE']; ?></td>
<td><?php echo $row_Recordset1['INE']; ?></td>
<td><?php echo $row_Recordset1['CANTIDAD']; ?></td>
</tr>
<?php } while ($row_Recordset1 = #mysql_fetch_assoc($Recordset1)); ?>
</table>
<?php
*/
#include(XOOPS_ROOT_PATH."/footer.php");

#mysql_free_result($Recordset1);
#?>

This's my firts module.
Gracias
Ariel Ramone
Argentina

[Moved from - Module hack reviews] Bluenova

2
highlander
Re: Ive problem with User in my module
  • 2005/11/23 18:18

  • highlander

  • Not too shy to talk

  • Posts: 151

  • Since: 2004/12/5


Hi,

#if (isset($_POTS['uid'])) {


Isnt going to work. try changing to $_POST
So, I'm in the park wondering why frisbees get larger as they get closer when suddenly, it hits me...
www.AnimalPedigree.com

3
ramoneariel
Re: Ive problem with User in my module
  • 2005/11/23 18:31

  • ramoneariel

  • Just popping in

  • Posts: 6

  • Since: 2005/11/23


ok,
but not workQuote:

highlander wrote:
Hi,

#if (isset($_POTS['uid'])) {


Isnt going to work. try changing to $_POST

Login

Who's Online

204 user(s) are online (128 user(s) are browsing Support Forums)


Members: 0


Guests: 204


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