Maq
Administrators-
Posts
9,363 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Maq
-
$ = mysqli_query($dbc, $query); Should be: $data = mysqli_query($dbc, $query);
-
How do you know it's not connecting? What is this line? $ = mysqli_query($dbc, $query); Note: Please use tags.
-
In technique #2 they mention: Which means that your links should follow a similar format: About Contact Pictures Now when a user clicks on "About" you are passing the "page=about" parameter via the URL. The protocol to retrieve this value is by using: $_GET['page'] If you echo this out it will print out exactly "about". The technique they're using forces you to create files of the exact values for each link (GET parameter). As a result you can dynamically include your pages. Hence: In which you would include, assuming you click on the "About" link, about.php page. To illustrate this point you can echo something similar to: echo $_GET['page'] . " .php"; NOTE: Be careful with this method as users can inject arbitrary values into the URL parameter. Hope this helps.
-
Hmm weird error, I would've expected: Parse error: syntax error, unexpected T_PRINT Remove the space between and php. Then tell me what the output is.
-
What does Get_Pay_Groups() return?
-
Wow CV you already got your profile set up? Niiice.
-
Yes, someone knows how to embed an FLV flash into a website. Have you tried Google?
-
Welcome, heh, don't worry it happens to all of us.
-
Variables don't interpolate in single quoted strings. You should use double quotes for your string and single quotes for your string values. $query = "UPDATE users_credits SET credits = credits - 1 WHERE username = '$username'"; A good technique to learn is echoing your query string ($query) to see what you're actually passing.
-
This can all be done in MySQL. i.e. UPDATE [table] SET [field] = [field] - 1; If you don't have a PHP Math question I'm going to move this to the MySQL Help section.
-
I was never a fan of tablets, in fact I hate them, but the features, feel, and look of the Courier look pretty decent. I'd still rather get a netbook for $150.
-
Looks to me like they're already using the mail function.
-
Well, what's the problem? 1) Use tags. 2) Try to diagnose the problem yourself first so you can isolate where the issue lyes and only need to post the relevant code.
-
You can call 2 function in a single onClick() event or, you can include 1 function in another and call it.
-
Then why did you say: ?
-
Usually stereotyping and ignorance result in one another. For example, because xcoderx apparently made a poor decision to marry a WW (Western woman), now believes all WW are like is dear beloved wife (stereotyping). Since he consciously ignores the fact that not all WW are the same, he's being ignorant as well. Which will later lead to him to making biased decisions and choices towards WW.
-
Yes you can. Is it really that big of a deal anyway to do the computation prior to the IF statement?
-
Pandora does the same thing. I found a bunch of new bands with this technique. Yea, but Pandora recently tried to hit me up with a paid subscription. I guess they limit you to 40hours month for free, which I can't understand because they have ads all over the place. I'm pretty upset by it, because I had a nice station created in pandora. I heard about the limit but I haven't been hit with any paid subscription offers. I'm mostly using Pandora on my iPhone at work. I'll have to check out last.fm.
-
Since you have access to the net then maybe you could have researched in the manual as to what time() returns and figured out that it won't throw an error. Do you have reason to believe otherwise? Irrelevant.
-
I have no clue what this is supposed to be so a theme or color scheme recommendation would be impossible to give. The colors are ugly. There are color scheme resources on phpfreaks for you to refer to. The image on the left is blurry and disproportional. If you have control over the ad, take it out. Trust me, you're not going to make any money until you have a lot of traffic, and currently, it just takes up real estate on your site. Minimalism? Yeah, I guess you achieved that to a certain extent. Why are you asking for a critique after 1 hour of coding? Seems logical to me that if you've done 1 hour of coding than it's obviously not going to look spectacular. You should probably put some more time and effort into your site and not just slopping something together.
-
You know JS is the main component to AJAX, right? You need AJAX, or something similar, to talk to the server. Next time you can click the "report to moderator" link and have it moved.
-
Pandora does the same thing. I found a bunch of new bands with this technique.
-
Please don't double post. Yes, there is a way with AJAX, in the section where you double posted.