-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
A lot of people are suggesting sha1 now adays, as MD5 has some collision problems, and is known to be less secure than MD5
-
Alternatively, you could use an Ajax request to update any database you would have. If you wanted the highlighting effect that most star rating systems have, you would need javascript anyways. If you do a google search im sure you can find this has been done many times
-
you could do something like $query = "SELECT count(postID) as one from ...., count(postID) as two from...., one+two as total from...";
-
you never set the variable $Message. you have to define it as something. By the way, if you set error reporting to E_ALL while developing, it will save you a lot of trouble error_reporint(E_ALL);
-
use an insert statement with mysql $query = mysql_query("INSERT INTO table (columns) VALUES(values)"); if users can log in, then they must have registered. if you have a register page, then you must have used an insert query...
-
code? We would need that to be of help
-
submit the answers to the database? insert?
-
you can trim the string. and then you could use empty to test it $string = " "; $string = trim($string); echo empty($string); output 1 btw 1 is true
-
well firstly, you should look into serialize() if you want to put data structures (arrays, objects, etc) into tables. However, if you feel the need to put multiple different objects in one column, I suggest you rethink your database structure. However, i suppose all you would need to do is do something like $string = implode(',',$array1)."&&".implode(',', $array2);
-
Why not just enable flash/js/etc on FF and not go to attack sites?
-
are you sure the column you want to test is named family? remember its case sensitive so Family is different from family
-
the undefined function error? if you want to get rid of the error define the function...
-
just tried it and it works for me. try removing addslashes
-
? echo $error; ????? im confused, how did you echo $error before?
-
I think this is a simple fix, but I can't find it
mikesta707 replied to GloryHorse's topic in PHP Coding Help
and your not getting any errors? do you have error reporting set to E_ALL? one thing if($arSection = $obSection->Fetch()) { are you sure it should be = and not ==? i'd assume with a fetch() method, it should be just =, but im not sure -
well you obviously have to echo it...
-
I am in a learning mood I guess thats what boredom at work does to you. Thanks!
-
Ah I understand. Apparently I did know what they were, but didn't realize what they were called. Thanks all
-
I think this is a simple fix, but I can't find it
mikesta707 replied to GloryHorse's topic in PHP Coding Help
can you post the lines that was around. can't seem to find it -
just wrap the div tags around the variable itself. before you echo $error do $error = "<div>" . $error ."</div>"; edit: ahh sorry, too late.
-
Can you tell me the benefit of using multiple browsers (besides having their own processes and the fact that you're just used to it)? Or just use the best web browser, whos tabs are separated into their own processes. Have you tried out Chrome 4? syncing bookmarks = very nice. doesn't have an ftp client yet tho, nor firebug, so I stick with FF for web development
-
I see, are these similar to javascript injections? are they the same thing? Or is the Javascript added to the page itself (in the source)?
-
Welcome to PHP freaks =) as for OP, i would suggest instead of checking the count of $er (which, since its a string, doesn't make any sense) check if its empty, IE if (empty($er)){
-
Well if you are writing to a file to save the comments, logic would dictate that you need to read the file to get the comments. Perhaps look into fread() or file_get_contents(), or perhaps feof() if you want to read the file line by line
-
did you even read the error message? You are calling an undefined function named login() you either have to define if you already haven't, or check to make sure that it has the same name (its case sensitive)