Latest Questions tagged Php

Browse all latest questions tagged Php

23
Votes
Published 05 Dec, 2022
How to generate unique id in MySQL?

I'm programming a script using PHP and MySQL and I want to get a unique id (consisting of a string: capitals and small letters with numbers) like: gHYtUUi5b. I found many functions in PHP that can g...

50
Votes
Published 27 Nov, 2022
Eloquent laravel: How to get a row count from a ->get()

I'm having a lot of trouble figuring out how to use this collection to count rows. $wordlist = \DB::table('wordlist')->where('id', '<=', $correctedComparisons) ->get(); I...

11
Votes
Published 04 Aug, 2022
Jquery - HTML Submit form on dropdown change

Good morning! I know that this topic has been covered on SO before but I couldn't find the full answer to my specific situation below so I apologize if I missed the answer elsewhere. Scope: What I...

28
Votes
Published 05 Aug, 2022
Jquery - ajaxform jQuery plugin reset form after sending request

Before i begin I believe this is not a dublicate at first. Here's my problem: I have a chatroom php script that i use ajaxForm jQuery plugin in order to send new messages without reloading the whole...

66
Votes
Published 05 Aug, 2022
Jquery - Stopping redirect after AJAX request with jQuery

I'm trying to get a simple form to submit via AJAX to the submit.php page where it is sent to a database. When I submit it, it redirects to submit.php. I want it to submit without redirecting. Thanks...

85
Votes
Published 09 Jul, 2022
Jquery - JQuery Autocomplete from Database

I need to to do autocomplete suggestion for my website and the data should be retrieved from database. I want to use JQuery autocomplete. here is my code but it doesn't work! This is my php file with...

109
Votes
Published 09 Aug, 2022
Jquery - how to get two arrays from php using json,jquery ajax?

I want to build a graph in jqchart where i need to get two arrays Now i want to perform operation as given below.Which is giving error ofcourse. html $.ajax( { type: "GET",...

7
Votes
Published 16 Apr, 2022
Javascript - Grab Instagram Follower count

So I have a question what would be the method to just grab the instagram follower count for a said user? I have looked at two possible options the official instagram API, but I couldn't find a speci...

47
Votes
Published 10 Aug, 2022
Jquery - jQuery calling php script onload

I am trying to use jQuery's ajax to call a php script onload. This script will return xml from a url web service, parse through it, and then display bits and pieces of it into a div tag when the page...

48
Votes
Published 09 Aug, 2022
Jquery - How to load php file into div using jQuery Load with passing parameter

I've an element <div id="search_result"></div>, and then I used $.ajax to retrieve some data (search result). $.ajax({ url: "url to server", dataType: "json", data: keyword, type:...

48
Votes
Published 04 Aug, 2022
Jquery - Facebook login integration to website on localhost

My index.php file include this: <div id="fb-root"></div> <script type="text/javascript"> window.fbAsyncInit = function () { FB.init({ appId: '<?php echo $appId; ?>...

29
Votes
Published 02 Aug, 2022
Jquery - show progressbar while loading pages using jquery ajax in single page website

I have a basic page with a navigation bar on top, and a wrapper body. Whenever a user clicks on a navigation link it uses .load to load the page content into the wrapper div. $(this).ajaxStart(funct...

82
Votes
Published 08 Aug, 2022
Jquery - close colorbox and redirect parent window to a specific url

I am trying to get colorbox (iframe) to close and for it to redirect the parent window to a specific page that is dynamically depending on the image that is being displayed in the colorbox. So basical...

102
Votes
Published 08 Aug, 2022
Jquery - Using AJAX to open php file

So I am trying to open af php file that updates something in my database. I want to do this using AJAX since I dont want my entire page to update. After the php file has been ran I want to change an i...

56
Votes
Published 01 Jul, 2022
Python - Why is PHP7 so much faster than Python3 in executing this simple loop?

As an extremely simple benchmark, I executed the below simple code on PHP 7.0.19-1 and Python 3.5.3 (command line) on the same Raspberry Pi 3 model B. Python's execution time was horrible in comparis...