Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am looking to a simple news posti 1

Status
Not open for further replies.

hisham

IS-IT--Management
Nov 6, 2000
194
I am looking to a simple news posting script written in PHP with MySQL on backend, any body can direct me to a good one?
Thanks in advance.
 
Thank you KarveR,
I downloaded the code and I found a help file named INSTALL.txt, in the Installation section I read:

3. Create the database tables using the dump file:

$ mysql -u <username> -p <password> -D <database> < news.sql

Now, by logical (as my little experience in this field) if I use:

mysql -u myname –p –D news < news.sql

This will return: news.sql: No such file or directory

My question here: how to Create the database tables using the dump file?
 
Have you got the dump file onto the server running mysql?
you have to ensure that the path to the file is correct.

login to mysql and from the mysql> prompt you can use the folowing command:

\. 'path/to/file/file.sql'

easy innit ;-) ***************************************
Party on, dudes!
[cannon]
 
Thank you very much KarveR,
The file news.sql was converted into table in the news database.
I tried to administer the application by using to add news but after filling all the fields and click on add button it does not take me to other page, only refresh the page. I checked the database and I found that nothing was inserted, while the username root used in the config.php has the complete privileges to insert, delete etc… :
// conf.php - configuration parameters // database configuration
$host = &quot;192.168.0.2:3306&quot;;
$user = &quot;root&quot;;
$pass = &quot;mypassword&quot;;
$db = &quot;news&quot;;
I downloaded many news posting codes and always when I try the using form to add, delete, etc… I don’t get any error but don’t change to the next page??
 
Try using &quot;localhost&quot; as the host if the mySQL server is running on the same computer. //Daniel
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top