Posts by YVMdesign
-
-
-
Wat is er mis met deze query;
PHPmysql_query("UPDATE Members SET xp + 3 WHERE nickname = '" .$information['nickname']. "'") or die(mysql_error());
$information bestaat!
De error is;
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '+ 3 WHERE nickname = 'Darwin'' at line 1
Wie ken me helpen?
Gr
-
Er staat
if($checkPayment == true)
Dan is ie gelukt lijkt mij dus dan doe ik daar de mysql INSERT
-
ontoppic?
Ik heb een probleem, ik snap iets niet +o(
Als de gebruiker de betaling heeft afgerond, dan moet er iets gebeuren een INSERT.Doe ik het op deze plaats goed?
PHP
Toon Meer<?php require_once("classes/wallie.class.php"); $wallie = new Mollie_Wallie(xxxxx); if(!isset($_GET['transaction_id']) and !isset($_GET['amount'])) { if($wallie->createPayment(250, "http://www.uwsite.nl/wallie/example.php", "http://www.uwsite.nl/wallie/example.php")) { header("location: ". $wallie->getWallieUrl()); } else { // show message that the payment could not be created // the function $wallie->getStatus() returns the status // message that Mollie returns } } elseif(isset($_GET['payment_type']) and $_GET['payment_type'] == "wallie" and isset($_GET['transaction_id']) and isset($_GET['amount'])) { $checkPayment = $wallie->checkPayment($_GET['transaction_id'], $_GET['amount']); if($checkPayment == true) { $paymentAmount = $wallie->getAmount(); mysql_query("INSERT INTO Donation (nickname, donationcode, time, payment) VALUES ('" .$information['nickname']. "', '" .donationcode(). "', '" .time(). "', '" .$_GET['payment_type']. "')"); } else { // Payment failed } } else { // Moet hier het scherm komen als alles gelukt is? } ?>
-
Had het al gevonden, alsnog bedankt.
:slotje:
-
-
Ik laat hem op twee manieren zien hoe het kan
Waar ik een * FROM gebruik omdat ie alles dan uit de rij haalt?
-
-
Ik heb via de tut die ik heb geupload op cp.
Ik ga hem nog een keer opnieuw proberen als ie het opnieuw doet dan laat ik het weten.
-
Weet niet of het bij de goede forum zit
Ik wil op een vm een webservertje opzetten.
Ik instaleer alles via tarball sources
Maar als ik dan php.ini kopieer naar de map waarin hij moet staan geeft alle php files een witte pagina aan.Wie weet wat ik er aan kan doen?
-
Spy het is inderdaad zoals SkyNet zegt niet echt professioneel
Ik wil eigenlijk een old skool game maken. Simpele layout, snelle gameplay.
Nieuwe reactie samengevoegd met originele reactie op 21.06.10 11:39:20:
UPDATE:Ik ben zo ongeveer klaar met de "Members" tabel.
Hier is iePHP
Toon Meer/* -- Members -- */ CREATE TABLE IF NOT EXISTS Members ( id int(20) NOT NULL AUTO_INCREMENT, nickname varchar(16) NOT NULL DEFAULT, signupdate int(50) NOT NULL DEFAULT, lastlogin int(50) NOT NULL DEFAULT, email varchar(50) NOT NULL DEFAULT, ip varchar(50) NOT NULL DEFAULT, city varchar(50) NOT NULL DEFAULT, bloodgroup varchar(5) NOT NULL DEFAULT, honourpoints int(10) NOT NULL DEFAULT, forumposts int(10) NOT NULL DEFAULT, /* ---------------------- */ xp int(5) NOT NULL 0, health int(5) NOT NULL DEFAULT 0, boskill int(5) NOT NULL DEFAULT 0, /* ---------------------- */ family varchar(16) NOT NULL DEFAULT, capo varchar(16) NOT NULL DEFAULT, /* * LEVEL: * Don * Sottocapo * Consiglieri * Capo * BO * Successor * Capo-Successor * (Hammer) * Member */ level varchar(16) NOT NULL DEFAULT, /* ---------------------- */ cash int(20) NOT NULL DEFAULT 0, bank int(20) NOT NULL DEFAULT 3500, /* ---------------------- */ boexperience int(10) NOT NULL DEFAULT 0, crimeexperience int(10) NOT NULL DEFAULT 0, nickacarexperience int(10) NOT NULL DEFAULT 0, carracesexperience int(10) NOT NULL DEFAULT 0, killexperience int(10) NOT NULL DEFAULT 0, /* ---------------------- */ crimewaiting int(50) NOT NULL DEFAULT, nickacarwaiting int(50) NOT NULL DEFAULT, heistwaiting int(50) NOT NULL DEFAULT, ocwaiting int(50) NOT NULL DEFAULT, flightwaiting int(50) NOT NULL DEFAULT, bulletwaiting int(50) NOT NULL DEFAULT, killwaiting int(50) NOT NULL DEFAULT, carracewaiting int(50) NOT NULL DEFAULT, bloodtransactionwaiting int(50) NOT NULL DEFAULT, boozewaiting int(50) NOT NULL DEFAULT, narcswaiting int(50) NOT NULL DEFAULT, /* ---------------------- */ plane varchar(250) NOT NULL DEFAULT, bullets int(20) NOT NULL DEFAULT 0, protection varchar(250) NOT NULL DEFAULT, weapon varchar(250) NOT NULL DEFAULT, bodyguards int(5) NOT NULL DEFAULT 0 ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
Zeg maar wat je er van vind, of je weet iets beters
GR
-
-
-
Ik ben bezig met de standaart html.
Hoe de website eruit komt te zien.
Dit is de header (<head>...</head>
PHP
Toon Meerecho "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"nl\"> <head> <title>" .$settings['title']. "</title> <script src=\"" .$_SERVER['DOCUMENT_ROOT']. "/includes/js/ubb.js\" type=\"text/javascript\"></script> <link rel=\"stylesheet\" href=\"" .$_SERVER['DOCUMENT_ROOT']. "/layout/css/style.css\" type=\"text/css\" /> <link rel=\"stylesheet\" href=\"" .$_SERVER['DOCUMENT_ROOT']. "/layout/css/reset.css\" type=\"text/css\" /> </head> <body>";
Ik gebruik deze source ook zelf voor mijn game en als ie af is ga ik licenties verkopen.
Als het zo ver is horen jullie iets van mij.
-
-
meloentje
als ik tijd heb voeg ik je toePatrick
De pagina is nog niet helemaal klaar, ik ga een temaplate class makenIk moet dat ook nog fixen inderdaad.
Ik ga morgen verder, ik ben nou de config aan het maken.
Ik gebruik .inc files voor de include files, ik verander in de httpd config dat hij een .inc file laat parsen als een .php file.Heb je apache vragen of unix (linux) vragen, PM mij
-
Versio.nl
Is ook goedkoop
-
Hallo cpers.
Ik ben weer terug, weet niet of iemand dat is opgemerkt. dat maakt ook niet uit :sst:
Ik begin weer aan mijn maffia game te werken, zo als gewoonlijk bouw ik hem op vanaf 0.
Ik ben nu bezig met de profiel pagina edit te maken.
Hier alvast een voorbeeld.
PHP
Toon Meer<?php /* * Copyright Crimini Web game * Game version 1.0 * Filename: changeprofile.php */ include($_SERVER['DOCUMENT_ROOT']. "/includes/config.inc"); include($_SERVER['DOCUMENT_ROOT']. "/includes/functions/ubb.inc"); // include($_SERVER['DOCUMENT_ROOT']. "/includes/functions/login.inc"); // login(); // logincheck, not done yet // do not watch the html, its a little bit messy echo "<html> <head> <script language=\"JavaScript\" type=\"text/javascript\"> function setemoticon(which) { document.form1.message.value = document.message.bericht.value + which; } </script> </head> <body>"; if($_SERVER['REQUEST_METHOD'] == "POST") { echo "Profiel pagina geupdate"; mysql_query("UPDATE members SET profile='" .addslashes($_POST['message']). "' WHERE username='" .$data['username']. "'"); header("Refresh: 5; url=changeprofile.php"); } else { echo "<form method=\"post\"> Verander hier je profiel informatie. <br> <br> <a href=\"javascript:setemoticon(\":D\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_biggrin.gif\" alt=\":D\"></a> <br> <a href=\"javascript:setemoticon(\":S\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_confused.gif\" alt=\":S\"></a> <br> <a href=\"javascript:setemoticon(\":P\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_razz.gif\" alt=\":P\"></a> <br> <a href=\"javascript:setemoticon(\":O\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_surprised.gif\" alt=\":O\"></a> <br> <a href=\"javascript:setemoticon(\"(H)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_cool.gif\" alt=\"(H)\"></a> <br> <a href=\"javascript:setemoticon(\"(6)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_twisted.gif\" alt=\"(6)\"></a> <br> <a href=\"javascript:setemoticon(\":)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/:).gif\" alt=\":)\"></a> <br> <a href=\"javascript:setemoticon(\":(\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_frown.gif\" alt=\":(\"></a> <br> <a href=\"javascript:setemoticon(\";)\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_wink.gif\" alt=\";)\"></a> <br> <a href=\"javascript:setemoticon(\":|\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_neutral.gif\" alt=\":|\"></a> <br> <a href=\"javascript:setemoticon(\":$\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_redface.gif\" alt=\":$\"></a> <br> <a href=\"javascript:setemoticon(\":'(\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_cry.gif\" alt=\":'(\"></a> <br> <a href=\"javascript:setemoticon(\"8o|\")\" onfocus=\"filter:blur()\">" .$_SERVER['DOCUMENT_ROOT']. "<img src=\"/static/layout/images/emoticons/icon_mad.gif\" alt=\"8o|\"></a> <br> <br> <textarea name=\"message\" cols=\"60\" rows=\"10\">" .ubb($data['profile']). "</textarea> <br> <br> <input type=\"submit\" value=\"Update\"> </form>"; } echo "</body></html>"; ?>
Ik wil er mischien een open source van maken.
Als je er iets over hebt te zeggen, zeg het dan.Ik zoek nog een designer voor een layout.
Ben jij diegene PM me maar.Greetz
-
Ow sorry niet gelezen.
Ik zou dan geen oplossing weten