39,323 Topics
| |
hey guys ...... im trying to insert/ update the marks in marks table(database) of multiple students at one click of button in php ,how can do iit plzzz reply me or send code for it on my gmail: `<Do not solicit for help by email>` plz help out me thank … | |
Hello. I've been learning a bit of PHP for a small school project. The project is almost done just that 1 thing is missing. I need a way to output something I searched into CSV / Excel. I found a script which im using currently. It works beautifully I just … | |
i have an array $value=array (2,4,6,3,2,4,3,8); and i need only the values thar are repeating it self in the array that would be 2,4,3 i have this code written <?php $value=array (2,4,6,3,2,4,3,8); $arrlength = count($value); for($x=0; $x<$arrlength; $x++){ $value[$x]; for($y=0; $y<$arrlength; $y++){ $value[$y]; if($value[$x]==$value[$y] ){ echo $value[$y]; } } echo … | |
hi! i'm building PC Configurator through web app, where a client can build his or her own pc , tryng to work on backend part with php , need help how to go bout , #those with experience. thanks | |
Hello i want to make SEO friendly links but i dont know how can you please help me doing that? I have this code: <?php $sql = array('ID', 'post_title', 'post_content', 'post_header_image', 'post_category', 'post_date'); $outputSQL = selectSQL($sql, 'news'); $count = count($outputSQL); for ($i=0; $i < $count; $i++) { /* Loop Throught … | |
Sir I have these codes <?php session_start(); if(!isset($_SESSION['user'])) { header("location: admin/login.php"); } include_once("includes/connectsql.php"); $date1=date('Y-m-d'); $t_date1=isset($_POST['t_date1'])?$_POST['t_date1']:$date1; $t_date1=date('Y-m-d',strtotime($t_date1)); //----------------------------------------------------- // find if(isset($_POST['btn_find'])) { $acc_code1='2310001'; $mybalance=0; $mydrcr=''; $query = "select vou_no,acc_code,acc_name,dr_amount,cr_amount,qty,circle from crsalp where date='".$t_date1."' and (SUBSTRING(acc_code,1,2)='32' or SUBSTRING(acc_code,1,2)='33') order by vou_no,acc_code"; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <head> <title>Sales … | |
Im creating a social network site and i was able to create a user folder each time a new user signs up but my problem is copying a default image from a folder to that user folder how can i do that? I've searched the web on solutions like using … | |
Hi everyone, I am trying to run a select query using the results from an earlier successfull query. See below - $stmt = $conn->prepare("SELECT * FROM tab1 ORDER BY id DESC"); $stmt->execute(); $total = $stmt->rowCount(); $cstmt = $conn->prepare("SELECT * FROM tab2 WHERE otdc_ref='$stmt->otdq_ordernum'"); $cstmt->execute(); $total = $cstmt->rowCount(); while ($row = … | |
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 … | |
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. | |
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 … | |
| 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 … |
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]=> … | |
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> … | |
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++; … | |
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 … | |
[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 … | |
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**, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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)){ … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … |
The End.