Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
11
Posts with Upvotes
10
Upvoting Members
8
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
1 Endorsement
Ranked #857
Ranked #1K
~92.8K People Reached
Favorite Tags
Member Avatar for Bensirpent07

So I have my PHP code here: $r = new HttpRequest('https://api.worldoftanks.com/wot/auth/login/', HttpRequest::METH_POST); $r->addPostFields(array('application_id' => 'e991ff783ae65f1ceefd1036211e5772', 'redirect_uri' => 'http://www.wotclanbuilder.com', 'nofollow' => 1)); try{ $result = $r->send()->getBody(); $json = json_decode($result); $url = json_encode($json->data->location); echo $url; } catch (HttpException $ex) { echo $ex; } and my Ajax code here: // AJAX Code To …

Member Avatar for Bensirpent07
0
322
Member Avatar for klemme

Hi all, I have two tables. - Cart (cartId, prodId, etc) - Codes (Id, cartId, Code) Each line in the **Cart table** has a code from the **Codes table**. Because of an error, we now have 20 cart rows (But another time around it could be 1000 rows, so manually …

Member Avatar for klemme
0
231
Member Avatar for abim usman

$mysql_hostname = "localhost"; $mysql_user = "root"; $mysql_password = ""; $mysql_database = "loan"; $connect = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Something went wrong..."); mysql_select_db($mysql_database, $connect) or die("Something went wrong..."); if(isset($_POST['btn_submit'])) { $datess = $_POST['datess']; $control = $_POST['control']; $payee = $_POST['payee']; if(!empty($datess) && !empty($control) && !empty($payee)) { mysql_query("INSERT INTO `sales`(`datess`, `control`, `payee`) VALUES …

Member Avatar for klemme
0
293
Member Avatar for klemme

Hi all, I have this function, which should scroll animated to an anchor. Does anyone know how I can activate this only after a form has been submitted? I want to animate the scroll down to either id="error" or id="succes" - depending on the form was submitted with or withour …

Member Avatar for Caio_1
0
7K
Member Avatar for klemme

Hi all, I am trying to set up Doctrine 2 Orm for a self made MVC framework, but keep hitting the same error when trying to retrieve data: Fatal error: Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'Class "App\models\menu" is not a valid entity or mapped super class.' in C:\wamp\www\framework\vendor\doctrine\orm\lib\Doctrine\ORM\Mapping\MappingException.php on line …

Member Avatar for lorenzoDAlipio
0
279
Member Avatar for klemme

Hi all, I have been asked to set up a wordpress site, and are finding it hard to find in the documentation how I can do the folllowing: A main link is clicked, and only then I want to show the children underneath, if there is any. Further if a …

Member Avatar for lps
0
120
Member Avatar for klemme

Hi all, I am using Ardent as a standalone package, together with Laravels Database package. Things are set up, and I can query just fine - But when I define my relations, I get a white screen when I try to dump the expected data. I have double checked and …

Member Avatar for diafol
0
312
Member Avatar for superlucile

Hello ! I'm trying to build a link between an applet in java and php. My applet in Java sends data to php. And then php writes data in the database. I use json object my code in java : public static void main(String[] args) { // TODO Auto-generated method …

Member Avatar for diafol
0
337
Member Avatar for janicemurby

Hi i have created a events script for my members to post there planned event all is working there but i want it where all members will see the events that other members have submitted in a list style like My list of events : Type: Meet at your place …

Member Avatar for janicemurby
0
155
Member Avatar for klemme

Hi all, Im starting to use composer, and have installed a few packages - This thread is about illuminate/database component. Im clearly misunderstanding something about how i can use the autoloader. I have the following directory structure: -app -assets -vendor index.php [Request goes to index.php] - This file includes composers …

Member Avatar for klemme
0
1K
Member Avatar for klemme

Hi all, I have the following code that finds specific images, and uses an attributte to create an iframe src. ( It is for youtube videos ). I am able to find the nodes and the attribute, but cant quite figure out how i REPLACE the found image with the …

Member Avatar for klemme
0
224
Member Avatar for klemme

Hi all, I am creating an ecommerce site, and have some javascript getting data from dom elements and inserting them into my PHP Cart via AJAX. It all works fine, but then i came to think of possible security issues with my approach. Button inserting data into the cart with …

Member Avatar for pritaeas
0
248
Member Avatar for klemme

Hi all, I need to make a function, that returns the number of checkbox groups that has any values marked. So im not after the checkbox alone, nor their values - Lets say I have 4 groups on the page - I need to know how many groups the user …

Member Avatar for Troy III
0
145
Member Avatar for klemme

Hi all, I am creating a function, that filters products, that are allready loaded into the DOM. JSFiddle: http://jsfiddle.net/Klemme/8CFVa/2/ Please read on, two get the issue :-) In each product div, I have listet an HTML5 data attribut like this example: data-options="{"brand":"acer","screenSize":"17","processor":"intel","grafik":"intel"}" I have 2 groups of checkboxes working now, …

0
234
Member Avatar for klemme

Hi All, I need to create a couple of webservices, where I retrieve info from the database. Found this example on php.net while searching for examples: class MyClass { public function helloWorld() { return 'Hallo Welt '. print_r(func_get_args(), true); } } try { $server = new SOAPServer( NULL, array( 'uri' …

Member Avatar for pritaeas
0
343
Member Avatar for klemme

Hey All, I am tryiung to create a function that lets me filter products on the page, by using html5 data-attributtes. Each prodct can have multiple values, as in: data-brand="acer", data-screen="17" data-processor="blah" etc etc. I am trying to make it work with two filter options at the moment, and then …

Member Avatar for klemme
0
181
Member Avatar for klemme

Hi all, I have a function that I would like to return products based on a usermade filter via check boxes. Basically: > Each product has multiple data-attributtes, for example: data-brand="acer", data-price="2995", data-screensize="15.6", data-processor="intel" So say i'm lining up 40 products, the users need to be able to narrow down …

Member Avatar for klemme
0
184
Member Avatar for klemme

Hi All I have to create a filtering function for a webshop, and need to do it client side for performance reasons. I load in x number of product, so I can get to them in the DOM - And after this I have a number of checkbox groups which …

Member Avatar for klemme
0
2K
Member Avatar for klemme

Hi all, I have a problem with my code below. It works in chrome, but acts different in IE, and sometimes FF. Im aiming to load in divs whenever the user scrolls to 220px from the bottom. Basically, I tjeck to see if the distance from the bottom < specified …

0
95
Member Avatar for klemme

Hi, I am able to post from my CMS and share the post directly on the fan page wall. **BUT** only when I have signed in to facebook, and have copied the access token from my admin profile, and directy inserted it into the php script that sends the post …

Member Avatar for beweo
0
310
Member Avatar for klemme

Hi all, I'm trying to delete elements from an array - The array should be a shopping cart - So I need to ad/remove items from it. So far I can add items no problem, but i seem to keep failing to delete the correct indexes. The array contains a …

Member Avatar for paulkd
0
3K
Member Avatar for klemme

Hi all, I am trying to lay out a plan for my classes, and havent godt the most experience in oop yet. I am using an abstract class, to be able to have a more clear overview and keep the project easier to manage. SO: I have created two abstract …

Member Avatar for diafol
0
327
Member Avatar for klemme

Hi all, I need to parse an XML file, which includes CDATA and HTML <br> tag I would like to include for my output. I would like to replace <br> with <br /><br /> - Two spaces, but it doesnt seem to happen. This is an example on the XML …

Member Avatar for pritaeas
0
5K
Member Avatar for klemme

Hi All, I am pulling out info from my db and need to tjeck if a column is 0, if it is then i need to SUM 3 other columns and pull out that total. I want to use the CASE keyword and tjeck for this, but am doing something …

Member Avatar for klemme
0
212
Member Avatar for klemme

Hi All, I get fsockopen warnings using drupals webform. Not my CMS, but am pretty sure nothing basic has been modyfied. I have attached screendump of error here in this msg. (Well, I wanted to but seems they have removed that feature?) Only thing is that i have disabeld smtp …

Member Avatar for LastMitch
0
152
Member Avatar for klemme

Hi All, I have a script that works fine for transferring files from one server to another when I use HTTP protocol. (When I use a test site that is.) Here is the script, working on test site with HTTP: // Navn på faktura der skal hentes $pdf_faktura_navn = 'Microsoft_sporgeskema.pdf'; …

Member Avatar for klemme
0
291
Member Avatar for klemme

Hi all, I have to find out to write a function that can serve PDF documents (invoices) in the browser window. My challenge is that the PDF fiels is on another server, which I do have access to. Can I somehow just create a link on the site, and then …

Member Avatar for pritaeas
0
493
Member Avatar for klemme

Hi all, I have this script sending an really simple html email. It works fine, but I cant seem to preserve the line breaks when sending the email to the client. Any idea how I can preserve line breaks? Thought nl2br would do the trick.. // Data der skal emailes …

Member Avatar for klemme
0
331
Member Avatar for klemme

Hi all, I would like to get my head around how I can create a singleton db pattern. What I have now works though, but as I know its not a singleton - My idea is this: * I would like a class that holds all config information and them …

Member Avatar for pritaeas
0
383
Member Avatar for klemme

Hi all, How come this class doesnt connect to the database..? class credentials { private static $config = array(); const DB_USER = 'root'; const DB_PASS = ''; const DB_HOST = 'localhost'; const DB_NAME = 'dev_dcs'; public function __construct() { self::$config['user'] = self::DB_USER; self::$config['pass'] = self::DB_PASS; self::$config['host'] = self::DB_HOST; self::$config['name'] = …

Member Avatar for klemme
0
166