Home >

php

Advertisement
  • fetch emails from mysql db using pdo using multiple ids in textboxFebruary 17

    I have a form that contains a textbox that the user can ad member ids to. each id is separated by a space in the textbox. When the user submits the form I want to fetch each members' email from mysql db and include a string for each email within the

  • Generate number like auto icrement with zero February 17

    This question already has an answer here: Formatting a number with leading zeros in PHP 7 answers Generate number like auto icrement with zero I wont generate ordinal number example from 0 to 999 but just 3 digit, from 3 digits zero like this 000 001

  • Why is my get_post_meta() not working? (Wordpress)February 17

    I'm making a wordpress theme where you're supposed to be able to say what categories you want to display on a specific page. To do this I figured adding a meta box would be the best bet. Only now I can't seem to get the info from the meta box. It's p

  • Laravel Check if can connect to DBFebruary 17

    I'am trying to prevent query to DB if connection is not possible. Basically if can't connect and app_debug = false it jusst throws 500 error and if app_debug = true shows error trace. I need when ther is no connection to DB just return an empty array

  • How to echo out payment amount to customer after successful purchase with paypal sdk?February 17

    I can successfully create payment with paypal rest sdk. And the code below belongs to page I redirect successful customers. success.php // #Execute Payment Sample // This is the second step required to complete // PayPal checkout. Once user completes

  • How can print form about modal bootstrap to using ajax + slim framework?February 17

    I have a modal dialog which is as the example below: <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content --> <div class="m

  • Make row yellow if $_GET is

    Make row yellow if $_GET isFebruary 17

    Intro I have a system when you click edit and submit the form, it will display in the URL as an $_GET with the ID (See the GIF for an example): Now what's the problem? I want to have the ROW that has changed (so the <tr>) light up yellow so you know

  • PHP-mysqli_fetch_all() consuming an insane amount of memory. Is this reasonable?February 17

    My echo statements in the code below are showing me that my memory usage is reasonable at the points indicated in the code [Point #1 ~= 216728bytes (~217 kb)][Point #2 = 6629952 bytes(~6.629 mb)]. However, suddenly when I call: mysqli_fetch_all($Resu

  • Echo a variable inside a variableFebruary 17

    I'm trying to figure out how to echo a variable inside a variable. This code below doesn't obviously work because I'm not echoing the variable $tweet = get_field('tweet_msg'); //this is getting the string inputted by user in the custom field $tweet_i

  • PHP - FPDI is failing to open existing PDF

    PHP - FPDI is failing to open existing PDFFebruary 17

    FPDI is failing to load existing PDF. How to fix it? require_once(APPLICATION_PATH . '/models/fpdf/fpdf.php'); require_once(APPLICATION_PATH . '/models/fpdi/fpdi.php'); $pdf = new FPDI(); $pageCount = $pdf->setSourceFile( APPLICATION_PATH . '/models/

  • how to implement a custom foreach template view methodFebruary 17

    I was coding a TemplateView Class which is replacing @somevariable@ placeholders with it's controller set correspondent. ViewHelpers are called via placeholders that simulate a function like @headerFiles()@ for example. The thing missing is a foreach

  • Take part of a huge text and print it (PHP)February 17

    I am trying to take part of a text in php. I'm talking about, for example taking "Hello my name is..." from "Hello my name is John Doe, I am a computer engineer". Is it possible to do this with php and how would I do this? UPDATE: I wa

  • Include .php file beetween localhost and external web serverFebruary 17

    I have a web space hosted on an external Linux server to my network . In a PC on my network I installed XAMPP and created an internal web server that runs the script . I need now that the file is included in the localhost in the external server . How

  • mb_split not properly splitting string with backslashesFebruary 17

    here goes my first question on Stackoverflow. When I execute the following PHP code: var_dump (mb_split ("/", "2001/12/25")); var_dump (mb_split ("\\\\", "2001\12\25")); The first line gives me expected results, but

  • Categories on Wordpress stopped workingFebruary 17

    I built a custom Wordpress theme and had tested it out on my server as a demo for my client. Everything worked smoothly on the Browse page. If you clicked a category, it showed you the posts that correspond to the category. Here is the test page I up

  • how can i get woocommerce category title and afc filed valueFebruary 17

    In my theme on home page i want to show call category name two custom file value. i tried so long but not success yet. bellow will be my html code <li class="wow fadeInDown" data-wow-duration="1.5s" data-wow-delay="0.3s"&g

  • Get image filepath using PHP and display in HTMLFebruary 17

    I have followed several posts and made progress, but I still am unable to display a jpeg image using the html img src tags which is located in my webroot folder under www/SnapShots. I would like to use PHP to search a local mysql db and return the ne

  • Dispatch event occurs multiple timesFebruary 17

    I'm using a dispatch event in Symfony, And I don't understand because I have the kernel.response twice. Controller: /** * @Route("/evento", name="evento") */ public function eventoAction() { $dispatcher = new EventDispatcher(); $subscr

  • How can I get a CSV file from a provided url and store it temporarily so I can processes it?February 17

    The user provides a location of a set of CSV files such as, http://example.com/csvfiles/. I then append the filenames to that url and "download" the files so I can process the data and store to a database. I want to use a temp file since the use

  • Android app doesnt connect to the internetFebruary 17

    I am using Eclipse, Jquery and HTML5 to create an android app. Within the app, I run some PHP to get JSON data and then display that data on screen in a listview. Pretty simple stuff. It works perfectly in CordovaSim. However when I run it on my Andr

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