I`ve tried substituing my login and table name and got
the error
Warning: 0 is not a MySQL result index in
/mnt/web/guide/clipartgallery/www/print.php3 on line 9
Warning: 0 is not a MySQL result index in
/mnt/web/guide/clipartgallery/www/print.php3 on line 16
I`m a novice and I`m confused.
Boaz Yahav wrote :71
This works alright :)
What you got only means that you didn`t get any
results from the sql query.
Check your connection, and make sure that your query
did not return empty.
berber
Gerd Klingenspor wrote :331
No, it doesnt work!
You have to change the following:
@mysql_select_db("php3") or die("Unable to select
database");
!!! This "php3" is the name of the database!!!
$result = mysql_query("select * from php3 limit 100");
!!!And this "php3" has to be the name of the table you
want to look at!!!
And after you make the above changes it will work fine.
Gerd
Boaz Yahav wrote :332
I saw the misunderstandings to i simply replaces the
php3 in the connection line to "MyDB" and the php3 in
the query to "MyTable".
Ray smith wrote :805
Thank you for this script!!! It worked for me :)
Dimitrios Zinas wrote :829
Thank you... It works just perfect.