Jump to content

help needed


scripterdx

Recommended Posts

for the las couple of days i´ve been working on a widget or app, what this widget does is very simple, gets all the items that a user had picked forn a product list and show them in swf object, to be shared on Facebook, (all that works) but just to a single user (me)

 

<?php
include('config.php');
	header('Content-Type: text/plain; charset=utf-8');
	$sql= "SELECT producto FROM usuarios_actividad WHERE id_usuario=1207 AND lista=1 LIMIT 10";
	$consulta = mysql_query($sql);
	$contador=0;
	while ($row = mysql_fetch_assoc($consulta)){
$lista=explode(',',$row['producto']);
$contador++;

?>

&id<?php echo $contador;?>=<?php echo $row['producto'];?>
<?php } ?>
&

as you can see, the query is just for that specific user, i need to be to all users. how could i get to make that value variable: (id_usuario=1207) this must be a variable.

 

thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/179488-help-needed/
Share on other sites

works fine, it dosen´t reconize the session eventhoug that i´ve put an include for the session

i´ll keep working on that, BTW any of you have an idea to change a value with a clcik (link or button)

lsita=0 to lista=1 (on /off) thats the way to choose the items for the widget

 

Link to comment
https://forums.phpfreaks.com/topic/179488-help-needed/#findComment-947032
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.