39,316 Topics

Member Avatar for
Member Avatar for SimonIoa

Hello i want to make a statement that increases a row on a table on MySql every time one visits the page. The $_GET['ID'] its ok dont waste your time with that. This is the statement require 'config.php'; $db = getDB(); $ID=$_GET['ID'] ; mysqli_query($db, "UPDATE table SET count = count …

Member Avatar for cereal
0
233
Member Avatar for amith_ami

How to find array values is present in a string of shuffled letters. $string = "ankegsrdib"; $words = array("ask","bird","egg"); which function should I use to find this.? Also the result should be like this array("ask"=>"Yes","bird"=>"Yes","egg"="No") please suggest some ideas.

Member Avatar for diafol
0
234
Member Avatar for onimisi_2

hello fellow web developers, i am trying to develop a schools web portal, i need to design it such that students details can be submitted, retrieved for deleting or editing or printing, i already have material guides on how go above adding editing or printing, how do i display and …

Member Avatar for diafol
0
108
Member Avatar for Isidoros_1

Hello, I built a website on my personal server and everything work fine. But when I uploaded it on the production server there is a problem with the database - the character encoding is wrong so the text is unreadable (users submit greek words). The collation of the tables is …

Member Avatar for kalxas
0
395
Member Avatar for davidjennings

Hi all, I am trying to compare data from $_POST['Net'] which has 6 elements to check to see if the data has changed in the form when submitted. Below is the Post array from form. array(16) { ["Submitted"]=> string(4) "true" ["NetValue"]=> string(1) "0" ["ProductID"]=> array(6) { [0]=> string(5) "76458" [1]=> …

Member Avatar for davidjennings
0
428
Member Avatar for davidjennings

Hi All, I am trying to get tooltip to work when I hover text in a table. It does work but it produces an extra data table column. If you have any idea how I can stop this, please let me know. Thanks David <script type="text/javascript"> $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip(); }); </script> …

Member Avatar for davidjennings
0
269
Member Avatar for Stefce

Hello im really curius about this, i want to know is it possible to intercept the code of execution in PHP but not on the server side. So if i have a script like this for example uploaded to mine server <?php $i=0; while($i<100) { mail("xxxxxx@gmail.com", "SPAM", "It´s ME"); $i++; …

Member Avatar for cereal
0
428
Member Avatar for dawbin

I've been using file_get_contents on the same URL for years and now suddenly it fails. After reading of similar issues I've tried using various context flags with no luck. The really odd thing is that I can load the URL from any browser with no issues but file_get_contents fails. Does …

Member Avatar for cereal
0
2K
Member Avatar for manish812

[U][B]Whenever i run session in server than it show this problem[/B][/U] [B][U]Warning: session_start(): Cannot send session cache limiter - headers already sent [/U][/B] so pls help me this is simple login prog when user enter into nxt page it name will show i want to store its name in session …

Member Avatar for Steven_17
0
4K
Member Avatar for Serena_2

I'm beginner to **php/mysql** (quite familiar with PHP, mysql), **novice** to **XMPP**. I have created my site in simple **php/mysql/javascript/jquery**. I'm trying to add simple Private Chat to my web site. Trying to integrate **[JSXC Chat](https://www.jsxc.org/examples.html)** into my website. Please Guide me how to create **chat database**, install **XMPP server**, …

Member Avatar for diafol
1
2K
Member Avatar for OsaMasw

Hello guys I have project in office like this I have system has data and not connected to internet , I can get data from it by using excel installed in pc1 , and pc1 is connected through hub with PC2 and have shared folder between them and both have …

Member Avatar for rproffitt
0
210
Member Avatar for reminem

Hello everyone, I'm stuck with coloring the value in a row. For now I am testing with one number to see if I can give the row with the value a color, but for now it keeps creating a new row wich will have the background-color I want. The code …

Member Avatar for reminem
0
1K
Member Avatar for Stefce

How do i return an array with the file names from folder? I have this till now but doesn't work. function showFiles($path) { $folder = "gallery/$path"; $i = 0; if (is_dir($folder)) { if ($handle = opendir($folder)) { while (($file = readdir($handle)) != FALSE) { if ($file === "." || $file …

Member Avatar for Stefce
0
653
Member Avatar for Dani

Dazah API uses Redis to handle rate limiting. The goal is to limit every each client_id/user_id pair from making over 5,000 requests every 5 minutes. We use Codeigniter 3.x and it looks something like this: $flood_control = $CI->cache->get("user_limit:{$token_obj->client_id}:{$token_obj->user_id}"); if ($flood_control === false) { $CI->cache->save("user_limit:{$token_obj->client_id}:{$token_obj->user_id}", 0, 300); } else if ($flood_control …

Member Avatar for cereal
0
763
Member Avatar for Rajeshwari_1

Please help me out. I have a table with one row. I can add rows to it by clicking add button which adds rows through javascript code. I have 3 dropdown columns and one textfield and one more textfield which is not editable. So i need total of last column. …

Member Avatar for diafol
0
129
Member Avatar for developer707

Hello, Recently I am dealing with bad performance in an php application that I have build, googling this issue I found out that using services like memcached you can archive a huge performance improvements. The weird thing comes when I try to find a very good and detailed example I …

Member Avatar for Dani
0
643
Member Avatar for SunnySideUp

Hi, I am looking to create a MySQLi class(MVC pattern), I already have the following functions: Query, Execute, Results. Below is a PDO version of a Bind statement and was wondering if you could do the following in MySQLi or something similar in MySQLi: public function bind($param, $value, $type=''){ if(is_null($type)){ …

Member Avatar for Dani
0
385
Member Avatar for Harry_8

I was recommended by a friend and he sent me 3 dedicated server plans http://forumweb.hosting/14028-host-color-us-dedicated-intel-xeon-e3-1230v3-100-mbps-unmetered.html http://forumweb.hosting/13123-mrrapidhost-ddos-protection-100-uptime-24-7-support-1gbps-dedicated-port-e3-from-50-mo.html http://forumweb.hosting/14129-managed-dedicated-servers-delivered-within-hours!-ssd-disks-1-gbps-connection-and-ddos-protection.html but i don't know which one is better, my budget is $75 / month, I want to upgrade my VPS hosting to a dedicated server for my sites. My sites are Wordpress blogs …

Member Avatar for Dani
0
169
Member Avatar for Stefce

Why i cannot pass array to function parametter with two items? here is the function, but i get just the first parameter `Username` function selectSQL(Array $item, $table) { global $conn; foreach ($item as $field) { $sql = "SELECT `$field` FROM `$table`"; $result = $conn->query($sql); if ($result->num_rows > 0) { while($row …

Member Avatar for Stefce
0
292
Member Avatar for Dani

I'm having a little brain fart and I just want to double check something ... // Array of [a,b,c,d] $array = array('a', 'b', 'c', 'd'); // Loop through array foreach ($array AS $letter) { // Break out of the loop on a specific condition if ($letter == 'c') { break; …

Member Avatar for ryantroop
0
373
Member Avatar for davidjennings

Good afternoon all, The issue I am having is that when POST data values are looped through inside the while loop as each record is compared with the POST data and the database record for any changes. For this test the data from the post is exactly correct. The if …

0
400
Member Avatar for Nunix

I am trying to put a post feed on the homepage but I am with difficulties on it. I think my query it might be wrong, but I want to pick the username from 'blabs' table and see if that 'username' from the same table is the user or the …

0
157
Member Avatar for phphp

Sir, I have this header.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" href="css/css3menu1.css" type="text/css" /> <style type="text/css"> #header1 { width: 100%; color: #FFC; background-image: url(images/header.gif); font-size: 28px; font-weight: bold; font-style: oblique; text-align: left; padding: 5px; position: fixed; } #header1 img { vertical-align: middle; } …

Member Avatar for gentlemedia
0
350
Member Avatar for Stefce

Hello i started learning php laravel framework today and as far as i learned i can say its great framework. My problem is declaring the links to other files. Here is the route for file `register.blade.php` web.php Route::group(['prefix' => 'auth'], function() { Route::get('register', [ 'as' => 'get_register', 'uses' => 'Auth\AuthController@getRegister' …

0
106
Member Avatar for davy_yg

What is the difference between main/index.php and main/ ? Can anyone help me figure that out? I have edit http://www.masterlink.co.id/index.php file yet when I checked it in http://www.masterlink.co.id the file does not load index.php. I thought it suppose to be automatic like http://www.masterlink.co.id/index.php = http://www.masterlink.co.id Can anyone help me figure …

Member Avatar for cereal
0
371
Member Avatar for blueguy777

How to store the following curl_exec output into mysql table? sent,success,114661698,709081462,+919900123456 sent,success,134707665,937687314,+917795987654 Eg: var1='sent' var2='success' var3='114661698' var4='709081462' var5='+919900123456' --------------------------------------------------- var1='sent' var2='success' var3='134707665' var4='937687314' var5='+917795987654' Thanks in advance

Member Avatar for cereal
0
2K
Member Avatar for Nunix

Hey guys, I am doing a friend list and it's not working very well. Well I tried to show all the user's friends but it's not working, it only shows one instead of all. In MySQL friends_request I have something like this: username1 -> username2 username1 -> username3 username2 -> …

Member Avatar for diafol
0
298
Member Avatar for Stefce

I want to make pagination for videos since i have much videos and i cannot load all in the same page, i have a function which displays all videos in the directory and than i limited it only to show first 6. How do i make the pagination so when …

Member Avatar for diafol
0
268
Member Avatar for phphp

Sir I have these codes <?php $stockdate=""; $queryx = "SELECT max(data.date)as date from ( select max(date)as date from crprp union all select max(date)as date from pouring union all select max(date)as date from product ) as data"; $resultx = sqlsrv_query($con,$queryx)or die ("Error". sqlsrv_errors($con)) ; while ($rowx = sqlsrv_fetch_array ($resultx)){ $stockdate=($rowx['date']); } …

Member Avatar for cereal
0
249
Member Avatar for reminem

Hello everybody, In an earlier post I created an bingocard with random numbers. The card should have 6 rows and 6 columns. I get 6 rows and 10 columns. I am trying to adjust the columns, but with my script now it prints on each row the first number till …

Member Avatar for reminem
0
203

The End.