Skip to content

Instantly share code, notes, and snippets.

<?php
/*
* Created on Nov 20, 2012
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
echo "You entered id : ",$_POST["id"];
echo "<br /> and you want to add ",$_POST["points"]," points to this user .";
<html>
<head>
<title>Add new member</title>
</head>
<body>
<form action="add.php" method="post">
user id : <input type="text" name="id" value="Enter the ID here" size="20" /><br />
bonus points : <input type="text" class="text" name="points" value="0" size="3" /><br />
<input type="submit" value="OK" /> <input type="reset" value="Reset" />
<?php
/*
* Created on Nov 20, 2012
*
* To change the template for this generated file go to
* Window - Preferences - PHPeclipse - PHP - Code Templates
*/
echo "You entered id : ",$_POST["id"];
echo "<br /> and you want to add ",$_POST["points"]," points to this user .";
-- phpMyAdmin SQL Dump
-- version 3.5.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Apr 20, 2013 at 10:41 PM
-- Server version: 5.5.30
-- PHP Version: 5.4.13
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
@alpham
alpham / hello_world.cpp
Created August 23, 2013 16:33
this code is written by Ahmed Magdy as an example for a simple application written using Qt/C++ framework.
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication a(argc, argv); // inirialize new instance of QtApplication
QLabel *label = new QLabel("Hello Qt! "); //create new label widget with initial text value "Hello Qt! "
label->setMinimumSize(500,500); // set minimal size for the label ** the label can not be smaller than the specified minimalsize
label->show(); // set the label visible as the default value of visible property is false
@alpham
alpham / make_connections.cpp
Created August 24, 2013 09:36
Signals and Slots introduction Ahmed Magdy https://www.facebook.com/QtFci
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton *button = new QPushButton("Quit");
QObject::connect(button, SIGNAL(clicked()),&app, SLOT(quit())); //here is the most important part.
@alpham
alpham / main.cpp
Created September 7, 2013 15:57
OvenTimer example on Qt 2D Graphics painting using QPainter, QPen, QBrush, and QGradient classes
#include "oventimerwidget.h"
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
OvenTimerWidget w;
w.show();
return a.exec();
<?php
include_once $_SERVER['DOCUMENT_ROOT'] .
'/includes/helpers.inc.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php htmlout($pageTitle); ?></title>
</head>
<body>
<?php
require'DataBasePos.php';
class Adminstration
{
public $Admin_Name;
public $Admin_Pass;
function View_Reports()
{
'use stirct';
function calculator(){
this.ans = 0;
var self = this;
this.add = add;
this.miniz = miniz;
this.div = div;