-
Posts
1,008 -
Joined
-
Last visited
Posts posted by spiderwell
-
-
includes is what you are after i think really
it turns 2 pages into one, which really is like going from one to another which is what you want isnt it?
-
the form isnt populating as you are not putting the $_POST values into the variables so they remain empty/blank
the die statements are AFTER this so shouldnt affect populating, if they are causing issues, change them to echo statements while debugging
-
you will be going round in circles otherwise.......
-
declare $somestring outside of the loops
line 18: $somestring .= "$spaces $file<br />";
line 21: echo "<div class=\"msg_body\">$somestring</div>";
-
your original post:
hi everybody
ob_start() sessioon_start $_COOKIE['mailsent'] = $mailii; setcookie("mailsent",$mailii,time()+(60*30));
your latest copy of the supposedly same code:
setcookie("kayip",$mailii,time()+(60*30)) ; $_COOKIE['mail_sent'] = $row['mail_adres'];
you have changed your setcookiee variable
the error is stating it cant find the mailsent cookiee, and the reason is as incubi first stated. Although now it looks like you don't even set it at all.
set a cookiee it cannot be called until after a page script ends.
setcookie() defines a cookie to be sent along with the rest of the HTTP headers. Like other headers, cookies must be sent before any output from your script (this is a protocol restriction). This requires that you place calls to this function prior to any output, including <html> and <head> tags as well as any whitespace.Once the cookies have been set, they can be accessed on the next page load ....
read this for more info http://php.net/manual/en/function.setcookie.php
also i don't think this line does anything: $_COOKIE['mail_sent'] = $row['mail_adres']; as = is assignment operator and im pretty sure it doesnt apply to setting cookiee values
-
mark it solved my friend
-
you could pass the loop at 18 to a concatenating string and wrap the div tags around it after the loop ends? then echo it out?
-
dude! upload the whole code, or give us a larger amount of it, its very had to tell what is going on.
line 133 is basically saying the cookiee doesnt exist yet, so as the incubi above stated, you probably have set it, and then try and read it in the same execution of script
-
am enjoying the float section, its a well written out site and makes it very easy to understand css. good work
-
lesson 13
The id selector is used to specify a style for a single, unique element and is defined with a pound sign "#".think you will find thats called a hash
still reading.......
-
which is line 133
sessioon_start? typo?
which cookie is it? mail or mailsent?
-
depends on keyboard on my mac its right of the lefthand shift key, on my pc its to the left of 1
````````````
theres some i given you for free, please copy and paste
-
and it doesnt really make much sense but still, made me giggle
-
you need recursive weapons firing reg exp functions in a while loop to break his armor.......
-
hope this is a query string typo
www.test.com/image.php?Style=2?Username=TEST
edit:stupid autolinker
-
and if that column's datatype is int you wont need the single quotes around the zero
EDIT or the id_receiver one
-
I'm glad i kinda got over my gaming addiction, MMOs stole many years from me, and only play EVE now, and thats not often either
lol...same here...halo took away at least 4 years of my life..now i play PHP
have you tried the sequels? im on php 5 now, its the best version of the game yet
-
i really like the site a lot, and as you stated, it needs a bit more of a punchy front end design but far as all the features and stuff in the ajax style, i'm really loving it.
i just wished i had a fraction of your skills at that age! you should do well in a career as a developer!
-
lots of partners noticed many undone diy jobs being done in the last 15 days...
it was bought down by the MW2 widows
my mates got one and its driving him mad lol. I'm glad i kinda got over my gaming addiction, MMOs stole many years from me, and only play EVE now, and thats not often either
-
an understands of how it works always helps, but the fact it is working now is the important part
-
you basically need to build a cms to do it all, i know that sounds vague but its what the answer is.
this will involve a lot of rather involved code that a beginner might struggle with.
a good starting point would be to build a form that a user can enter a new players details with which then posts to a page that validates the input and save all of it to the database.
you will also need a page that lists the users, with links from each player to edit/or delete, the edit option can link to the original form for adding a user, and be adapted to be prepopulated with that users info for editting.
the database will need another table for scores, with a column that links to the users/players table so you can select scores filter by player, as well as some maths functions to show the last 6 rounds in averages.
you will also need to add security to prevent sql injection, unwanted users on the site, and preventing players altering each others scores!
its not a small undertaking for sure.
-
it basically makes the search phrase browser friendly.
urlencode($name)
have a look here, as theres a decode too:
-
i dont know much about it either but you probably have to specify transparancy, and in my limited knowledge of that in images, i expect you need to set background to black as that appears to be the transparency color for the original image, hence the white/black thing. i guess from that the png you create has a default background of white.
so if im right you need to set background to black then set black as transparent. makes sense in my tiny mind anyways, sorry not much use of a post really
-
i know very little about server setups, maybe you need a mailserver, not just webserver?
besides if it works live, does it really matter?
Pagination help
in PHP Coding Help
Posted
when i pageinate, that sounds odd for a start, anyway back on subject, i often use a select box to apply the filter, then grab it when form posts to itself (the pagenation page). but to keep the pagenation working you need to add an extra value to the string, so ?page=1&type=action.
what you are describing is a filter not pageination, but you can combine the 2 . pageination shows several pages of the same dataset, changing category changes the results.