Symbianize Forum

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!

Programmer for your Needs/Questions/Inquiry/Projects/Thesis . Pasok dito!

Status
Not open for further replies.
(y) @arvinpastoraquio . Nice one ;)

Thanks sir:)

- - - Updated - - -

ts about pala sa post ko na problem. anong language po yung reply nyo? vb po ba? nakalimutan ko php po pala gamit ko :) sensya po

Sir using C# po yan. The same lang din naman po sila ng PHP di po ba? Sensya na sir, .Net lang po kasi ang gamit ko.

- - - Updated - - -

i need help
how to program an atm that displays the menu:

menu();
-menu function
balance();
-balance function
exit();
-exit function
withdraw();
-withdraw function
deposit();
-deposit function


b-balance
d-deposit
w-withdraw
e-exit

the program should loop, balance is constant to 5000 and it remain 5000 as remaining balance when withdraw.

Sir I assume the program should be Console Based right?
 
Last edited:
hello people ! I'm baaack na ulit , hehe , kung may mga questions kayo , message or comment lang kayo or sa thread na nakapost din dito :)







sir alam nyo po ba kung panu ung codes para marandomized ung tanong using php
 
Last edited:
sir ito po yung code ko sa sales transaction pahelp naman po. kasi tatangapin nya kahit ilang quantity pa eh dapat po kung ilan lang yung nakasave na quantity nung product yung tatangapin niya.

<!DOCTYPE html>
<html>
<head>
<!-- js -->
<link href="src/facebox.css" media="screen" rel="stylesheet" type="text/css" />
<script src="lib/jquery.js" type="text/javascript"></script>
<script src="src/facebox.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('a[rel*=facebox]').facebox({
loadingImage : 'src/loading.gif',
closeImage : 'src/closelabel.png'
})
})
</script>
<title>
POS AND INVENTORY
</title>
<?php
require_once('auth.php');
?>

<link href="vendors/uniform.default.css" rel="stylesheet" media="screen">
<link href="css/bootstrap.css" rel="stylesheet">

<link rel="stylesheet" type="text/css" href="css/DT_bootstrap.css">

<link rel="stylesheet" href="css/font-awesome.min.css">
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
</style>
<link href="css/bootstrap-responsive.css" rel="stylesheet">

<!-- combosearch box-->

<script src="vendors/jquery-1.7.2.min.js"></script>
<script src="vendors/bootstrap.js"></script>



<link href="../style.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<?php
function createRandomPassword() {
$chars = "003232303232023232023456789";
srand((double)microtime()*1000000);
$i = 0;
$pass = '' ;
while ($i <= 7) {

$num = rand() % 33;

$tmp = substr($chars, $num, 1);

$pass = $pass . $tmp;

$i++;

}
return $pass;
}
$finalcode='RS-'.createRandomPassword();
?>
<body>
<?php include('navfixed.php');?>
<?php
$position=$_SESSION['SESS_LAST_NAME'];
if($position=='cashier') {
?>
<a href="sales.php?id=cash&invoice=<?php echo $finalcode ?>">Cash</a>

<a href="../index.php">Logout</a>
<?php
}
if($position=='admin') {
?>

<div class="container-fluid">
<div class="row-fluid">
<div class="span2">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li hidden><a href="index.php"><i class="icon-dashboard icon-2x"></i> Main Menu </a></li>
<li class="active"><a href="sales.php?id=cash&invoice=<?php echo $finalcode ?>"><i class="icon-shopping-cart icon-2x"></i> Sales</a> </li>
<li><a href="products.php"><i class="icon-list-alt icon-2x"></i> Products</a> </li>
<li><a href="supplier.php"><i class="icon-group icon-2x"></i> Suppliers</a> </li>
<li><a href="sales_inventory.php"><i class="icon-bar-chart icon-2x"></i> Sales Report</a> </li>
<li><a href="manageuser.php"><i class="icon-group icon-2x"></i> Manage User</a></li>
<br><br><br><br><br><br>

</ul>
<?php } ?>
</div><!--/.well -->
</div><!--/span-->
<div class="span10">
<div class="contentheader">
<i class="icon-money"></i> Sales
</div>
<ul class="breadcrumb">
<a href="index.php"><li>Main Menu</li></a> /
<li class="active">Sales</li>
</ul>

<form action="incoming.php" method="post" >

<input type="hidden" name="pt" value="<?php echo $_GET['id']; ?>" />
<input type="hidden" name="invoice" value="<?php echo $_GET['invoice']; ?>" />
<select name="product" style="width:650px; "class="chzn-select" required>
<option></option>
<?php
include('../connect.php');
$result = $db->prepare("SELECT * FROM products");
$result->bindParam(':userid', $res);
$result->execute();
for($i=0; $row = $result->fetch(); $i++){
?>
<option value="<?php echo $row['product_id'];?>"><?php echo $row['product_code']; ?> - <?php echo $row['gen_name']; ?> - <?php echo $row['product_name']; ?> | Expires at: <?php echo $row['expiry_date']; ?></option>
<?php
}
?>
</select>
<input type="number" name="qty" value="1" min="1" placeholder="Qty" autocomplete="off" style="width: 68px; height:30px; padding-top:6px; padding-bottom: 4px; margin-right: 4px; font-size:15px;" / required>
<input type="hidden" name="discount" value="" autocomplete="off" style="width: 68px; height:30px; padding-top:6px; padding-bottom: 4px; margin-right: 4px; font-size:15px;" />
<input type="hidden" name="date" value="<?php echo date("m/d/y"); ?>" />
<Button type="submit" class="btn btn-info" style="width: 123px; height:35px; margin-top:-5px;" /><i class="icon-plus-sign icon-large"></i> Add</button>
</form>
<table class="table table-bordered" id="resultTable" data-responsive="table">
<thead>
<tr>
<th> Product Name </th>
<th> Generic Name </th>
<th> Category / Description </th>
<th> Price </th>
<th> Qty </th>
<th> Amount </th>
<th> Profit </th>
<th> Action </th>
</tr>
</thead>
<tbody>

<?php
$id=$_GET['invoice'];
include('../connect.php');
$result = $db->prepare("SELECT * FROM sales_order WHERE invoice= :userid");
$result->bindParam(':userid', $id);
$result->execute();
for($i=1; $row = $result->fetch(); $i++){
?>
<tr class="record">
<td hidden><?php echo $row['product']; ?></td>
<td><?php echo $row['product_code']; ?></td>
<td><?php echo $row['gen_name']; ?></td>
<td><?php echo $row['name']; ?></td>
<td>
<?php
$ppp=$row['price'];
echo formatMoney($ppp, true);
?>
</td>
<td><?php echo $row['qty']; ?></td>
<td>
<?php
$dfdf=$row['amount'];
echo formatMoney($dfdf, true);
?>
</td>
<td>
<?php
$profit=$row['profit'];
echo formatMoney($profit, true);
?>
</td>
<td width="90"><a href="delete.php?id=<?php echo $row['transaction_id']; ?>&invoice=<?php echo $_GET['invoice']; ?>&dle=<?php echo $_GET['id']; ?>&qty=<?php echo $row['qty'];?>&code=<?php echo $row['product'];?>"><button class="btn btn-mini btn-warning"><i class="icon icon-remove"></i> Cancel </button></a></td>
</tr>
<?php
}
?>
<tr>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<th> </th>
<td> Total Amount: </td>
<td> Total Profit: </td>
<th> </th>
</tr>
<tr>
<th colspan="5"><strong style="font-size: 12px; color: #222222;">Total:</strong></th>
<td colspan="1"><strong style="font-size: 12px; color: #222222;">
<?php
function formatMoney($number, $fractional=false) {
if ($fractional) {
$number = sprintf('%.2f', $number);
}
while (true) {
$replaced = preg_replace('/(-?\d+)(\d\d\d)/', '$1,$2', $number);
if ($replaced != $number) {
$number = $replaced;
} else {
break;
}
}
return $number;
}
$sdsd=$_GET['invoice'];
$resultas = $db->prepare("SELECT sum(amount) FROM sales_order WHERE invoice= :a");
$resultas->bindParam(':a', $sdsd);
$resultas->execute();
for($i=0; $rowas = $resultas->fetch(); $i++){
$fgfg=$rowas['sum(amount)'];
echo formatMoney($fgfg, true);
}
?>
</strong></td>
<td colspan="1"><strong style="font-size: 12px; color: #222222;">
<?php
$resulta = $db->prepare("SELECT sum(profit) FROM sales_order WHERE invoice= :b");
$resulta->bindParam(':b', $sdsd);
$resulta->execute();
for($i=0; $qwe = $resulta->fetch(); $i++){
$asd=$qwe['sum(profit)'];
echo formatMoney($asd, true);
}
?>

</td>
<th></th>
</tr>

</tbody>
</table><br>
<a rel="facebox" href="checkout.php?pt=<?php echo $_GET['id']?>&invoice=<?php echo $_GET['invoice']?>&total=<?php echo $fgfg ?>&totalprof=<?php echo $asd ?>&cashier=<?php echo $_SESSION['SESS_FIRST_NAME']?>"><button class="btn btn-success btn-large btn-block"><i class="icon icon-save icon-large"></i> SAVE</button></a>
<div class="clearfix"></div>
</div>
</div>
</div>
</body>
<?php include('footer.php');?>
</html>
 
Hello sir! Im making an WLAN Based Quiz.Pano ko po ba irarandom/shuffle ung choices?
 
Hello sir! Im making an WLAN Based Quiz.Pano ko po ba irarandom/shuffle ung choices?

ano ang table structure mo para dun sa questions/answer table? pakipost dito, para magawaan ng script.

- - - Updated - - -

sir ito po yung code ko sa sales transaction pahelp naman po. kasi tatangapin nya kahit ilang quantity pa eh dapat po kung ilan lang yung nakasave na quantity nung product yung tatangapin niya.

Tama ba na dito ilalagay yung quantity?
Code:
<input type="number" name="qty" value="1" min="1" placeholder="Qty" autocomplete="off" style="width: 68px; height:30px; padding-top:6px; padding-bottom: 4px; margin-right: 4px; font-size:15px;" / required>

Kung diyan nga, ingat ka sa paggamit ng input type na yan, dahil sa HTML5 lang inilabas yan type na yan, meaning dapat sa mga browsers na html5-compatible mo lang sya dapat ina-access, kung hindi, iba ang magiging behavior nyan. (e.g. Internet Explorer)

Also, may attribute ang input type number na min, to set the minimum required value. Siyempre meron din yan counterpart na max, to set the maximum allowed value. So isingit mo na lang itong attribute na to dun sa input tag mo. Like this:
Code:
<input type="number" name="qty" value="1" min="1" [B][COLOR="#FF0000"]max="<?php echo $insert_variable_for_quantity_here; ?>" [/COLOR][/B]placeholder="Qty" autocomplete="off" style="width: 68px; height:30px; padding-top:6px; padding-bottom: 4px; margin-right: 4px; font-size:15px;" / required>
 
Last edited:
ano ang table structure mo para dun sa questions/answer table? pakipost dito, para magawaan ng script.

di ko maupload sir eh pero its something like this

table: questions
question_id<----primary key
category_id<---unique key
questions<-----the questions
answer1<---opt1
answer2<---opt2
answer3<---opt3
correct<---- option integer using the value of radio button.
i was thinking sir maybe ilagay ko sa different table ang options then irandom. ang problema is 1 lang idinidisplay.help po
 
Pwede mo gawin, sa correct answer field ay varchar. It will contain the actual answer, not the option number. Para kapag nagfetch ka ng row of questions

Code:
while($rows = $dbc->fetch(PDO::FETCH_ASSOC)){ //change this line with your script for fetch resuls
	$options = range(1, 4); //assuming you have 4 choices
	shuffle($options);
	foreach($options as $option){
		echo '<input type="radio" name="questions1" value="' . $rows['opt' . $option] . '">' . $rows['opt' . $option] . '<br>';
	}	
}
 
Salamat sa mga sumasagot sa mga tanong ng mga kaSymb natin sa thread na ito ! Big :clap: sa inyo ! (y)
 
Sir

Bka pwedeng help need ng anak q na gumawa ng theater reservation system using c# kaso wala cyang idea pano uumpisahan or gagasin thesis po kc nla yan. Bka pwede nyo po cyang gawan tnx po
 
HI po sir student po ako sa STI 1st year college sna po matulungan mo ako wla po kasi akong kilalang IT sa high year lvl at ung program po na pinagawa samin ay napakahirap po pang 3rd year na daw po un sabi ng iba kong classmates.. sna po matulungan nyo ako desperado na po kasi mag post kya po nandito ako sna po matulungan nyo po ako ang deadline po nito ayy tommorow na po.. :(
*USER INFORMATION FORM
FIRST NAME,LAST NAME,MIDDLE NAME, // MAX LANG PO NYAN IS 25 CHARACTERS
AGE //NUMBERS LANG PO INAACEPT NYA
BIRTHDAY// nag aacept lng daw dapat po sya ng numbers,letters characters
PASSWORD// maximum is 6charactes lang po dapat po numbers only
TAPOS PO YUNG USERNAME // auto generated na ng program

*****PARA DAW PO MAKUHA YUNG AUTO GENERATED USERNAME************
1. get the first 3 letters of the firstname
2.get the last 3 letters of the lastname
the auto generated username must contain 3digits on last part to do this follow the logic below:
get the last 4 digits of the password
divide the last 4digits of the password to its first 2digits.
//tapos daw po pag nainput na daw po ng user yung lahat ng data na nasa fields mag didisplay naman daw po yung auto generated username as well the password
tapos po after nyan may LOG IN MODULE NA PO..
MAY ADD,EDIT DELETE PO

PANO PO KAYA TO? PLEASE HELP POOOOOO OR TYPE NYO NA LNG YUNG MGA CODES GRABE ANG PASASALAMAT KO SA MAMATULONG SAKIN..
 
^ ginagawaan na agad kita ng code, hindi pa pala included sa question mo kung anong language ang gagamitin...
 
^ ginagawaan na agad kita ng code, hindi pa pala included sa question mo kung anong language ang gagamitin...

salamat po! java po yan jcreator po maraming salamat po wait ko po yung code super thanks po!!!!!
 
mga idol alam nyo po yung VB Scheduling Algorithm?

yung FCFS, SJF SJRTF, SRTF, RR-Quantum??bago po kase ako sa visual basic tapos yun daw yung gagawin namin. kaya nagtatanong po ako sa mga master dito pra may ideya ako paano sya gagawing code
 
Sir patulong naman po sa project ko, kailangan ko po kasi magsend sa data from android to vb 6.0, sa android, gumamit po ako ng sockeg para sa connection, through wifi nga po pala ang pagsesend ng data, sa vb naman po gumamit ako ng winsock control, sa vb lagi pong naglilisten yung winsock, tapos yung sa android sya po ang magsesend, kailangan ko lang po mapagana ito para po maiapply ko sa thesis ko, january na po kasi ang deadline, sa android tinesting ko na po ang input stream, dataoutputstream, bufferedreader, kaso po pag naisesend na nya yung data wala pong nalabas sa vb, alam ko po na nangyayari yung data arrival kasi nilalagay ko sa message box yung text pag may dadating, naka store po muna yung data sa string at yung ang ididisplay ko, sa android po kasi yung writeUTF ang ginagamit kong method para maisend, kaso di ko po alam kung bakit wala text na nadating sa vb, pahelp naman po sa code lalo na po dun sa mga nakagawa na ng project na katulad nung sakin, thanks po,

socket po yung ginamit ko sa android, sensya na po, hehe,
 
Hi po, pa help naman po ako dito sa codes ko . kapag hindi sya same ng password na nilagay hindi po lumalabas yung script alert na "Password don't match" . Thanks in advance :)



<h2 style="text-align:center;">Change your password</h2>
<form action="" method="post">

<table align="center" width="700">

<tr>
<td align="right"> <b> Current Password: </b> </td>
<td> <input type="password" name="current_pass" required /> </td>
</tr>

<tr>
<td align="right"> <b> New Password: </b> </td>
<td> <input type="password" name="new_pass" required /> </td>
</tr>

<tr>
<td align="right"> <b> Confirm New Password: </b> </td>
<td> <input type="password" name="new_pass_again" required /> </td>
</tr>

<tr align="center">
<td colspan="8"> <input type="submit" name="change_pass" value="Change Password" /> </td>
</tr>

</table>

</form>


<?php

include("includes/db.php");

if(isset($_POST['change_pass'])) {

$user = $_SESSION['cust_email'];

$current_pass = $_POST['current_pass'];
$new_pass = $_POST['new_pass'];
$new_again = $_POST['new_pass_again'];

$sel_pass = "SELECT * FROM customers WHERE cust_pass='$current_pass' AND cust_email='$user'";

$run_pass = mysqli_query($con, $sel_pass);

$check_pass = mysqli_num_rows($run_pass);


if($check_pass==0) {

echo "<script>alert('Your current password is wrong!')</script>";
exit();

}


if($new_again!=$new_pass) {

echo "<script>alert('Password don't match!')</script>";

}

else {

$update_pass = "UPDATE customers SET cust_pass='$new_pass' WHERE cust_email='$user'";

$run_update = mysqli_query($con, $update_pass);

echo "<script>alert('Password Changed Succesful!')</script>";
echo "<script>window.open('my_account.php','_self') </script>";

}



}



?>
 
Hello mga kaSymb ! Para po sa mga naghahanap ng makatutulong sa inyo para sa personal, business or school needs ninyo na related sa programming/applications, baka makatulong ako sa inyo.

Kung may tanong/sadya/request kayo, mangyaring pindutin lamang ang LINK NA ITO - Nalipat po kasi yung isang thread ko pero ginawa ko na lang din syang link para pwede kayong magReply dun , sa thread na ito , or iMessage ako sa account ko :)

Salamat and kita kits ulit mga kaSymb ! :)


P.S: May tatlong additional services na din po akong available , maaari ninyong bisitahin ang LINK na ito para sa kabuuuang detalye. Salamat ! :)
sir eclipse ,, kaya nyo rin ba gumawa?? androip app sir using eclipse?? thanks po god bless
 
Sir patulong naman po sa project ko, kailangan ko po kasi magsend sa data from android to vb 6.0, sa android, gumamit po ako ng sockeg para sa connection, through wifi nga po pala ang pagsesend ng data, sa vb naman po gumamit ako ng winsock control, sa vb lagi pong naglilisten yung winsock, tapos yung sa android sya po ang magsesend, kailangan ko lang po mapagana ito para po maiapply ko sa thesis ko, january na po kasi ang deadline, sa android tinesting ko na po ang input stream, dataoutputstream, bufferedreader, kaso po pag naisesend na nya yung data wala pong nalabas sa vb, alam ko po na nangyayari yung data arrival kasi nilalagay ko sa message box yung text pag may dadating, naka store po muna yung data sa string at yung ang ididisplay ko, sa android po kasi yung writeUTF ang ginagamit kong method para maisend, kaso di ko po alam kung bakit wala text na nadating sa vb, pahelp naman po sa code lalo na po dun sa mga nakagawa na ng project na katulad nung sakin, thanks po,

socket po yung ginamit ko sa android, sensya na po, hehe,

kung ascii lang naman na data ang pinagpapalitan nilang dalawa, why not use use XML or JSON format? im sure may parser libraries yan silang pareho para jan, pero kung kaya mo png pag aralan yung Redis, RabbitMQ etc, yan yung usually solution sa mga ganyang type ng problems. wag ka ng magpakahirap mag debug, gamit ka na lang ng existing solutions. Goodluck.
 
Last edited:
hello mga kaSymb! iuUp ko lang ang thread na ito kasi naka move on na ako sa huling nangyari saking pang sscam, haha! Kaya ready to accept na ulit ako ng mga app requests mula sa inyo. Salamat sa mga patuloy na nagpiPM sakin sorry kung hindi ko nasagot lahat dahil sa nangyari, pero eto na ulit ako, game na game na ! :D

Salamat! :)
 
yow sir aun nakapag post na ata ako...

PM SENT

PHP
Sales and Inventory
re-fix registration/login
currently using bootstrap thing

mag ppm po sainyo about sa contacts stuff ???
 
Last edited:
yow sir aun nakapag post na ata ako...

PM SENT

PHP
Sales and Inventory
re-fix registration/login
currently using bootstrap thing

mag ppm po sainyo about sa contacts stuff ???

hi ser naPM ko na po sau yung contact details ko para makapag usap tau for more details :))
 
Status
Not open for further replies.
Back
Top Bottom