- Messages
- 128
- Reaction score
- 1
- Points
- 28
uso talaga ang hingian ng system, wala bang katulad ng iba na nagsusumikap gumawa.
Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
patulong naman first assignment ko
Database using MS access
ganto yung pinapagawa samin .
faculty
subjects
students
grades
wala akong idea kung papano magagwa![]()
patulong naman po![]()
![]()
PA-HELP naman po.
may dalawang coordinates po ako. "initial" at "next" coordinates.
Gusto ko kasi na ipatravel ang pointer ko from initial to next coordinates.
example: ang steps na itravel ni 'Y' ay xa ring steps na matravel ni 'X'
so far, ang idea ko is to get the slope pero malaki yung error.
patulong naman ng algorithm na iba.
thanks po.
1. get angle between points with atan2(dy,dx)
2. calculate components by (cos(theta)*speed, sin(theta) * speed)
1. normalize your vector by dividing it by its magnitude.
ie.
Code:dx = targetx - posx dy = targety - posy mag = sqrt(dx*dx + dy*dy) dx = dx/mag dy = dy/mag
2. add dx and dy to your position every frame.
1. Determine how many steps you want to use up from pos to target.
2. get distance between 2 vectors b-a.
3. Divide it by steps
4. Add it to pos every frame until counter == steps.
patulong naman first assignment ko
Database using MS access
ganto yung pinapagawa samin .
faculty
subjects
students
grades
wala akong idea kung papano magagwa![]()
patulong naman po![]()
![]()
mga idol pwd patulong paanu gumawa ng algorithm?hindi ko kc yan alam
$per_page = 10;
$result = mysql_query("SELECT * FROM tbl_posts WHERE topic_id='$id'");
$total_results = mysql_num_rows($result);
$total_pages = ceil($total_results / $per_page);
if (isset($_GET['page']) && is_numeric($_GET['page']))
{
$show_page = $_GET['page'];
if ($show_page > 0 && $show_page <= $total_pages)
{
$start = ($show_page -1) * $per_page;
$end = $start + $per_page;
}
else
{
$start = 0;
$end = $per_page;
}
}
else
{
$start = 0;
$end = $per_page;
}
for ($i = 1;$i
<
= $total_pages;$i++)
{
echo "<a href='viewtopic.php?id=$id&page=$i'>$i</a> ¤ ";
}
mga masterpde po pa help sa problem ko about php?
Kung pde ho sana maghingi ako sa inyo ng simpleng code lng na gamit php,mag tritrigier or tatawag ng javascript text or effects at ska simpleng input to database ang php with javascript.wala kasi akong alam dito pero gustong matuto at mahirap kasi maintindihan sa google mga masters![]()
//Retrieve form inputs.
$strMemberID = generateMemberID();
$strMemberName = isset($_POST['txtMemberName']) ? trim($_POST['txtMemberName']) : "";
$strMemberPassword1 = isset($_POST['txtMemberPassword1']) ? trim($_POST['txtMemberPassword1']) : "";
$strMemberPassword2 = isset($_POST['txtMemberPassword2']) ? trim($_POST['txtMemberPassword2']) : "";
$strMemberType = isset($_POST['lstMemberType']) ? trim($_POST['lstMemberType']) : "Regular";
$strMemberEmail = isset($_POST['txtMemberEmail']) ? trim($_POST['txtMemberEmail']) : "";
$strMemberFullName = isset($_POST['txtMemberFullName']) ? trim($_POST['txtMemberFullName']) : "";
$strMemberAddress = isset($_POST['txtMemberAddress']) ? trim($_POST['txtMemberAddress']) : "";
$strMemberContactNumber = isset($_POST['txtMemberContactNumber']) ? trim($_POST['txtMemberContactNumber']) : "";
//Reset status message.
$strErrorMessage = "";
$strSuccessMessage = "";
//If submit button is clicked,
if(isset($_POST['btnSubmit']))
{
//If no member name is entered,
if(trim($strMemberName) == "")
{
$strErrorMessage = "Please enter user name.";
}
//If no member password is entered,
else if(trim($strMemberPassword1) == "")
{
$strErrorMessage = "Please enter password.";
}
//If no password confirmation is entered,
else if(trim($strMemberPassword2) == "")
{
$strErrorMessage = "Please confirm password.";
}
//If passwords do not match,
else if(trim($strMemberPassword1) != trim($strMemberPassword2))
{
$strErrorMessage = "Passwords do not match.";
}
//If no member type is selected,
else if(trim($strMemberType) == "")
{
$strErrorMessage = "Please select account type.";
}
//If no member email is entered,
else if(trim($strMemberEmail) == "")
{
$strErrorMessage = "Please enter email address.";
}
//If email address is invalid,
[COLOR="Red"]else if(! preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $strMemberEmail))[/COLOR]
{
$strErrorMessage = "Please enter valid email address.";
}
//If no full name is entered,
else if(trim($strMemberFullName) == "")
{
$strErrorMessage = "Please enter full name.";
}
//If no address is entered,
else if(trim($strMemberAddress) == "")
{
$strErrorMessage = "Please enter address.";
}
//If no contact number is entered,
else if(trim($strMemberContactNumber) == "")
{
$strErrorMessage = "Please enter contact number.";
}
//Otherwise,
else
{
//Get member information.
$sqlQuery = "SELECT * FROM member_tbl WHERE member_name = '" . $strMemberName . "' OR member_email = '" . $strMemberEmail . "'";
//Execute query.
$cmdQuery = mysql_query($sqlQuery) or die(mysql_error());
//If at least one record is found,
if(mysql_num_rows($cmdQuery) > 0)
{
$strErrorMessage = "User name / email address is already registered.";
}
//Otherwise,
else