This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//loop test | |
$result = mysqli_query($link, 'SELECT * FROM `supply` WHERE id=' . intval($_SESSION["id"])); | |
$rows = array(); | |
while($row = mysqli_fetch_array($result)) | |
$rows[] = $row; | |
foreach($rows as $row){ | |
$ename = stripslashes($row['supplier_name']); | |
$produkt = stripslashes($row['product_name']); | |
$color = stripslashes($row['color_color']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
var wartoscTowaru: Float = 13 | |
var rabat:Int = 10 | |
func obliczRabat ( wartoscTowaru : Float, wysokoscRabatu : Int ) -> String { | |
let wartoscRabatu: Float = wartoscTowaru * Float(rabat) / 100 | |
let formatWartoscRabatu = String(format: "%.2f", wartoscRabatu) | |
let kwotaPoRabacie = wartoscTowaru - wartoscRabatu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Implementation of App Widget functionality. | |
*/ | |
public class aiq_priceWidget extends AppWidgetProvider { | |
static String CLICK_ACTION = "Clicked!"; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getMilk(howManyMilkCartond : Int, howMuchMoneyRobotWasGiven : Int) -> Int { | |
print("go to the shops") | |
print("buy \(howManyMilkCartond) cartons of milk") | |
let priceToPay = howManyMilkCartond * 2 | |
print("pay \(priceToPay) dolars") | |
print("come home") | |