Multi
Multi
The Start of a Small Social Network Script
Topic Started: Tuesday, 28. December 2010, 04:39 (634 Views)
flashfox
No Avatar
Disabled
I decided to give this ago.
This is what I have so far haha. It's for the profile page, but I have yet to link it to grabbing the user ID and displaying one at a table. This will most likely repeat atm.

Code:
 


<?php
include ('connect.php');
include ('header.php');

$query = "SELECT first_name, last_name, aboutme, likes FROM members";
$result = mysql_query($query);

while($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
echo "<table><tr><th>{$row['first_name']} {$row['last_name']}'s Profile</th></tr>
<tr><td>[b]About me:[/b]</td><td>{$row['aboutme']}</td></tr>
<tr><td>[b]Likes:[/b]</td><td> {$row['likes']} <br><br></td></tr></table>";
}
?>




I have much more to add, but this still will be extremely simple and to the point. Mainly to see if I can do this on my own :)
Edited by flashfox, Tuesday, 28. December 2010, 04:43.
Off
Profile
Quote
Top
 
Altered Faith
No Avatar
Level 9
Good luck. I would like to see the final product.
Off
Profile
Quote
Top
 
Robot
No Avatar
Level 9
Why is everyone copying me now?

Also, that has no limiters.
Plain stupid.
Off
Profile
Quote
Top
 
flashfox
No Avatar
Disabled
You told me I should do this...
Off
Profile
Quote
Top
 
Altered Faith
No Avatar
Level 9
tourniquet
Tuesday, 28. December 2010, 04:49
Why is everyone copying me now?

Also, that has no limiters.
Plain stupid.
Just wondrinf, how is that going?
Off
Profile
Quote
Top
 
flashfox
No Avatar
Disabled
I looked it up flavius.
Any better?

Code:
 


<?php
include ('connect.php');
include ('header.php');

$query = "SELECT * FROM members WHERE user_id = ".mysql_real_escape_string($_GET['id'])." ";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result)){
{
echo "<table><tr><th>{$row['first_name']} {$row['last_name']}'s Profile</th></tr>
<tr><td>[b]About me:[/b]</td><td>{$row['aboutme']}</td></tr>
<tr><td>[b]Likes:[/b]</td><td> {$row['likes']} <br><br></td></tr></table>";
}
?>


?
Off
Profile
Quote
Top
 
Robot
No Avatar
Level 9
Looks good.

Although you could have just copied this as I had already done it for you for the forum software.
Which it looks like you might have, seeing as it now sais "user_id".
But anyway.

But yeah. That is right.

Good luck. It will be nice to see who turns out on top seeing as I've been working on Squigggle.
Off
Profile
Quote
Top
 
Gabe.
Member Avatar

looks good. good luck.
Posted Image

Ask your favourite gold member a question :r
old siggehs



Off
Profile
Quote
Top
 
Dewey
Member Avatar
Minister of Jargon and Pointless Words
good luck
Posted Image

Posted Image
Off
Profile
Quote
Top
 
flashfox
No Avatar
Disabled
thanks guys
Off
Profile
Quote
Top
 
Robot
No Avatar
Level 9
Has there been any progress?
Off
Profile
Quote
Top
 
flashfox
No Avatar
Disabled
Actually yes, there has been progress. I have completed status updates and pretty much most of the base script. Working on Commenting, a Like System, a Friends System, and Profile Privacy atm.
Any one want to develop apps for this social network like facebook has?
Off
Profile
Quote
Top
 
Robot
No Avatar
Level 9
Awesome. I'd like to see how this goes.
Off
Profile
Quote
Top
 
Andrew
Member Avatar
ぼくたちがすべてはばか。
Looks like a cool idea for a script, not gonna bother reading it though cause I'm too lazy at the moment :P and Flavius, not everybody is copying, they have their own unique ideas.
Posted Image

Professional web design/development services.http://wildandrewlee.com/
Off
Profile
Quote
Top
 
Robot
No Avatar
Level 9
Pro
Saturday, 8. January 2011, 23:19
Looks like a cool idea for a script, not gonna bother reading it though cause I'm too lazy at the moment :P and Flavius, not everybody is copying, they have their own unique ideas.
Don't worry I know he's not copying.

By the way Pro. Add me on MSN: fm_tango1@hotmail.com
Off
Profile
Quote
Top
 
Andrew
Member Avatar
ぼくたちがすべてはばか。
lol, msn won't install on my computer for some reason. One day it was working the next nope.
Posted Image

Professional web design/development services.http://wildandrewlee.com/
Off
Profile
Quote
Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Theme & Layout Display · Next Topic »

Welcome Guest [Log In] [Register]
Outline Live
Loading..
Loading..