i finally got it working. After all, the problem was not in the connection, it was in my other file,
function for getting the categories that was not compatible with changed mysqli to mysql code.
thanks to you all.
Search found 5 matches
- Wed Dec 22, 2010 11:55 am
- Forum: PHP - Code
- Topic: mysqli -> mysql
- Replies: 8
- Views: 680
- Mon Dec 20, 2010 10:32 am
- Forum: PHP - Code
- Topic: mysqli -> mysql
- Replies: 8
- Views: 680
Re: mysqli -> mysql
barde , there are two good habits you should acquire to make your life at these forums better. First is to use syntax highlighting for code you post (there's a handy 'PHP Code' button in post editor). Second is naming your threads descriptively - 'hello' just wouldn't do. Both would make it easier ...
- Mon Dec 20, 2010 7:03 am
- Forum: PHP - Code
- Topic: mysqli -> mysql
- Replies: 8
- Views: 680
Re: hello
ok guys, i think i am going somewhere, i declared the variables, but now this error is coming up:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\xampp\htd...
a am still a noob , so i am really appreciating your help!
thanks
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\xampp\htd...
a am still a noob , so i am really appreciating your help!
thanks
- Sat Dec 18, 2010 10:11 am
- Forum: PHP - Code
- Topic: mysqli -> mysql
- Replies: 8
- Views: 680
Re: hello
it is not working for me,it says Warning: Missing argument 1 for db_connect(), called in C:\xa Warning: Missing argument 2 for db_connect(), called in C:\xa Warning: Missing argument 3 for db_connect(), called in C:\xa Warning: Missing argument 4 for db_connect(), called in C:\xa and finally: Fatal ...
- Sat Dec 18, 2010 8:53 am
- Forum: PHP - Code
- Topic: mysqli -> mysql
- Replies: 8
- Views: 680
mysqli -> mysql
i am making a web site, and for connection i am using mysqli, but on the server this extension is not installed, so i guess i need to change the connection to mysql, but i am doing something wrong, please help this is the code: <?php function db_connect() { $result = new mysqli('localhost', 'root', ...