正规365体育投注

Questions tagged [php]

PHP is a widely used, high-level, dynamic, object-oriented and interpreted scripting language primarily designed for server-side web development. Used for questions about the PHP language.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Docker toolbox Mac OS xDebug

I'm using Docker Toolbox (docker-machine) in Mac OS 10.13, and trying to use xDebug with php 7.1. At first I configured the interpreter via Docker container in virtual machine: Interpreter ...
-2
votes
0answers
10 views

Checking existing SQL Entries with PHP [duplicate]

I want to simply check, if an email address is already taken inside a sql database. Want to keep it simple. Is for small project. I perform it like this: if ($mysqli->connect_error) { die("...
0
votes
1answer
15 views

PHP - hexdec() function return float value for large numbers

When I use hexdec() function, it will return float value for large number. Ex: 1) $a = hexdec("10111213"); => output: int(269554195) 2) $a = hexdec("1011121314151617"); => output: float(1....
0
votes
0answers
9 views

Displaying a user's IP adress [closed]

I wrote some PHP code to get a users IP address and display it. However, when the page loads, it displays the users IP address publicly to all users who connect the site. This is not what i want. I ...
0
votes
1answer
8 views

Data not retrieved from database

I have this piece of code: <?php global $wpdb; $table_name = $wpdb->prefix . 'wpex_programma'; // This retrieves the data from the database $retrieve_data = $wpdb->get_results( "SELECT ...
-1
votes
1answer
12 views

Wordpress OrderBY on post_meta value

I have post in which their are two meta keys. i.e start_year and end_year start_year and end_year both are optional field. In case if they are empty I have stored like 0000. I want to fetch record ...
0
votes
0answers
15 views

Improving parts of legacy php code with Vue.js

The website I'm working on uses PHP to render HTML templates, and I'm looking to slowly introduce Vue.js to the code base by targeting isolated components or widgets in the website. An example of the ...
0
votes
0answers
27 views

Trying to get multidimensional array to a query string

I am trying to build a multidimensional array to a query string for an API request. $key = env('GRAPHHOPPER_API_KEY', null); $baseUrl = "http://graphhopper.com/api/1/route"; $formData = ...
-1
votes
0answers
6 views

How to retain selected option in dropdown list even going to another page in php?

Assume that this code is inside a form tag with a method of post <label>Course</label> <select name="course" class="form-control" id="course"> ...
-2
votes
0answers
13 views

How do I make a notification table that makes eloquent relationships to other tables without making too many “<source>_id” columns

Suppose that I have a Notification Table that gets generated when a new log from another table is generated. Suppose I have 3 different logs with different purpose namely: sms_logs, call_logs, and ...
0
votes
0answers
8 views

How to insert all values into database using drupal 7

I am trying to insert values into database in Drupal 7 but It is inserting only first and one record. Here is my code: $node = node_load($node->nid); $result = db_select('...
-3
votes
1answer
24 views

How to fix an unexpected end of file error in php source code [duplicate]

I am just creating a login page. On this page when I try to login by entering username and password, it shows me unexpected end of file error. Please, anyone correct what is the mistake in the source ...
-1
votes
0answers
24 views

Show banner ad image after every fourth result in php

<?php $Records_per_page = 25; //Intervel to show banner $ShowBannerAfter = 4; //Query to get the companies form DB $sqlQuery = "SELECT * FROM company WHERE company_name != '' ORDER BY company_name"...
-1
votes
0answers
10 views

Upload filesize issue wordpress - lightsail

Hi I am struggling to identify why I keep getting an error saying file size exceeds server limit when uploading a file. I have updated the php.ini, wp-config, htcaccess and also the functions php ...
-3
votes
0answers
25 views

How to get single value from with in the while loop when two values are same [closed]

Here i am trying to get bid CPM or CPC when revenue_type is ==1 or ==2 also their total impressions but how i can get sum of impressions of two identical campaings and in $bid only one value either ...

15 30 50 per page
1
2 3 4 5
89355