If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > table query

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-05-04, 01:50
linus linus is offline
Registered User
 
Join Date: Apr 2004
Location: NY
Posts: 3
table query

I can connect to my db but I can't access my tabe "details" Im thinking it has to do something with my query either on the php end or phpmyadmin side... maybe Im wrong?

phpmyadmin side:
SELECT * FROM `details` WHERE 1

php side:
$query = mysql_query("SELECT * FROM details WHERE $metode LIKE '%$search%' LIMIT 0, 50");
while ($row = @mysql_fetch_array($query))

I have been stuck on this for a few days and I have tried searching for the solution to this problem, this is my last resort. So any help would greatly be appreciated.

-Anthony
Reply With Quote
  #2 (permalink)  
Old 04-05-04, 02:51
reneeb reneeb is offline
Registered User
 
Join Date: Jan 2004
Location: Germany
Posts: 167
Code:
my $statement = "SELECT * FROM details WHERE $metode LIKE '%$search%' LIMIT 0, 50"; 
$query = mysql_query($statement);
while ($row = mysql_fetch_array($query)){
  [...]
}
__________________
board.perl-community.de - The German Perl-Community
Reply With Quote
  #3 (permalink)  
Old 04-05-04, 13:52
linus linus is offline
Registered User
 
Join Date: Apr 2004
Location: NY
Posts: 3
That didn't work at all...
Reply With Quote
  #4 (permalink)  
Old 04-05-04, 17:14
wga22 wga22 is offline
Registered User
 
Join Date: Feb 2004
Posts: 5
try specifing the columns, instead of using *. In fact, start with just one or two columns to confirm where your problem is.
Reply With Quote
  #5 (permalink)  
Old 04-06-04, 01:04
linus linus is offline
Registered User
 
Join Date: Apr 2004
Location: NY
Posts: 3
are there tutorials on how to setup the query?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On