-
Posts
158 -
Joined
-
Last visited
Everything posted by titan21
-
It should definitely be session_start(); - there is no option to omit the parentheses. What is the error you get when you have session_start()? I'm assuming it is different from your previous error.
-
Shouldn't session_start be session_start()?
-
You can to use mysql_affected_rows() to check what was deleted - http://uk2.php.net/manual/en/function.mysql-affected-rows.php
-
Long shot - its not a case sensitivity issue is it? Smarty vs smarty?
-
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
Try renaming the file index.php not index.html. You can keep the included file as index.html as long as there is no PHP to process in it - otherwise that will need renaming to index.php also! -
display a success message after form is submitted
titan21 replied to $php_mysql$'s topic in PHP Coding Help
Can you post your code so we can have a look at it? -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
Can you post the entire HTML? Popping out now but will be back later. -
display a success message after form is submitted
titan21 replied to $php_mysql$'s topic in PHP Coding Help
Can you not test your variables and decided what you want to output (if anything) Use echo() to output any html. -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
If you're running apache then the logs should be at /var/log/apache/error.log. Is this your webserver or soemone elses? -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
That's not it. PHP won't have a clue where it is in relation to the HTML. Did you check the logs and permissions? -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
Am a bit stumped! :-\ is it a permissions issue? Can you check that everyone has read access to this file? Have u tried calling the file directly into the browser? Is there anything in the logs which give a clue? -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
Okay, Try this: <TABLE class="main"> <TR> <TD> <?php include($_SERVER['DOCUMENT_ROOT'].'/products/1/index.html'); ?> </TD> </TR> </TABLE> -
Okay - not familiar with the library you are using but my last suggestion would be to change this: $mail->From = "Some Nice Name <to@anydomain.com>";
-
..which indicates that $_GET is not populated at all - is the url: something.php?user=me just checking that the page is being called correctly
-
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
Can you let us know the absolute path of your server root (i.e. where your index.htm file is located) and then the absolute path of the file you are trying to include. Hopefully, we'll be able to construct a correct line of code for you. -
You can try setting the sendmail_from in php.ini or set a ini_set(). (http://uk.php.net/manual/en/function.ini-set.php) Try: ini_set("sendmail_from", "myemailaddress@mydomain.com")
-
Try outputting print_r($_GET) to see what is actually being obtained from the get string. Can you post the output?
-
Are you able to access your logs to see if there are any clues there? First order of business!
-
display a success message after form is submitted
titan21 replied to $php_mysql$'s topic in PHP Coding Help
You'll probably be looking at a solution with AJAX which would be preferable. Or perhaps you can submit back to this page and do the checks for validity there. My advice would be to look at AJAX tho. -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
Try this... <TABLE class="main"> <TR> <TD> <?php include($_SERVER['DOCUMENT_ROOT'].'/1/index.html'); ?> </TD> </TR> </TABLE> You need to specify exactly where the file is located. -
We need to know the software you are using for SMTP. Can you try running: [pre]netstat -tulpn | grep :80[/pre] if you see "master" in the output - this should be postfix
-
display a success message after form is submitted
titan21 replied to $php_mysql$'s topic in PHP Coding Help
Have a look at redirecting the user if teh data submitted is correct. Header("Some Location") should be able to do this for you. Have a look at http://uk.php.net/manual/en/function.header.php. -
Displaying content inside a table sourced via readfile
titan21 replied to Kolusion's topic in PHP Coding Help
try require_once(), require(), include() or include_once(). Have a look at http://uk.php.net/manual/en/function.require.php -
Can you advise what SMTP server you are using? Postfix?