fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
always filter user inout as to prevent things llike sql injection you can use functions like htmlentities() htmlspecialchars() addslashes() etc..
you can find quite a few methods http://us.php.net/manual/en/function.htmlentities.php
-
he linked the text to where you should see examples
-
ahh okay..ive used firebug before...thanks alot cssfreakie...i appreciate it
-
this will filter what students you want information for
-
$sql = "select * from table_name where column_name=paid"; $result = mysql_query($sql);
-
you might be able to create a .jar file using fopen() and if you want to see the outpu you can use exec() and display the output of the file
-
you need to have session_start() before you can call any session vars
-
hey guys,
this is just a curiosity question and im sure its easy...but how you you get the little triangle with some dropdown menus have..like the one on this page when you hover over the home button?
-
glad we could help!
-
Always get into the habit of using full <?php tags. What is your $I variable?
-
okay so you are matching references with references?
-
yeah with the mysql_num_rows...it basically tells you how many rows of data your query grabbed..so if there isn't any data that matches your query...it will return 0
-
well if you ever have any questions fell free to ask us!
-
you could also have your if,else statement outside of your while loop...which is what i would do
-
i would add this
while ($row = mysql_fetch_array($result)){ $petname = $row['petname']; $desc = $row['description']; $family = $row['familyname']; $num_rows = mysql_num_rows($result); if ($num_rows=="0") { echo "No pet tributes for the letter."; } else { echo <<<END
-
why are you including config.php twice? and for validation, i would change mt if statement to && instead of ||
-
please encase your code in code tags
-
for future reference..please encase your php script in the code tags..saves space and eases reading it
-
where are the id's in the already existing tables coming from though?
-
where are the id's on your action page coming from?
-
yes if you are using sessions to store information. you need to have session_start() on your pages before you can call any session values
-
most likely because you are trying to use php with javascript
-
so the username is stored in a session when they log in? what exactly is going wrong when someone logs in?
-
ebay maybe? ...lol..jk
Looking for Security Help
in PHP Coding Help
Posted
and i fyou ever want to store arrays into a db..i would recommend you use serialize() and unserialize() when storing and pulling arrays out of your db