Home >

php

Advertisement
  • Doctrine 2 - iterate() - white screen errorFebruary 17

    I'm trying to get a lot of records from a database (about 30 000 results) with Symfony 2. In the Symfony there is a Doctrine database layer (Doctrine ORM & Doctrine DBAL). I would need to export these records into a Excel sheet file. I tried to do th

  • PHP Contact Form - Posting to a send script, on validation fail, return to contact form & page anchorFebruary 17

    my first post so be gentle... I have a PHP contact form where on a php page (contact.php) <form id="contact" method="post" action="send.php"> On clicking the send button the data goes to the send.php script to be valida

  • Node.js vs PHP which one should I start learning currently?February 17

    I want to learn a suitable backend language. I came to the point where i asked myself whether currently PHP7 or Node.js has more future potential. (Currently doing the Free Code Camp Certification and in the Backend Section this question came up: "Wh

  • PHP MySqli INNER JOIN User ID ErrorFebruary 17

    I'm trying to grab a message in then show it under my notification tab, but it don't show the message I'm trying to do a INNER JOIN from two table members table and notifications table this is how my table structure is set up. Members Table memberID,

  • wsdl error: XML error parsing WSDLFebruary 17

    I try to send information from client side to web service. But it shows me this error.. Error encontrado:wsdl error: XML error parsing WSDL from http://cfd.sicofi.com.mx/SicofiWS/CFD.asmx?wsdl on line 5: EntityRef: expecting ';' and my php code $serv

  • d3 - Uncaught TypeError: data.forEach is not a functionFebruary 17

    I am working with a scatter plot in d3. I am successfully connected to my database with the php script below but when I run my d3 code I get the error: Uncaught TypeError: data.forEach is not a function On the connection call to the php script in my

  • PHP $_SESSION variable undefined using SlimFebruary 17

    I'm trying to set a session variable in php using Slim. I want the users id to be stored as a variable to use elsewhere. I think I have the syntax or order wrong in my functions. Here is my function to set the variable: function loadAdmin() { //Set n

  • How to use OAuth 2.0 just for authorization client application in my APIFebruary 17

    I have API in my site, and need to use access token for every request from client application. I don't have a user for authentification. I have client id in db of my site and client app will have that client id too. What stages I need to do using OAu

  • Creating PHP date variable from MySQL DatabaseFebruary 17

    I'm very new to PHP, and I am having an issue with prepared statements. I need to retrieve a date from a MySQL table and store it into an array. Here are my prepared statements: // Get name for selected team $queryTeam = 'SELECT * FROM teams WHERE te

  • Change background color of different website in single iframeFebruary 17

    In parent frame, there are three links (of different website - subdomains) and one button which opens a modal window. iframe has a default website, but the website changes whenever any link is clicked. I want to change the background color in iframe

  • How to host mySQL server on other system on LAN?February 17

    Okay, so I have an mySQL server running on NUE-1-5 (192.168.1.125). I have phpMyAdmin being hosted on this system too so I can easily manage the sql remotely. I have another server called NUE-1-6 (192.168.1.126) hosting an altis life server for arma

  • How to return custom API response for "No query results for model", Laravel

    How to return custom API response for "No query results for model", LaravelFebruary 17

    I am building an RESTful API in Laravel 5.2. In my resource controllers I want to use implicit model binding to show resources. e.g. public function show(User $users) { return $this->respond($this->userTransformer->transform($users)); } When a re

  • PHP max_execution_time and multiple consecutive AJAX callsFebruary 17

    So, I know that max_execution_time will limit the length of time a single php script can run on the server, but what I wonder is if I have a script that calls another through ajax, are they considered one script or two for the purposes of this? For e

  • Storing Data in Mysql or Cache vs Calculating in PHPFebruary 17

    I have a table with 8000 Vendors (Think a Seller on Amazon). Each Vendor has around 100 items in their purchase history with columns such as price, tax, date. Each Vendor has columns such as State, Region, Type. I am creating a Html Table to display

  • Php reading file won't updateFebruary 17

    Recently, I worked on a web project where you can input some text and it will save in an HTML file, but on the same website it will read constantly from the file and it will show the text on the page. But the problem is if I change the text in the fi

  • Retrieving meta values from database to CSVFebruary 17

    I am working on this database in which the data is serialized and its in multidimensional array. I am trying to retrieve the data into CSV file. One more thing to mention is being saved from WordPress. I read that WordPress automatically serialize th

  • How to access WAMP server from non-localhost address?February 17

    We have looked up about 20 different questions like this one and none of them have worked for us. We are attempting to access our WAMP server from something other than localhost. localhost works fine, but 127.0.0.1, 192.168.1.17 (our internal ip addr

  • Detecting content type of a file based on its resourceFebruary 17

    I'm attempting to determine the content type of a file based on its resource. Something along these lines: $resource = fopen('/path/to/file', 'r'); $contentType = getContentTypeFromResource($resource); I know of a way to get the content type of a fil

  • Displaying two hrefs into separate columns in a tableFebruary 17

    I have a problem which I am having difficulty with. I have a system which displays video tutorials. My code below displays the name of the video (eNISATQuestion) and the link to the video (eNISATVideo) as one href. I want to add another column to dis

  • Why use an action hooked to a single function compared to just calling the function?February 17

    I wanted to modify a function that was attached to a hook in woocommerce and noticed the action only attaches to a single function. What benefit do I get out of using an action vs the hooked function in my template?

Copyright (C) 2017 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 13 q. 0.322 s.