View Full Version : Need a cheap programmer...
GodsGal
11-19-2007, 11:25 AM
Hehe...anyone willing to code a few basics for under $15? I know I probably won't get too many offers, but I'm just wondering.
juddster
11-19-2007, 05:53 PM
What would you want your programmer to do for 15$ (please expand on what type of features you would like so people know what they are getting themselves into)...
~juddster
GodsGal
11-19-2007, 08:07 PM
Just like...an adoption script and maybe something more if the person's cheap. It wouldn't be a completely normal adoption script though(not like a copy of other petsites), but it shouldn't be complicated.
Taowie
11-19-2007, 08:13 PM
I'll be willing to do it if no one else does, but you may have to wait until Wednesday or Thursday. I am swap with school work >w<
Good luck finding a programmer.
I'll do it. Sample:
<?php
$sp = strip_tags($_POST["species"]);
$sql00 = mysql_query("SELECT * FROM `species` WHERE `name`='$sp' ");
$numrows = mysql_num_rows($sql00);
if($numrows == 0) {
die("That's not a valid pet!");
}
else {
$array = mysql_fetch_array($sql00);
if($array["limited"] == 1) {
$sql01 = mysql_query("SELECT * FROM `limiteds` WHERE `pet`='$sp' AND `stock`>'0' ");
if(mysql_num_rows($sql00) == 0) {
die("That pet is out of stock!");
}
}
print "<img src=\"images/pets/$sp.bmp\"><br><b>$sp</b>";
}
?>
In case you can't tell, it checks to see if a species is limited edition.
GodsGal
11-20-2007, 07:46 PM
Can this thread be closed? I finally decided to wait on this, seeing it's Christmas season and I have to buy presents and all.
juddster
11-21-2007, 07:36 AM
I would watch out because xtmx's script is not very secure since you can easily inject SQL statements into it just by changing the value that is posted in species.
~juddster
revopets
11-21-2007, 08:12 AM
$sp = mysql_real_escape_string(strip_tags($_POST["species"]));
There. Do it for the others and you're fine.
juddster
11-21-2007, 08:29 AM
there ya go;)...you can never be too careful
~juddster
Taowie
11-21-2007, 08:59 AM
If you don't mind me going off topic, what is the purpose of posting a block of code for a commission job? Chances are, if the person looking for a programmer, they do not know much about programming themselves to determine what excately the script does or what it'd be used for.
It may be best to actually post links to a site that you are/have worked on to see how the script functions other than just posting code. For example, if I posted:
foreach($store->stock_data as $key => $value)
{
$template->assign_block_vars('register_sort_type', array(
'NAME' => $key
));
for($i = 0; $i < count($store->stock_data[$key]); $i++)
{
// If the same item has different variations to it, like colors
$first_pos = "";
if($store->display_data[$key][$i]['item_multi'] == true)
{
$sql = "SELECT position_pose, position_name
FROM " . ITEM_APPAREL_POS_TABLE . "
WHERE apparel_id = " . $store->stock_data[$key][$i]['item_id'] . "
ORDER BY position_pose DESC";
if ( !($result = $db->sql_query($sql)) )
{
message_die(CRITICAL_ERROR, "Could not retrieve addition item poses for varation item type.");
}
while($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('register_item_group', array(
'STOCK_ID' => $store->stock_data[$key][$i]['stock_id'],
'NAME' => $store->display_data[$key][$i]['item_name'] . ' ' . $row['position_name'],
'POS' => $row['position_pose'],
'IMAGE' => $store->display_data[$key][$i]['item_image'] . $row['position_pose']
));
$first_pos = ( empty($first_pos) ) ? $row['position_pose'] : $first_pos;
}
$db->sql_freeresult($result);
$store->display_data[$key][$i]['item_image'] .= $first_pos;
}
$template->assign_block_vars('register_item', array(
'STOCK_ID' => $store->stock_data[$key][$i]['stock_id'],
'NAME' => $store->display_data[$key][$i]['item_name'],
'DESC' => $store->display_data[$key][$i]['item_desc'],
'PRICE' => $store->stock_data[$key][$i]['stock_price'],
'TYPE' => $store->display_data[$key][$i]['item_type'],
'IMAGE' => $store->display_data[$key][$i]['item_image'],
'GENDER' => $store->display_data[$key][$i]['item_gender'],
'VARI' => $store->display_data[$key][$i]['item_multi']
));
}
}
But if I posted a link to the actual page:
http://www.letsgo-outsets.com/shop/buy/
It's easier to determine what the script does that jut posting part of it
juddster
11-21-2007, 09:28 AM
You are asked to put a code snippet because from it you are able to see people's coding styles. This can spot the following:
- whether or not they are a good and SECURE coder
- whether or not their style will go with the style of you other coders (if there is already one)
~juddster
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.