Unstoppable Domains โ€” Expired Auctions

Frustrating php

SpaceshipSpaceship
Watch

snike

Established Member
Impact
3
OK, so I have this code: http://pastebin.ca/320995

but it doesnt find anything in the database! it should find 3 rows that are the same!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
snike said:
OK, so I have this code: http://pastebin.ca/320995

but it doesnt find anything in the database! it should find 3 rows that are the same!
Code:
//IF THEY HAVE IT
if($do == "have") {
$getitems = mysql_query("
SELECT *
FROM questsp
WHERE user = '$user'
") or die("error");
while($rowgit = mysql_fetch_array($getitems)) {
$items1 = $rowgit['items'];
$itemsn1 = split(",",$items1);
$item1 = $itemsn1[0];
$item2 = $itemsn1[1];
$item3 = "Iron Sword";
$check1 = mysql_query("
SELECT * FROM inven WHERE item = '$item1'") or die ("". mysql_error() ."");
$num1 = mysql_num_rows($check1);

print "$item1 $num1 $check1";
}
 
0
•••
And... what is it finding?

The one thing I can think of is that your second query (the one in the loop) is probably 'killing' the original query. ie. it's probably 'overwriting' the first query, essentially stopping it from doing any looping or anything.
 
0
•••
Add error_reporting(E_ALL); to the beginning of your code. I'm sure you'll get some notices which probably explain what's going on.
 
0
•••
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back