tags:

views:

38

answers:

1

i have news script and the install file dont work and dont add sql orders to database

this is the code and i asure that the config file is good and no errors in it


this the full files http://alamuae.com/lessons/images/web/mynews.zip

+1  A: 

You can receive any errors and take appropriate action on that. Make sure that you put these lines on top of your script to see any errors:

ini_set('display_errors', true);
error_reporting(E_ALL);

Also instead of:

mysql_query($sql);

Use:

mysql_query($sql) or die(mysql_error());

to see if there are any errors in the query itself.

Finally try using full php tags <?php ... ?> instead of <? ... ?> because chances are that short tags are disabled on your server.

Sarfraz
+1 for the educatory aspect
moxn
@moxn: Thanks that was missing here :)
Sarfraz