|
#1
|
||||||||||||
|
||||||||||||
|
Well recently I tried to make my own CMS news posting script via php/mysql but everytime I try to make it work, my news would never show up, the installation of the tables and everything should have went together fine.
DBconnect.php Code:
submit.php Code:
viewnews.php Code:
I think I CHMODed them to 777 but not in the public_html folder on my web host, might be why when I submit my news it doesnt show up?
__________________
www.BrianLeee.com - Online Portfolio |
| xplicit's Sponsored Links: |
|
| Display your advertising here - learn about Pictual Revenue Sharing |
|
#2
|
|||||||||||||
|
|||||||||||||
|
Most likely not working since register_globals may be disabled and you have this code:
include("./dbconnect.php");//include the file that connects to the database if(!empty($title)) {//if the title is not empty, than do this function $title = addslashes($title); $user = addslashes($user); $message = addslashes($message); Try replacing the right portion of your code to $_REQUEST instead: Code:
Try that |
|
#3
|
|||||||||||||
|
|||||||||||||
|
Also, in your SQL query, don't use 'NULL' like you have. Just leave it '', and if it's auto-increment it should work fine without NULL.
|
|
#4
|
||||||||||||
|
||||||||||||
|
Ill try those out soon, thanks peter, never thought about those when I was looking at it, and never knew leaving the sql query to '' will auto incriment. Thanks Will post the results soon.
__________________
www.BrianLeee.com - Online Portfolio |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|