Jump to content

User Page


kinks

Recommended Posts

Okay...

 

 

How exactly will I start out the PHP retrieving code for user info pages? There will be a user info page, and their 'rabbitry' page.

 

Basically, how do I start the set-up for      /profile.php?id=1  and    /rabbitry.php?id=1 

 

I've hit a wall in coding this  :facewall:

:'(

Link to comment
Share on other sites

well when you do ?id=1 it means that within that page $_GET['id'] will be a variable equal to 1

 

so what you do from there, i'm assuming you have a mysql db... is something like

 

SELECT * FROM rabbits WHERE ID='".$_GET['id']."'

 

and then display the info you get from the db

Link to comment
Share on other sites

well when you do ?id=1 it means that within that page $_GET['id'] will be a variable equal to 1

 

so what you do from there, i'm assuming you have a mysql db... is something like

 

SELECT * FROM rabbits WHERE ID='".$_GET['id']."'

 

and then display the info you get from the db

 

Okay...thank you! Though, my host just had a ISE so, I can't test it all out.

Link to comment
Share on other sites

Okay...thank you! Though, my host just had a ISE so, I can't test it all out.

Why don't you develope/test your code off line. You can install PHP locally saves alot of time. Look into using wampserver or xampp

 

Yeah...I am installing WAMP soon :)

 

Thank you!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.