|
#1
|
||||||||||||
|
||||||||||||
|
I'm having the most annoying problem. I have a PHP/MySQL script I use for a news cms. I have never had any problems with it, till now. I use it on 2 sites with no issues. Now I am doing a site for a client, and for no explainable reason, most of it won't work. Maybe a little explanaition is needed:
My news script uses an index page, which displays all the news stories in the datbase, with a "preview" paragraph, with a "read more" link, which the user may click to go to a page to view the entire article. There are also links to delete or edit the article(in the finished script, these are in the news admin section), and you may add new articles to the database with a seperate file, "add.php". Here is the problem I'm having. The index page will diplay any articles in the database, but if you click the "read more" "edit" or "delete" links, it goes to the appropriate page (read_more.php?newsid=1, delete_news.php?newsid=1, etc) but where the content should display, I get nothing, the header and footer load, but the box where content displays is empty. Furthermore, it won't add articles with the add.php page, when you fill out the fields, and click "submit" it just goes back to "add.php", and doesn't add the article to the database. Now here is where it gets really weird. As I said, I have already used this script before with no issues. So I uploaded the current site I am having issues with to my own server, and tested it using the MySQL on my server, and it works no problem! It is the EXACT same site that won't work on the clients server, WTH?!?! Both hosts use cpanel, and come with MySQL and PHP installed. Both hosts are basically the same, with some mild diferences in the software versions. If anyone has any idea what the issue could be, you'll be my hero man. Here is a link to both the working, and non-working versions: Working version: http://www.djtripnosis.com/production Non-working version: http://www.maxxiumtraxx.com/production Also, here is some info on the servers: Working version server: PHP 4.4.1 MySQL 4.0.26 phpMyAdmin 2.6.4-pl2 Cpanel 10.8.1-STABLE 114 Non-working version server: PHP 4.3.11 MySQL 4.1.13-standard phpMyAdmin 2.6.4-pl2 Cpanel 10.8.1-STABLE 114 I am new to PHP, but maybe this could be a register globals issue? and here's the source code for the add.php page: Code:
|
| tripnosis's Sponsored Links: |
|
| Display your advertising here - learn about Pictual Revenue Sharing |
|
#2
|
||||||||||||
|
||||||||||||
|
try
Code:
|
|
#3
|
||||||||||||
|
||||||||||||
|
<div class='quotetop'>QUOTE(James @ Feb 25 2006, 10:46 AM)</div><div class='quotemain'>try
Code:
[snapback]4730[/snapback]
[/quote:059b164082]NICE! Fixed it right ff, thanks bro! But I am still having an issue with the files: read_more.php edit_news.php delete_news.php I belive the issue may be the same, but, as I said earlier, I am still new to php. here is read_more.php Code:
edit_news.php Code:
delete_news.php Code:
|
|
#4
|
||||||||||||
|
||||||||||||
|
try this:
read_more.php Code:
edit_news.php Code:
delete_news.php Code:
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| News Management. | xplicit | Business | 7 | 04-23-2010 06:05 AM |
| [Scripts] Fusion News 6.3.1 | FireNova | Downloads | 0 | 06-14-2005 02:40 PM |