开发者

PHP Jquery Wall Post

I'm trying to build a post-to-wall system. I followed a tutorial and it looks like I'm fairly close. However, loads of warnings come up when I post instead of the ac开发者_Go百科tual post. Do I need to setup a database somwewhere? I've never done much with PHP or databases, so excuse my ignorance.

http://beulahprint.ie/facebook_wallpost_system/


This all depends on whether you have underlying access to the machine that you are doing your development on.

If it is a linux machine and you are able to log into it then the following command will work for Red Hat (and it's derivatives: fedora, centos, etc...) as well as deban based systems such as ubuntu:

mysql --version

If this command reports some form of error they you will probably need to install mysql with one of the following commands:

sudo yum install mysql-server

OR

sudo apt-get install mysql-server php5-mysql

The sudo part makes you superuser so that you may install the software (not everyone) can install software you know. When you have run this command the computer will go through all the normal steps to install the software, but it will ask you a number of questions like: what would you like the root password to be? what IP is mysql going to run on? Luckily MySql fills most of these in by default.

If you are running on windows then it is just a matter of downloading the installation file from the mysql website, double clicking the .exe, and following the installation steps.

Good luck!

EXTRA: If you are looking for an easy way to access your mysql database you can't go far wrong with 'MySQL GUI Tools', just google it.


All of the errors you are seeing are due to a missing database and the inclusion of db files. You'll need to connect to the database (using PDO or MySQLi) and update it with the content you are entering. Looks like you are about halfway there.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜