52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for davy_yg

The following code: <a href="<?php echo base_url('cpages/viewpicture/'.$this->uri->segment(3)); ?>" class="delete">BACK</a> Shows: BACK uri->segment(3); I am trying to erase uri->segment(3); part but do not know how to?

Web Development php-codeigniter
0
138
Member Avatar for phphp

Sir I have these codes <input type="text" size="11" name="f_date1" id="datepicker-13" value="<?php echo date('d-m-Y', strtotime($f_date1));?>"/> <input type="text" size="11" name="t_date1" id="datepicker-133" value="<?php echo date('d-m-Y', strtotime($t_date1));?>"/> <script> var ja = jQuery.noConflict(); ja(document).ready(function() { ja("#datepicker-133").datepicker({dateFormat:'dd-mm-yy'}).on("change",function(){ var f_date1 = $("#datepicker-13").val(); var t_date1 =$("#datepicker-133").val(); var data = { ff_date1: f_date1, tt_date1: t_date1 } alert(data) $.ajax({ url: …

Web Development javascript javascript-jquery php
Member Avatar for pty
0
5K
Member Avatar for Amr_3

I am creating a web service to interact with a database and it is supposed to perform the CRUD operations. Right now it works fine with the read and post operation the WCF service supposed to have a method that is called from within jQuery whenever the page completes load …

Member Avatar for Amr_3
0
308
Member Avatar for Jon_7

I'm trying to have a sentence at the base of my site that says how many langauges our members speak. I simply want that sentence to change from English to whichever language is hovered over. Can someone help me out? Thanks! <style> .languages { font-size: 70%; text-decoration:none; } .languages a{ …

Member Avatar for gentlemedia
0
355
Member Avatar for Lloyd_4

Hi Everyone - I have recently upgraded my hosting enviroment and the php version has changed to Current PHP version: 5.6.27 Now a number of queries do not work as they did before. The below query has stopped working, Any ideas how I can update the query so it works …

Web Development php
Member Avatar for diafol
0
270
Member Avatar for koneill

In the following javascript/html - I'm trying to validate two items: 1) That if a user doesn't select a payment type - they are prompted to do so 2) That if Visa and Mastercard are selected and if the number or expire date is blank - they are prompted to …

Web Development javascript
Member Avatar for vsmash
0
309
Member Avatar for davy_yg

Hello, I am trying to place pdf link in CI: http://www.gsa-constructionspecialist.com/articles/article/detail/tugas-lpjk-ke-5 I wonder why I cannot link it. I already place the file address name, yet it comes back to the original file when I click it. Try another file which I copy exactly from the cpanel: http://www.gsa-constructionspecialist.com/articles/article/detail/visi-dan-misi-training-names-gsa It has …

Web Development cpanel pdf php-codeigniter
Member Avatar for davy_yg
0
517
Member Avatar for Stefce

Hello i got a wierd problem, when am opening my website on a PC the site loads well and its best of all websites (`:D`).. but when i try to open it on phone or tablet the front page of the website which is meant to show the featured pictures …

Web Development display image tablet
Member Avatar for Stefce
0
397
Member Avatar for davy_yg

Update has been successful. Setting has been successfully updated! A PHP Error was encountered Severity: Warning Message: Invalid argument supplied for foreach() Filename: views/settings.php Line Number: 68 Backtrace: File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\views\settings.php Line: 68 Function: _error_handler File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\application\controllers\Cpages.php Line: 683 Function: view File: C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\companygiondaci\index.php Line: 315 …

Web Development php-codeigniter social-media
Member Avatar for cereal
0
962
Member Avatar for fazal_1

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 …

Web Development php
Member Avatar for fazal_1
0
506
Member Avatar for Luke_4

Trying to remove the autocomplete in this https://jsfiddle.net/59rphg1h/9/ and replace it with the autocomplete in this https://jsfiddle.net/mhxwcj7u/1/ and retain the ability to print the way the fist fiddle prints (Airshow's excellent work). The reason is that the second fiddle has the ability to change the data (addins), and be be …

Web Development javascript javascript-jquery
Member Avatar for Luke_4
0
472
Member Avatar for davy_yg

Hello, I am trying to insert link with TinyMCE in Codeigniter web program. I use Roxyfilemanager as my filemanager. I store the pdf file in upload folders in root folders. Whenever I try to click the link nothing opens up to show the pdf file instead it shows me the …

Web Development cpanel pdf
Member Avatar for davy_yg
0
463
Member Avatar for SolidSolutions

iPhone and more can automatically recognize phone numbers and make them an active link to click and initiate a call to that number. I can do this on many webpages, but not in myTinyTodo task list. Anyone know what might be preventing the phones from being able to recognize the …

Member Avatar for John_142
0
566
Member Avatar for Siberian

How can I take a path such as what you see below and have Javascript make a visible circle or dot based on the path class ? As well output the points based on a canvas coordinates, canvas name being irrelevent, I hope ? ;-) <path class="st0" d="M73.3,73.1"/>

Web Development html-css javascript
Member Avatar for Siberian
0
898
Member Avatar for Luke_4

My code is here https://jsfiddle.net/yqjuy3m1/1/ .. I know my print html is out dated (could be my issue) so any updated approach is welcome. What I am trying to do is, when the print button is clicked, 1. Keep the selected value in the search box at print, along with …

Web Development html-css javascript-jquery
Member Avatar for Luke_4
0
2K
Member Avatar for Stefce

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 …

Web Development php seo
Member Avatar for cereal
0
410
Member Avatar for phphp

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 …

Web Development php
Member Avatar for diafol
0
314
Member Avatar for L Sushmitha

My intention is to delete file from folder But Here in above script is not working properly can any one please suggest me about this function deleteFile() { var myObject; myObject = new ActiveXObject("Scripting.FileSystemObject"); myObject.DeleteFile("D:\\WEBSITE_FILES\\docs\\OTR\\"+db_unicid+"\\passportImage.jpg"); return true; } <input type='Button' value='Click to Delete File' onClick='return deleteFile()'>

Web Development file-system java-jsp
Member Avatar for DeanMSands3
0
372
Member Avatar for Ahmed_80

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 …

Web Development image mysql php
Member Avatar for rubberman
0
641
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 …

Web Development mysql php
Member Avatar for cereal
0
238
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.

Web Development php
Member Avatar for diafol
0
237
Member Avatar for davy_yg

I am trying this paging simulation but I have not yet successful. models/name_model.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Name_model extends CI_Model { public function __construct() { parent::__construct(); } public function get_name($num, $offset) { $query = $this->db->get('name', $num, $offset); return $query->result(); } } controllers/cwelcome.php public …

Web Development
Member Avatar for Reeaz
0
329
Member Avatar for SimonIoa

Hello, i want to put a Share Button with og:title, description and photo of the post. Also i want to make a invite your friends from facebook script. What item permissions do i need to submit on my developer app page to make them work?

Web Development
Member Avatar for SimonIoa
0
457
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]=> …

Web Development first-post php sql
Member Avatar for davidjennings
0
431
Member Avatar for mldardy

Need on the best way to going about programming this in c#. I'm trying to do an if record exists update statement else insert statement: OracleConnection con = new OracleConnection(strConnection); con.Open(); OracleCommand check_RID = new OracleCommand("SELECT COUNT(*) FROM CONTRACT_INFO WHERE (rid = @rid)", con); check_RID.Parameters.Add("@rid", labelRID.Text); OracleDataReader reader = check_RID.ExecuteReader(); …

Web Development asp.net oracle
Member Avatar for lolafuertes
0
349
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> …

Web Development javascript javascript-jquery php
Member Avatar for davidjennings
0
271
Member Avatar for robert.wynter

I'm using Salesforce Ampscript code with jQuery to access a table in a DB to populate. which wasn't working. I've stripped out the Ampscript code to just have a simple jQuery function and funtion call with a static table and I can see that my problem is that my jQuery …

Web Development javascript javascript-jquery
Member Avatar for vsmash
0
531
Member Avatar for koneill

All, I'm trying to validate using JavaScript some form fields - so that if the Visa or Mastercard radio buttons are clicked - then the card number or expire date must also be filled in - what would be the recommended approach for this: JavaScript code: <script type="text/javascript"> function paymentCheck(){ …

Web Development javascript
Member Avatar for vsmash
0
1K
Member Avatar for davy_yg

controllers/home.php $this->page_model->counter($this->data['post_detail']->post_ID); $this->data['post_list'] = $this->post_model->post($this->data['post_detail']->post_ID); $this->data['gallery_list'] = $this->post_model->post($this->data['post_detail']->post_ID, true); $isAjax = array('news-post'); if (in_array($this->data['post_detail']->template_name, $isAjax)) { if ( ! $this->input->is_ajax_request()) redirect($this->data['page_detail']->post_alias); return $this->load->view($this->data['post_detail']->template_name, $this->data); } $this->load->view($this->data['post_detail']->template_name, $this->data); views/news.php <?php $this->load->library('pagination'); $config['base_url'] = 'http://gsa-constructionspecialist.com/articles/article'; $config['total_rows'] = 14; $config['per_page'] = 5; $this->pagination->initialize($config); ?> <div class="w626 content right"> <?php if ($post_list){ foreach ($post_list …

Web Development
Member Avatar for davy_yg
0
643
Member Avatar for Dani

The other day I tweeted that MySQL unions are my new best friend. I just want to take that back. I just spent the past six hours (it's now 5 am) overhauling a MySQL query and removing one of the unions actually sped up performance. Dazah is really my first …

Web Development dataset mysql
Member Avatar for Lee_15
0
182
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++; …

Web Development php
Member Avatar for cereal
0
439
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 …

Web Development php
Member Avatar for cereal
0
2K
Member Avatar for Jon_7

**Basically, the following code doesn't work: ** <link rel="stylesheet" href="https://fiftyallstars.com/Code/font-awesome-4.6.3/css/font-awesome.css"> <i class="fa fa-500px fa-pull-left" title="500px"></i> <i class="fa fa-adjust fa-pull-left" title="adjust"></i> <i class="fa fa-adn fa-pull-left" title="adn"></i> **And my old code on Dropbox does work:** <link rel="stylesheet" href="https://dl.dropboxusercontent.com/u/5739741/OMAR/code/font-awesome-4.6.3/css/font-awesome.css"> <i class="fa fa-500px fa-pull-left" title="500px"></i> <i class="fa fa-adjust fa-pull-left" title="adjust"></i> <i class="fa fa-adn fa-pull-left" …

Web Development display html-css
Member Avatar for Jon_7
0
350
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 …

Web Development first-post html-css php session
Member Avatar for Steven_17
0
4K
Member Avatar for tejas_1
Member Avatar for Dean_5
0
317
Member Avatar for phphp

Sir I have these codes <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <style type="text/css"> * { margin: 0; padding: 0; } .box { margin:auto; top:0; left:0; bottom:0; right:0; width:20%; height:200px; border:1px solid silver; padding:30px; position:absolute; box-shadow: 0px 0px 10px 10px #72B3D3; } .fit { background-size:contain; background-repeat:no-repeat; background-position:center center; opacity:0.5; …

Web Development html-css
Member Avatar for gentlemedia
0
270
Member Avatar for Dani

Does anyone have any experience with Google's PageSpeed Module? https://developers.google.com/speed/pagespeed/module/ How often does it break things?

Web Development google
0
119
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 …

Web Development apache file-stream php
Member Avatar for rproffitt
0
213
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 …

Web Development php
Member Avatar for reminem
0
1K
Member Avatar for davy_yg

Hello, I download free filemanager to integrate with TinyMCE. I am trying to customize another extension to upload to Roxyfilemanager. Can anyone help me with the customization? Please read this quickly: http://www.roxyfileman.com/custom-integration and Here is my custom.js: function FileSelected(file){ /** * file is an object containing following properties: * * …

Web Development javascript json pdf
0
140
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 …

Web Development php
Member Avatar for Stefce
0
657
Member Avatar for caltech

Please see here https://processwire.com/talk/topic/15108-pw-in-subdirectory/ where I've been updating on this.

Web Development apache dns
Member Avatar for caltech
0
471
Member Avatar for davy_yg

I am hoping the second text editor is without tiny mce but the tinymce is still appearing how to delete it? <!DOCTYPE html> <html> <head> <script src="<?php echo site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script> <!-- <script>tinymce.init({ selector:'textarea' });</script> --> <script> tinymce.init({ selector: 'textarea', height: 200, width: 600, menubar: false, plugins: [ 'advlist autolink lists …

Web Development window-manager
Member Avatar for davy_yg
0
438
Member Avatar for lewashby

[Linux Mint] Linux Mint I'm following a book on Django and it has this -> https://hellowebapp.com/setup/ accompanying website. Take a look below at what I'm getting when I get to the "Start your Django project" section of the link. Here's a peak at my terminal input and feedback. (venv) user@mothership …

Web Development python python-django
Member Avatar for lewashby
0
556
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 …

Web Development api caching php php-codeigniter
Member Avatar for cereal
0
769
Member Avatar for Link_1

I am using VB **Problem: **when i click on sort col and click on refresh button, than i get popup browers message "To display the webpage again, the web brower need to resend the infomation you've previously submitted." **Recreate this problem**: click on sorting col of gridview -> refresh page …

Member Avatar for Link_1
0
301
Member Avatar for phphp

Sir I have following codes for Bootstrap header <!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> <title>Bootstrap Page Header</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css"> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> <style type="text/css"> html { …

Web Development css-bootstrap html-css
Member Avatar for Dani
0
184
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 …

Web Development caching mysql php
Member Avatar for Dani
0
650
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)){ …

Web Development mysql php
Member Avatar for Dani
0
388
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 …

Web Development php
Member Avatar for Stefce
0
294

The End.