26.06.2013, 09:09
I'm talking about the HTML code in general. This is useful : http://www.granneman.com/webdev/codi...ing-your-html/
--
Yes, but the recommendation is to use it in a separated CSS file. It's better for the structure of the code and it can be easily used in multiple pages.
--
You should read the PHP documentation. http://php.net/manual/en/function.session-start.php
"To use cookie-based sessions, session_start() must be called before outputing anything to the browser."
--
Well, using the header function is correct, but you are outputting as a text between html tags that have already been used, which is totally wrong. The correct way is :
And not :
--
Die is an alias of exit, which is used to stop the execution of a script. All the code after this function won't be shown, which is not ideal for the user friendliness. Errors can be displayed using echo.
--
Again, read the PHP documentation, it's clearly written that the mysql functions are depreciated in PHP 5.5 which was released a few days ago. Check this link : http://php.net/manual/en/function.mysql-query.php
--
Code comments (// or /* */). Useful for understanding your code.
--
It's always a plus to have a filterscript with this kind of release. For example a small FS to fill the database for each user of the sa-mp server.
--
Yes, but the recommendation is to use it in a separated CSS file. It's better for the structure of the code and it can be easily used in multiple pages.
--
Quote:
Not necessary to start @ the top as its where i want to start the session
|
"To use cookie-based sessions, session_start() must be called before outputing anything to the browser."
--
Quote:
Its the only way to make the page as an image (as read by googling)
|
Code:
<?php header('Content-type:image/jpg'); ?>
Code:
<?php echo "<html><head>header('Content-type:image/jpg');</head></html>"; ?>
Quote:
Die messages was used for some instances... i used where it was suit
|
--
Quote:
I can use which mysql functions i feel free to use because its what i am comfortable using
|
--
Code comments (// or /* */). Useful for understanding your code.
--
It's always a plus to have a filterscript with this kind of release. For example a small FS to fill the database for each user of the sa-mp server.