For Programmers: Free Programming Magazines  


Home > Archive > PHP SQL > January 2005 > different result phpMyAdmin and php script









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author different result phpMyAdmin and php script
Roderik Emmerink

2005-01-15, 8:56 pm

Hi,

My phpMyAdmin does not show all records in the database when I choose
the browse tab for the table.
What I see is one record, which I inserted with phpMyAdmin itself.
Actually there are 3 records present (there must be, since 3 of them
will be returned when using SELECT * from within a php script).

I am not really happy with this behaviour, I want to see all
records/rows in my table that are present in the table. Below is some
information concerning the table:

Field Type Attributes Null Default Extra
ObjectType int(4) Yes NULL
Id int(6) UNSIGNED No auto_increment IsHidden
tinyint(1) Yes NULL IsPublished tinyint(1) Yes NULL

The query (browse tab):
SELECT *
FROM `Objects`
LIMIT 0 , 30

from phpMyAdmin returns just one record. The query:

SELECT *
FROM `Objects`
WHERE ObjectType =43
LIMIT 0 , 30

in phpMyAdmin this will return 0 records.
in php script this will return 2 records.

Please let me know what might be the reason that phpMyAdmin won't show
all rows.

regards,

Roderik
Roderik Emmerink

2005-01-15, 8:56 pm

I forgot to note:
The database is: MySQL
And what I saw now is: The php script does not return the record that is
made from phpMyAdmin, you should almost think that it were two different
databases.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com