Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
That's a lot of speculation and regurgitation from the previous replies. The answer is to store them in a database and depending on his application he can extract and display the data however he needs or wants to.
-
Of course hard-coding the items in HTML would be faster. You wouldn't have to connect to the database and extract the data. But to tell you the truth, with that many items you won't notice a difference. Besides if you decide to add, rearrange, extrapolate statistics, implement pagination, the list goes on and on... you would definitely want to store these values in the database.
-
Smileys are one of most important components of a happy forum community
-
It should refer to what it always has. I don't think you need anything more than to just append them into the [more] list and maybe a couple new ones across the top top in the default display.
-
Consider it constructive criticism. Why do I need you to ask...? We never speculated about your skill or intellectual level. I simply just stated some of the popular tendencies that follow someone with your type of views. Good, so do I. Seeing that this comment is coming from someone of your caliber, I could care less.
-
It doesn't: I'm not seeing the error nor do I receive and error. Are you sure you posted the correct code?
-
the company i work for now is fast paced, they need modules and features develped on demand for there staff, i have high blood pressure im only 24, when i come to this site to post for help i know what i am doing i am working 100 miles per hour too find soloutions, and i post here on the way to that solution, that means to post qucik and not waste time, after all there are 100,000 of languages on earth. i can speak urdu, punjabi, hindi, putuhari, english is my first language. the point is humans can comunicate just with a wink, a few marks on a paper can do alot, you dont need to spell correctly as people dont read the whole word. A mind set like that often reflects a lot of aspects of someone's life. Not willing to use spell check, lacking the willingness to learn proper grammar (especially when English is your native (first) language), and consider only completing the minimum, gives people a poor view of you. It wastes time and looks/is unprofessional. Due to your poor grammar, you have already been compared to a half-formed monkey... It's like you're regressing, the complete opposite of evolving.
-
I agree. Even if they weren't, there's nothing really revealing about these screenshots anyway...
-
CHAR_LENGTH
-
Size as in bytes or character length?
-
The 'header error' is probably being caused by output before the header call. You cannot have any output before a header redirect. Move that function to be the first line directly after your opening PHP tag (read more here - HEADER ERRORS). As for the second error, I'm not sure what you're trying to do. I don't even see where you instantiate the object. You don't have to clear the value just don't call 'mysql_query()' twice. You should assign a variable to the function call so you can check to check if the return value is a resource (success) or FALSE (obviously, failure). Something like this: $sql = "UPDATE users SET favorite_songs = '$userFavSongs' WHERE username = '$username'"; echo $sql; $result = mysql_query("UPDATE users SET favorite_songs = '$userFavSongs' WHERE username = '$username'"); if (!$result){ die('Error: ' . mysql_error()); }
-
Wherever that line of AJAX is called.
-
Try putting your query in a string and echo it to ensure it contains the proper values: $sql = "UPDATE users SET favorite_songs = '$userFavSongs' WHERE username = '$username'"; echo $sql; $result = mysql_query("UPDATE users SET favorite_songs = '$userFavSongs' WHERE username = '$username'"); if (!mysql_query($result, $con)){ die('Error: ' . mysql_error()); }
-
Nothing too exciting but I stumbled upon this: http://www.engadget.com/2009/07/09/first-google-chrome-os-screenshots-leaked/
-
Yes, that is the CMS design. I guess I just assume those who are attempting to log in are going to be moving to the CMS, but I suppose I can put the error message on the main layout. Makes sense if the only people logging in are going to be using the CMS. I still think it would be nice if the login handler was the same style. The site looks really nice BTW.
-
Nice job nrg The 'code tags' smiley would definitely come in handy.
-
Upon entering invalid credentials you are redirected, to what looks like, the default CMS design. Can't tell if you meant to redirect here, but it doesn't maintain the same style and look.
-
If your question has been resolved, please signify that by clicking 'Topic Solved' in the bottom left.
-
This may help - $_SERVER. Some things you can only achieve with some sort of client side help.
-
Have you read the documentation - return?
-
Great, you were having the same problem as before with the delimiters because preg_match takes a regular expression. Please mark as solved.
-
If you already tried that tutorial then you would know that you need to implement delimiters. Please read through it again or Google, I have already told you what the cause of the error is.
-
You're missing delimiters. This tutorial covers basic regex (I think delimiters are on page 3) - http://www.phpfreaks.com/tutorial/regular-expressions-part1---basic-syntax/page1.
-
the "mysql_query($query,$con);" with the $con isn't always necessary. It depends on what's contained within your connection.php file. Oh, thanks for that. Read the manual for more information - mysql_query.
-
You mean form, right? HTML Forms - You need to use forms to allow the user to input and submit data. PHP MySQL - Upon submission you should grab the id with the POST method and query the database where it matches the id and return the fields you want.