PDA

View Full Version : PHP Programmer here...


dc277
11-03-2007, 07:57 PM
I am willing to help out a few sites with some PHP.
As most of you know I work for free, but this time is different I will require some pay.

Lodithia is in need of some money, so I'm helping them by offering some of my time to help other sites.

As all people, I do have limits.

Here are some of the things I can do...
Register
Login
Login Check
Logout
Create Pet
Active Pet
Profiles
etcetc...

I can do alot of things. I can't some some of the bigger projects, but ask me what you want, and I'll tell you if I can do this.

Random Examples:

I didn't know what to really code, so I just coded some random examples, I probably can do better, but these are random.


$id = mysql_real_escape_string(strip_tags($_GET['id']));
if (!$id) {
$news = mysql_query("SELECT * FROM news ORDER BY date DESC");
if (mysql_num_rows($news) == '0') {
print 'Sorry, there is currently no news.';
} else {
while ($row = mysql_fetch_array($news)) {
print '<center><table border="1">
<tr><td colspan="2">' . $row['title'] . '</td></tr>


$ran = rand(0,500);
if ($ran >= '400' && $ran <= '500') {
print 'The number that you got is between 400 and 500. YAY';
} else {
print 'Sorry, the number that you got is less then 400.';
}


session_start();
$chk = mysql_query("SELECT * FROM users WHERE username='$_SESSION[username]' AND password='$_SESSION[password]'");
if (mysql_num_rows($chk) == '0') {
unset ($_SESSION);
session_destroy();
print 'You are not logged in. To log in click <a href="/login.php">here</a>';
} else {
$dat = mysql_fetch_array($chk);
$points = $dat['points'];
$rank = $dat['rank'];
}


For everything relating to money, please contact Viral.

Remember, this is for lodithia.


Oh and PLEASE dont' give me requests that seem like a whole site.
Also I do not want to be a full-time programmer.

Requests:
1.
2.
3.

Viral
11-03-2007, 08:01 PM
This guy is amazing. He does a lot of the programming on Lodithia with Carl. Thanks so much for this, DC <3

quwequwe
11-03-2007, 08:02 PM
Oh! Good luck getting some payed coding jobs :D Thanks for helping Cosmixs too :3 You did a great job n.n

CaseytheGRAND
11-03-2007, 08:25 PM
Whats the charge? I might hire you.

dc277
11-03-2007, 08:40 PM
What would the project be? Talk can be over MSN/YIM, I added you.

Kael
11-04-2007, 07:10 AM
May I please see some of your work in action?

Also, can you complete a "basic petsite package"?

dc277
11-04-2007, 07:33 AM
Sure, I'll talk to you over MSN if that's ok.

GodsGal
11-08-2007, 09:57 PM
Are you still available for hire?

dc277
11-08-2007, 10:01 PM
Yep, I'll have to talk to you on MSN later tomorrow, because I have to get off now. :(

GodsGal
11-08-2007, 10:02 PM
Alright, thanks!

dc277
11-10-2007, 05:18 PM
I am closed at he moment (GodsGal I will still take you)

I have a huge list of things to do at the moment, When my list is shorter I'll take requests again.

DJTim666
11-16-2007, 02:28 PM
When you are using arrays use quotes. So for example when you are calling sessions use the following format.


<?php

$_SESSION['password'];
$_SESSION['username'];

?>


It would also benifit you alot to have a core file on a website with a bunch of commonly used variables.

Below is another example.

common.php

<?php

$username = $_SESSION['username'];
$password = $_SESSION['password'];

?>


Anyways, have fun coding. Wish you luck ;).

dc277
11-16-2007, 03:24 PM
I know what to do... I'm not a beginner... I use global/function files to hold stuff that will be used on everypage. (Like Login Check). I can use single quotes or double, whenever I feel like it... It's not like the page will die...

DJTim666
11-16-2007, 03:41 PM
session_start();
$chk = mysql_query("SELECT * FROM users WHERE username='$_SESSION[username]' AND password='$_SESSION[password]'");
if (mysql_num_rows($chk) == '0') {
unset ($_SESSION);
session_destroy();
print 'You are not logged in. To log in click <a href="/login.php">here</a>';
} else {
$dat = mysql_fetch_array($chk);
$points = $dat['points'];
$rank = $dat['rank'];
}



May I point out the fact that you have not used any quotes here ;)

EDIT: And yes, it will kill the script as of PHP 6... which shouldn't take much longer to be released.

Wes
11-16-2007, 05:07 PM
I know what to do... I'm not a beginner... I use global/function files to hold stuff that will be used on everypage. (Like Login Check). I can use single quotes or double, whenever I feel like it... It's not like the page will die...
You told me you've only studied PHP for a couple of months. I think that qualifies as a beginner.

cng885
01-03-2008, 03:45 PM
I dought he is a beginner this guy is safe, fast, friendly, and best of all he gets it done the way u want!!He did an avatar ssytem and it is awsome. Thanks DC!!!!