Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@theNSA thanks for the tip, no I haven't started anything yet, just wanted some tips before I started it.
-
jever426yIn the first example you assign the value of the POST variable to the SESSION variable, which are super-globals in PHP (you might check this term out).
Echo prints the value of a variable in the browser. You can also use var_dump(), especially for showing the content of an array. -
@ScriptCoded when ever im on my page lets say, I see my stuff but when I click a users profile it still just shows my things. I seen a youtube video and he said use fetch_assoc and row? Would he be right if I want to visit another users profile and see their info
-
@htmljoecss Everything with session is wrong in this case. You'll have to get the user from the database using $_POST['username']
-
@ScriptCoded So what method do you think I should use :) for e.g echo $_POST["WHATEVER"]; ?? Sorry haha such a newbie
-
@ScriptCoded uber! Hah Wamp, only doing localhost for now cause I have piss all done
Related Rants
In php how would I "visit" another user cause a lot of people say use
$_SESSION["username"] = $_POST["username"]
or
Echo $_SESSION["username"]
Or
Echo $_POST["USERNAME"]
Are any of these good or should I just feck the computer out the window 😂
question
php
social