![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
fugix
-
Posts
1,483 -
Joined
-
Last visited
Posts posted by fugix
-
-
hmm thats interesting...well the tags will prevent caching...so it is most likely something in your code
-
to adress your question...you can add meta tags to certain pages so they will not cache...
use
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
along with
<META HTTP-EQUIV="Expires" CONTENT="-1">
-
-
try debugging your query
$data = mysqli_query($dbc, $query) or die(mysql_error());
-
You are right about the second error. Honestly didn't even see that he posted another error. My appologies to you pikachu
-
I would use curl yeah. Fast and provides many options of data retrieval
-
And you'll se e that I corrected that error on one of my first posts
-
you need to insert commas between your fields
-
do you want to create this yourself or use someone elses script?
I know about that but it doesnt update the account of the user that makes the payment.. Thank you anyway
you could script it to do so
-
do you want to create this yourself or use someone elses script?
-
are you storing account information in a database?
-
check this link out here, should help
-
The query's success or failure has nothing to do with that error at all.
its trying to fetch a row that doesnt exist since the query is failing
-
The query's success or failure has nothing to do with that error at all.
okay
-
// do the user related ones
$assoc = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['username']."'"));
$username = $assoc'['username']';
$ranknum = $assoc['rank'];
the undefined constant....
yep, i know where the constant is where the error is triggered..and ive provided an explanation...first step is to fix the query..which im guessing isnt working because $_SESSION['username'] is not set..
-
yes i see why my theory is flawed...my appologies
-
Undefined constant warnings are caused by undefined constants.
however a constant isn't called in his script therefore the parser must be confused by his syntax.. since hes trying to call out username from his query but his query is failing
-
i would break it down into a few more lines than you are using. e.g
$assoc = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['username']."'")); $username = $assoc'['username']'; $ranknum = $assoc['rank'];
change to
$query = mysql_query("SELECT * FROM users WHERE username = '".$_SESSION['username']."'"); $assoc = mysql_fetch_assoc($query); $username = $assoc['username']; $ranknum = $assoc['rank'];
also, the mysql_fetch_assoc() errors you are receiving is because your queries are not correct. The undefined constant error is most likely due to your query failing
-
welcome to the phpf! hopefully we can help you on your way
-
welcome to phpf!
-
I'm sure most of you will have heard about the new EU privacy law, set to come into effect on the 25th May. The law will require users to give consent to websites for storing cookies on their computer. What will happen with tracking software? Surely not every other page you visit you'll have pop-ups requesting to create some cookies? It's going to be a usability nightmare, or the end of accurate cookie-based tracking.
I also love it how in the UK we've got the "Department for Culture, Media and Sport" in-charge of producing the guidelines, who apparently are leading the way in Europe and are quoted saying: "The advertising market is good at circumventing technology-specific laws." So the EU has collectively created this law, only for each country to find ways around it?
What's the point? Who thought this was a good idea?
wow, i think thats a bad idea, will only create problems
-
hmm now i think url http://www.gamersfirst.com/warrock/?q=Player&nickname= is not possible to get becouse it has ?=
if its a dynamic url then yeah
-
Thanks Fugix, it worked
excellent
-
fugix meant:
<?php $i++; ?>
, not $1++... simple typo
yeah ...lol thanks
Pulling data from mysql database (this today/week/month)
in PHP Coding Help
Posted
you can use the date() function to get the current date with the desired format/timestamp