I recently decided to get my final project from last year online. But I ran into a lot of trouble. Can someone help me? I was using the functions in last year's CS50 finance to connect php to mysql db, but I just cannot get it right. I'm guessing its here that went wrong:
> $handle = new > PDO("mysql:dbname=coursentnu;host=18.104.22.168;port=????", "????", "????");
(I changed port, username, and password to stars for safety)
I can't figure out what went wrong. I have a sql db named coursentnu set up. But it just won't work.
If I try
print_r(query(...));, it's just blank.