Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
Why don't you try it instead of asking.
-
Can you post the code and some lines surrounding it?
-
You need to specify a delimiter as the first parameter. Read the manual - explode. This should fix the second error as well.
-
You're missing a semi-colon on the echo above line 70. NOTE: When posting code please use .
-
The default character set is case insensitive. What character set are you using?
-
Found this game: http://www.puffgames.com/getout/ Picked up a coin and a cup then gave up after 2 minutes.
-
This is a very broad concept/design, that's why it would be hard to give advice. Minimalism is exactly how it sounds, keep everything as simple as possible and minimize confusion for the user. I understand your concern, but I think the best way to go about this would be to locate some web apps that you find easy to use and gather ideas and techniques that illustrate how to go about designing your user interface. Again, it's hard to help without knowing what you're designing for. Maybe someone else can provide more precise advice but for now I'll move this into the "Application Design" section.
-
[SOLVED] Is this code I learned from an eBook bogus?
Maq replied to tomiesto's topic in Third Party Scripts
You're welcome. Just be careful copying and pasting, you may get unwanted characters. NOTE: You probably could have just posted this in the PHP Coding Help section. I understand you got this from a book but third party apps are more for CMS apps, forums, etc... -
[SOLVED] Is this code I learned from an eBook bogus?
Maq replied to tomiesto's topic in Third Party Scripts
Use regular double quotes, not those lopsided italic looking ones. -
You spelled restaurants wrong. SELECT re.name, AVG(ra.rating) AS rating FROM resturants re LEFT JOIN ratings ra ON re.resturant_id = ra.resturant_id ORDER BY rating DESC LIMIT 5; I'm not sure if you can do an ORDER BY from an aggregate function. If you can this should give you what you want.
-
Post your table structures.
-
User rankings / ratings for Solved topics
Maq replied to gr1zzly's topic in PHPFreaks.com Website Feedback
It only shows groups that have a different color. Oh ok, thanks Daniel. -
User rankings / ratings for Solved topics
Maq replied to gr1zzly's topic in PHPFreaks.com Website Feedback
I just realised it's missing the 'staff alumni' category (unless that has been deliberately left out for some reason or another). It's also missing on the forums home, under users online. -
1) Use code tags. 2) Why are you declaring '$selectedno' global? I don't see where that variable is coming from. If it's being read from the DB previously in the script then you should just pass it to the function as a parameter. 3) In your echo statement, you can use double quotes for the string and single quotes for the attributes so you don't have to keep concatenating to the string by breaking out of it.
-
Note that mattal999's suggestion will capitalize the first letter of every word in the string. i.e. $s="maq is the shiz"; echo ucwords($s); output Maq Is The Shiz
-
You also insert '' for id every time. If that field is auto-increment it will throw an error.
-
1) Please use code tags next time. 2) Please only post the relevant code. 3) I don't know what this word means, "completecated". 4) Try to implement the suggestion that MatthewJ and I posted.
-
Check out heredoc.
-
Show us the relevant code.
-
If multiple forums aren't responding to your question than we can isolate that the problem is with you. The reason for me not answering, in addition to Daniel's, are (note: these have no relevence with your specific question): 1) I'm usually at work, so I don't feel like taking 20 minutes to answer questions. 2) A topic or subject that does not interest me what so ever. 3) (not me but most) People see a lot of text or code and run. You have to remember this forum, and probably the other ones you've posted on, are run by volunteers and take their personal time to help others. If you want immediate help (which is really what you're asking since you posted this less than an hour after your thread that's being ignored) then either pay someone or use a pay forums to receive help. It may not even be you, there are a lot of posts that are ignored due to a plethora of reasons.
-
I guess considering your teacher can't spell, it makes sense that question doesn't make much itself. What part are you having trouble with?
-
MAX() should work on a datetime field. Is your column really called 'datetime'? It would be nice if you showed us the entire query. This will work as well: SELECT `datetime` FROM table ORDER BY `datetime` DESC
-
User rankings / ratings for Solved topics
Maq replied to gr1zzly's topic in PHPFreaks.com Website Feedback
A grouping (rank) system has already been implemented. See here. -
Jeez, talk about lazy.