Jump to content

Code misspelt???


Huijari

Recommended Posts

Hi, can you tell me what is the problem you are receiving? Seems you don't want to give too much information away .. more fun this way?  might be why nobody is helping you.

 

Thank you

 

add trigger_error (mysql_error()) to the end of your query and rerun:

 

$result = mysql_query("SELECT * from webid_auctions where closed = '1' and sold = 'n'  and user ='" . $user->user_data['id'] . "'", $conn) or trigger_error (mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/184089-code-misspelt/#findComment-971890
Share on other sites

k, i'll pry a little more, seeing as how giving meaningful information is not your forte.

 

is $user->user_data['id'] defined/set?

 

is $conn defined/set?

 

is there a table called `webid_auctions` in your database?

 

do you have a database setup?

 

are there fields called `closed`, `sold`, and `user` in your database?

 

and an important one...did you add:

 

 or trigger_error (mysql_error());

 

to the end of your query like i suggested an hour ago:

 

$result = mysql_query("SELECT * from webid_auctions where closed = '1' and sold = 'n'  and user ='" . $user->user_data['id'] . "'", $conn) or trigger_error (mysql_error());

Link to comment
https://forums.phpfreaks.com/topic/184089-code-misspelt/#findComment-972008
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.