Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mySQL question



Permission problem solved.

I had to
1) create a user at localhost (poorly explained in my php/mysql book; but well
explained in the O'Reilley mysql book)
2) make an identical username in linux
3) then recreate database on the linux box, which I had simply copied to
there; for some reason this made it read only despite changing property
permissions to 777.

Thanks for the help.

Mike

====================
Problem:

Line of code:

$num_results = mysql_num_rows($result);

throws an error on linux but not on windows machine.

error=Warning: Supplied argument is not a valid MySQL result resource

Code runs fine on php-triad in windows but mySQL under redhat 7.3 throws the
error.





BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org