« first day (255 days earlier)      last day (55 days later) » 
00:00 - 14:0014:00 - 00:00

12:00 AM
0
Q: I want to fetch the data from three tables which have many to many relationship using mysqli statement query

Hunza AliI want to fetch the data from three tables which have many to many relationship. Here is the table structure of my database. users uid[pk] fname lname username 1 John smith johnsmith activity act_id[pk] title log Account Login reg Account Registration user_activity se...

0
Q: (Request) PHP Script for DES/CBC/PKCS5Padding Encryption/Decryption

user2943393I need a PHP script to Encrypt and Decrypt string . I have the iv, $pass phrase or key required. the $iv is static always. I want to use the iv which I have and not to generate one in the script. i saw many scripts with random generating calls. It has to use the DES CBC PKCS5Padding methods. I ...

0
Q: Is there a difference between Object and Models in PHP/CodeIgniter?

MaxcotI've approached the development a library/book management system by using the CodeIgniter framework. I'm new to all this, and have my own way of learning, so bear with me if it sounds like a daft question. I'm getting to a point where I've got questions about concepts and design. I've got lot...

0
Q: PHP array declaration issue

user2943358$info = array( "First_Names" => "John", "Last_Names" => "Smith", "Gender" => "Male", ); array_push($info["First_Names"], "$fname"); print_r ($info); I started learning PHP through a high school class. I'm not exactly knowledgeable nor do I pay attention much, but I...

0
Q: mysqli not found when called inside a class

EglCodeIf I call $mysqli = new mysqli($dbHost, $dbUser, $dbPass, $dbName); outside of a class, this works fine and I can access my database. In another file I have created a DB.class.php. When I call the same code but now I am inside a namespace and a class, I get this error. Fatal error: Clas...

0
Q: capture user input from web form to create account, pass to script

user2943416what i'm trying to do is have a web form that users can enter thier username and password to create an account on a linux server. here's what ive done so far: create user.php <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <...

-1
Q: Urgent help for query

Amrita SinghWarm greetings to all ...nd I have learned lots of things from you people. Plz .guide me on one issue.. I have two tables 1.transaction table 2.Memebrs table** in txn table all info related to txn like id,date_of_txn,amount are fields and in memebers trable all member related info like mem...

-2
Q: jQuery how to bubble effect on an image?

merandI am working on a virtual baby platform which is my homework. I am using html php css jQuery javascript... What I try to do is feed the baby, wash baby, and make baby sleep. I am searching an effect like that: when I drag the soap on the baby, I want to show bubbles. when I dropped the object,...

0
Q: Change URL Path for View Profile Page

Gaurav MehtaI am building a PHP based application which has users. Currently I have a view profile directory which has an index.php. When a user clicks on another user's picture, I redirect them to view-profile/?u="username" Due to this I do a get of u and show profile accordingly. Is there a way to chang...

0
Q: .htaccess config when using two wordpress under same domain

user2023424I have two Wordpress installed under the same domain. Main site using is for actual website and second one is for the blog. Currently I'm using this: RewriteEngine On RewriteCond %{HTTP_HOST} ^AXXXXX\.com [NC] RewriteRule (.*) http://www.AXXXXX.com/$1 [L,R=301] Problem is when I want to ente...

0
Q: Ajax Call Success, Post not actually sent

Kevin JohnsonI have literally tried changing everything, removed the JSON.stringify, changed the post to get change cache to false and true. I am at a loss as to what needs to happen. It always goes to the else statement in my php and returns the default JSON. I have allowed crossdomain in my php with the wil...

0
Q: Login form using PHP and JQuery to validate login information from MySQL database

user2933979I have a login form that uses JQuery and PHP to validate a username and password. I am trying to switch over from extension mysql to mysqli for better practice and am having a lot of trouble. I think the error exists in the JQuery somewhere because I've tested the login.php validation and it work...

0
Q: Using the GDrive API with credentials provided in PHP

Sebastian StockartI use the Google Drive API to upload pictures automatically. I have a IP Camera, which captures a picture every three seconds and stores it via FTP on my Webspace. I want to have those pictures in my GDrive Account, unfortunatly there is no FTP support for GDrive. So I wrote a PHP script, which...

0
Q: Uploadify Success but No Files Uploaded?

LyndaI am attempting to implement uploadify on a site. It says the files are uploaded but when I look in the upload folder nothing is there. I have read other post similar to this without luck. I did read this answer to another question: I had similar problems on a Linux machine. It turned ...

 
12:37 AM
0
Q: Google maps Ajax call: differences between v2 and v3

Tim DawsonI am upgrading a google maps v2 project to v3. It's gone well so far but I've hit a problem for which I've not yet been able to find a solution (though I do have a work-around). Visitors to the map are able to click on a location, have the Lat & Long appear in an infoWindow and be able to save t...

0
Q: PayPal post transaction data not being passed

Michael SmithOk, I am at a loss. I am sure there is something really obvious that I am missing, but in testing my transaction in the sandbox, I am not re-directing automatically back to my website, and I am not seeing any data... POST, GET or otherwise. Here is my PayPal form: I have tried Auto Return with...

 
12:49 AM
0
Q: PHP documents stop working after adding CSS

user2943458I have been working on securing some pages on my server. I was able to create a log in screen and all, and it was working perfectly. After that, I decided to pretty it up by adding some CSS (background, horizontal center aligning, etc.). Right after that, for some reason, even after I put in my l...

-1
Q: Find lowest value in nested array

Patrik BoXon NicklassonI have an array like this: Array ( [0] => Array ( [ID] => 85597 [DISTANCE] => 14916.204333483 ) [1] => Array ( [ID] => 85598 [DISTANCE] => 71.712470188284 ) [2] => Array ( [ID] => 85599 [DISTANCE] => 14130.470174227 ) [3] =>

0
Q: How to give items in MySQL table searchable "tags"

Paul LewisI have a MySQL table in the following style: Name Tags technology PC,computers,gaming Computers gaming, keyboard, monitor etc. I want to know if it is possible to make these searchable. for example if someone searches "PC" then technology will be the res...

1
Q: mysqli_real_escape_string for season select query?

user2943347at the moment Im using this: $result=mysqli_query($sqlHp,"UPDATE database.account SET coins='500' WHERE id='".$_SESSION["userid"]."'"); Now my question, should I change that query to this: $result=mysqli_query($sqlHp,"UPDATE database.account SET coins='500' WHERE id='".mysqli_real_escape_stri...

 
1:06 AM
0
Q: extjs 4.2 htmleditor not rendering textarea

Tobias HagenbeekI'm using Extjs for some things, and now i'm trying to get a form to have the ability to use a HTML editor. It seems to load fine, i don't get errors on any console. and everything works fine, but my editor doesn't actually "finish" rendering it seems. The picture shows what i see. below is t...

 
 
2 hours later…
3:06 AM
0
Q: Database doesn't exist, the other file it works

Tyler Matemathis is really weird and I don't know why it is like this. I have my other files work fine (login, registration, and memberadd) however, on memberaddprocess file, when it try to connect to the database, it says that my database doesn't exist. The other works fine, only the memberadd process. If a...

0
Q: mysql phpmyadmin dropped table timed out and now will not open nor is deleted

morty346From phpmyadmin I tried to empty a large table It took forever and eventually timed out phpmyadmin would not open again until I cleared my cache After I got it back open all of the tables will open except for the table I tried to empty (I also can not run a php script on that table) Is there a ...

-1
Q: web.config rule to .htaccess

Leandro GarciaOn the IIS server, we have this rule: <rule name="page1" patternSyntax="ExactMatch"> <match url="page_1.php" /> <action type="Rewrite" url=" .php" appendQueryString="false" logRewrittenUrl="true" /> </rule> Now, there are two files in the directory. The page1.php & page_1.php, I'm confused whi...

1
Q: PHP namespace class not being found

EglCodeTo begin, here is the flow so you can understand the problem. I have four files, three of these are classes, I use two namespaces. login.php is a form, when the form is submited, it comes back to itself and the code below is executed. The login.php calls the Zcrypt::Decrypt and Zcrypt::Encrypt ...

0
Q: Display page of custom post type taxonomy in Wordpress

Red Zephyr DesignAlright, so what I have is a Wordpress theme with a custom post type (listing) and custom taxonomies under that already built in. I've successfully added my own custom taxonomy (new-developments) under the existing custom post type. I have also setup a custom template for the new taxonomy titled...

0
Q: How to pull only 1 image from folder in php?

Swami NarayanI have working code, which pulls all images from a dynamically created folder. But I want to display only 1 image from a particular folder in my display page. Any suggestions? My code: <?php $search_dir = "$directory/{$row['name']}{$row['hotel_address']}"; $images = glob("$search_dir/...

0
Q: Update ALL records in active record - codeignighter

IEnumerableIm trying to update all records in the DB, there is no key and no where clause. But im getting an error saying I must specify a where clause. $data = array('views' => 0); $this->db->update_batch('table_places', $data);

0
Q: Accesing Azure MSSQL server from Ubuntu and PHP

JanAfter solving several initial errors I was able to connect to the server. My problem is that I can't seem to access the tables. Here is the freetds.conf file: [azure] host = name.database.windows.net port = 1433 tds version = 8.0 database = databasename And here is my PHP file: ini_set('disp...

0
Q: Take PHP Debug mode off for CakePHP

user2417731I did the CakePHP tutorial, but I get this at the top and bottom. I would like to take that away. And I have a question, when making a brand new app, do I have to deattach any css or stuff like that?

-1
Q: How to get the date a WordPress post was first published?

henrywrightI'm trying to get the date a WordPress post was first published. Please note I'm not after the last updated date. Does anyone know how this can be done? EDIT: I have already tried get_the_time() but the outputted date changes if the post gets updated again at a later date.

-1
Q: How to pass a input value in a form to another page?

James SmithI have a form in register.php. When a user submit it, how to I retrieve the input value from the form at register.php to do the verification at verify.php? Thanks in advance. register.php <form method="post" action="verify.php"> <input type="text" name="username" /> <input type="password" name=...

0
Q: SugarCRM CE 6.5 Calculation Not working

David MorinNeed help getting calculations to work. I have the following code crm/custom/modules/Leads/logic_hooks.php <?php // Do not store anything in this file that is not part of the array or the hook version. This file will // be automatically rebuilt in the future. $hook_version = 1; $ho...

1
Q: Linux PHP Fatal error: Call to undefined function mysqli_connect()

valbu17I have a problem regarding connecting the database it is giving this error Fatal error: Call to undefined function mysqli_connect() Which, I have spend the past 4 hours trying to figured out and I already did these steps: 1. Change extension=mysql.so and extension=mysqli.so 2. extension_dir=/P...

2
Q: Algorithm for calculating a series of future dates based on a frequency

user548084I'm working on a payment scheduler which plans out n payments based on an arbitrary start date and one of a set of frequencies (daily, weekly, monthly, etc...) and am seeking a general purpose algorithm for doing so. I have attempted a brute force means of doing this, by casing the frequency and...

0
Q: WordPress -> Restricted Form -> Data approved by admin -> data being displayed on another webpage?

JasonI need help using WordPress to display submitted form content that is first approved by an administrator. I have access to several plugins at my disposal. I have WishList for user rights, Gravity Forms, and WordPress default user rights. Essentially, when a user successfully logs in they will be ...

0
Q: website hosting and calling web service from android app

googleI am learning android and currently i done database operation using calling web service which i have written in php and from that php it returns data in json format. I done this operation in my computer using WAMP server and from android i used localhost ip address which is 10.0.2.2 then i acces...

0
Q: Wrodpress plugin database to use post meta or not for speed

kailashTo speed up the wordpress website with custom product or post type is it better to not use post meta as post_meta table does self join which would be slower query when there are 20 new fields to be added by custom post. So I have a new custom post type courses to serve our purpose to have course...

0
Q: Foxit - Create A Dynamic Response Upon PDF Submission

Mick HarnerI am trying to return a dynamically generated pdf when a pdf is submitted via Adobe Reader or Foxit6. I have written code to accomplish this for Adobe, but Foxit only displays an alert box that states whether the submission was successful ("Your form submission was successful !") or not (I was u...

0
Q: Adding Date Time Stamp to posts for my blog

TerryI have this simple php blog, where you enter information and it posts it out to you, however, id like a time stamp for the post, is this possible using php? Just put a simple time stamp. Thanks This is my PHP Welcome <?php echo $_GET["name"]; ?><br> Your email address is: <?php echo $...

3
Q: PHP Pass by Reference Issue

Mauricio ZunigaSo I am having a strange issue where the functions are NOT defined by pass by reference parameters, yet objects are being changed in ways that I cannot explain. I have verified function definitions are not pass by reference time and time again. I have retrieved an object from the DB. Then I ha...

0
Q: How to use mod_rewrite for ip instead of domain name

Mohd SulemanHow to use mod_rewrite for ip instead of domain name. for domain i am using like this RewriteCond %{HTTP_HOST} ^treasherlocked.in RewriteRule (.*) http://www.treasherlocked.in/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.treasherlo...

0
Q: CSS have index.php in url

Chandara SamMy website have increased visitor so I decide to change server to increase capacity. I use joomla 1.5 with Ja Teline IV template. When I change server all css have background image with relative path show like this: url('/index.php/fake-path/images/arrow-3.png') It have index.php in path. Ho...

0
Q: Having troubles with mysqli::fetch_object();

Frustratedafter reading like 5 hours on Google I can't fix something with MySQLI. I spent all my life programming in MySQL, and now I am trying to update my knowledge using mysqli but I have some troubles. I have a little function called news_Default() like this: <?php Class Test extends DB{ ...

0
Q: How i can model this database?

PatricioI'm working in a web aplication to evaluate workers. In a php form I add the name of the worker and there are 10 questions. Each question has options (a, b, c, d). Example: quality of work. a) excellent b) good c) bad d) too bad professional knowledge. a) excellent knowledge b) is ok c) man ...

0
Q: Parse XML Parent node of matching attribute

enriqg9I have an XML like the one below, I am trying to do an xpath query and parse it with simplexml. The XML is a CURL response and is stored in a $response variable. I need to look the Code attribute inside the <Item> and select the parent <Product> to parse it. //$response <Items> <Product> <Ite...

0
Q: How to Set Up Multiple projects in one IP in nginx

user2943578Hi Everyone i need help with this, I've already set up nginx + php and it works great, faster than apache, my problem is how to setup a multiple projects in one IP? i'm using codeigniter and I've follow the nginx wiki unfortunately i can't display what's in the controller e.i: http://192.168.0.2/...

0
Q: Can anyone help me how to get value using javascript?

user2738520I'm new to javascript that why i don't know how to get value using javascript. Here is my PHP script while($row = mysql_fetch_array($sql)){ echo "<div class='loop'>"; if($row['choice'] == 0){ echo "<p>First Choice</p>"; echo "<input type='hidden' id='hidden' value='0' />"; ...

0
Q: Processing CSV File in PHP that able to cater MS and UNIX Line Break

RudyI have a module that process a CSV File as Input. It works fine in my Ubuntu machine, until someone in my team start to use Microsoft Excel to create the csv. As the result, the new input CSV is having ^M ( \r\n ) characters on it, and because of that, my code assumes that the CSV is consist of ...

0
Q: Trying to compare two dates...one from mysql DB stored as DATE and one using DateTime object

ndjustin20I have been trying unsuccessfully to compare two dates using an if statement to then run another query and update a mysql database. I'm not sure where I am going wrong. If I use procedural and use date('Y-m-d H:i:s', strtotime(str_replace('-', '/', $date30))); Then I get an update of every ...

0
Q: Password protecting Wordpress; all but front page?

user2943672I found this code to password protect the pages in my WP site. However, I do not know where to put the code? In the Theme I am using? What page? Thanks! <?php if (is_user_logged_in() || is_home()){ echo "Welcome, registered user, here are my lovely posts"; } else { header( 'Location: htt...

0
Q: imagecopy doesn't work all the time

chillersI'm having an issue with imagecopy certain images on the $url variable will not appear even though there both PNG on the working and not working examples. The $local variable loads transparent images from the server and $url variable loads from a remote server. I have inculded a test transparent ...

0
Q: MySQLi Query not submitting data to my database

user2943677I hope you're having a wonderful evening/night/morning depending on your time zone. Anyways, on track here, I'm having an issue with a query of MySQLi I'm trying to submit, but no errors are being reported, and absolutely nothing is happening. I've tried multiple methods for a fix, and nothing. ...

-1
Q: how to calculte ga:avgPageDuration in google analytics?

mingfish_004how to calculte ga:avgPageDuration in google analytics? I am useing php client google api to get datas from ga, but I can not using metrics ga:avgPageDuration (avg time on page) ,the error info tell that this is an unknown variable in ga, but I can find it in ga center page reports, then how doe...

0
Q: Create a redirect link using data from a text file

DarkGuardsmanI have a few servers running on my home network. This network has a dynamic IP address that changes a good bit. Which means if i want to access my network from somewhere else i need the IP. This i've solved with a java program i wrote to get the public IP. Which works just fine but is a bit of a ...

0
Q: Redirect loop installing laravel 4 in subdirectory/subfolder

andsienHi i've installed laravel 4 inside a subfolder on my main domain. domain.com/laravel4/ Inside laravel 4 ive created a .htaccess that points to the public folder of laravel. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> .htaccess inside the pu...

-2
Q: How to customize a wordpress theme?

narayanpatraI want to customize a wordpress theme. I want to change the color of the slider , increase the font size of title and many more thing. the theme do not have these many options. I can edit the code but the problem is how to know where to change? I am not a full time programmer. Whenever I tries t...

 
3:36 AM
0
Q: web site in PHP having a backend mySql database

BrayanI am designing a website that has two forms .... main form has user details and sub form is a table having details with four coloumns ...user can click on add rows to add more rows . I am using PHP for storing the data in mySql database . My problem is i want to have two tables in database , one ...

0
Q: .htaccess redirect all of the html to php

CynialHere is my .htaccess RewriteEngine on RewriteBase / RewriteRule (.*)\.html $1.php [R=301,L] ErrorDocument 404 /404.php It should go to wireless.php when I access wireless.html. But the weird thing is it go to 404.php when I access wireless.html, and it go to wireless.php when ...

0
Q: Trouble Installing mcrypt library on Mavericks (10.9)

PhilBI was able to successfully install the mcrypt extension on Mountain Lion but I'm having a difficult time installing the extension on Mavericks. For reference, I'm following this guide: http://www.coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/ The on...

0
Q: Desperate help using PHP's $_SERVER["DOCUMENT_ROOT"] on a web server?

NickersoftI've spent the past few months building a website on localhost. Throughout the site, instead of using relative paths, I used $_SERVER["DOCUMENT_ROOT"] to access the root of my server so I could reference files from there. However, I just decided to upload my site to 000webhost. As I soon found ou...

0
Q: PHP - Time is incorrect, displays Dec 31, 1969

user2933926function convertdate($date) { date_default_timezone_set('America/Chicago'); return date("M j, Y g:ia", $date); } So, I really don't know what's wrong. I have the rest of the code it needs to be looked at too. How could I fix this to display the correct time?

0
Q: PHP Validation for form

TerryI need some help getting my form completed, I want certain input fields to only accept letters, some to accept numbers, etc. Could someone help me with an example so I can learn these? I want the name to only accept letters, email to accept any but REQUIRE an "@" symbol. Hopefully if I can get he...

0
Q: Execute powershell script on webserver when page is accessed

RadagastI have a windows 7 Pro computer that is running XAMPP (apache, php). What I need to do is execute a batch or powershell command on this computer (host) when a remote computer accesses a certain webpage on it. is this possible?

0
Q: Foreach only working once on variable

Jess McKenzieIn the code below I get all the data showing when I var_dump the $order_data but once I start to send it through to the model via $order_id it only sends the first result through why? Code: foreach ($this->receivers as $rece) { $order_data['first_name'] = $rece[0]; $order_data['last_na...

0
Q: how to pass the javascript variable to php variable inside a javascript function

user2789695i know this is too dumb to ask. but i'll still ask this question.. i know how to pass the php variable to javascript variable inside the javascript function function foo(){ var bar = <?php echo $foo; ?> } But how about from php variable to javascript inside a javascript function. function f...

0
Q: Javascript triggered but not working

user2943710I have a code as shown below for my php to fetch database : $check = $db->prepare("SELECT DISTINCT company FROM inventory ORDER BY company ASC"); $check->execute(); while($row = $check->fetch(PDO::FETCH_ASSOC)){ $companies[] = array("company" => $row['company']); //$license[$row['compa...

0
Q: Local Database for Oracle SQL Developer

Dan DeMarcoI would like to be able to query a few small tables(which I have / can create) through Oracle SQL Developer. For the love of all that's holy all I want is a way to host the tables or create a local database to aim Oracle SQL Developer to. This topic is riddled with php, mysql, and wamp sugges...

0
Q: Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result

Tyler MatemaI am sorry I ask questions, I am fairly new with php and mysql, i am fairly new to understanding debugging. I created this adding member/friend file and the process file has an error Warning: mysqli_fetch_row() expects parameter 1 to be mysqli_result, boolean given in line 57 which is the $c...

0
Q: how to get the result of column name of a joined table having same column name?

Wang'l Pakhrini've joined 4 tables and 3 table have same column name called "Remarks". How can i display the result of Remarks of different tables? Here is the query $qry = mysql_query("SELECT * FROM setup_candidate AS SC, setup_candidate_degree AS SCD, ...

-1
Q: How to using PHP to get a array's name?

guanyueI'm making a page about dict. I need to write a loop to foreach them. For showing the each title, i need to get the array's name. (each title's name just is the array's name) i have a array here : $a = array('num1', 'num2'); $b = array('num1', 'num2'); $c = array('num1', 'num2'); $z = a...

0
Q: Php mvc clean url's

Tim98760I was wondering if anyone can me me with my php script, i am trying to make clean urls like this, without using any regex. Controller/Method/arg1/arg2/arg3 so far i have it working good but i can not get it to work with the arguments in the url. if anyone can get this script to work with the ...

0
Q: Replace certain words with link, but exclude word that already in a link

jackhaoI wanted to use regex/string replace function in PHP so I can replace certain keyword with links: Say there is a string: ` "Hello guys I want to ask a programming questions." The output should be "Hello guys I want to ask a <a href="https://www.stackoverflow.com">programming</a> questio...

 
4:40 AM
0
Q: php wont show in netbeans

NealioWhen I try to type some php code in my html file in Netbeans 7.3.1, it treats it as a comment and grays it out. Help Please! This is what I am trying to put into my HTMl file: <?php require("admin_func.php"); $mysqli = connect(); if ($mysqli->connect_errno) { printf("The Connec...

0
Q: how to change opencart url structure

alexmy current opencart store url structure is http://www.mydomain.com/categoryName/productName, but when someone click on it, it will be redirected to www.mydomain.com/productName, which will cause a lot of on page 301, so i want to change the product page url to www.mydomain.com/productName (remove...

0
Q: Alternatives to file_get_contents('php://input') - cURL proposed, can't get it to work

OBVFor when web-hosts don't allow file_get_contents (either directly, or by allow_url_fopen). I want to put together a list of alternatives. Can anyone offer suggestions? I found that cURL could be used, but the code below doesn't return anything in $output. $ch = curl_init(); curl_setopt($ch, CURL...

0
Q: Magicseaweed API collection error. Won't display all json results

pmanningI have install Magicseaweeds API regarding swell and surf information. The limit the information for 5 days in the future. I've chosen to take the 9am statistics. Some days it will only post 3 days or 4 days...currently as of 12:36pm on 11/1 it is only posting from 11/1 and 11/2. Because it c...

0
Q: PHP strtotime error when convert some date string to datetime value

William TruongI have a trouble with strtotime in php. $j = "2013-10-27"; for ($x = 0; $x < 100; $x++) { $j = date('Y-m-d', strtotime($j) + 86400); echo ' '.$j.' <br/>'; } As the code is self explained, it will add one day to $j and then display to browser. But when $j = "2013-10-27", it prints just one ...

0
Q: embedding a form in a parent view

aditMy Symfony app view layout is a three way level hierarchy, such that there is the baseview.html.twig and then the child of that is layout.html.twig and then the child of layout view is X,Y,Z,.... .html.twig. I wanted to pass in a form to the layout.html.twig, however where in my controller should...

0
Q: Auto updation of product price when its corresponding quantiy changes using jquery in a shopping cart

user2934937I am trying to develop just like a following siteenter link description here Here when the user tries to purchase many items, his cart is displayed.And he can try to change the quantity of any item.When he changes the quantity of an item,the corresponding price of that item has to change automat...

 
5:04 AM
0
Q: PHP PDO with BindValue

user2071361i found some problem about bindvalue and can't find a solution. this is my code it are work great if in put email like this "abc@aaamail.com" but my problem is when user are input email like "abc.def@aaamail.com" this query it not work. i don't know why and how to fix it anybody can explain to m...

0
Q: how to load next image on click or hyperlink on an image through ajax?

user2732629Based on the user selected to parameter= categories, user can play a game “hot or not” (example: http://www.moredirt.com/ratemyride/) Based on categories selected the first set of items images is randomly generated. Two images will appear and we have to choose one among themby clickng on it and ...

0
Q: How to populate input type file value from database in PHP?

user2885137I am writing the code for editing a form that contains an input file field. I am getting all the values pulled from database for different field types but the file type input does not show its value. I have a code that looks like this: <input class="picturebox" id="logo" name="userfile" value="<

0
Q: Get URL of configuration file

allejoI'm currently working a PHP project and I have a configuration file at the root of the the website. So for example the URL for the config file is this http://domain.com/my_app/config.php. I have multiple folders for different parts of the websites and different resources (i.e. images, css, and js...

0
Q: Can I create a file download on my html site that only includes the "save" button, not the open button?

KateMakmy code is below. This works, but I am wondering if there is a way to exclude the "Open" button and force the user to save the file. Thank you! <?php header("Content-disposition: attachment; filename=myfile.pdf"); header("Content-type: application/pdf"); readfile("myfile.pdf"); ?>

0
Q: Lowercase hexits. .NET and Java equivalent

sedgeA trading partner has asked me to send an HMAC SHA1 hash as lowercase heaxits. The only reference I can find to them is in relation to PHP. I can do the hashing in .NET and Java but how do I output "lowercase hexits" with them? Lowercase hexits doesn't appear to be equivalent to Base64.

0
Q: read specific data from csv rows

John FalcoI have a text file with 5000+ items and rows that look like this: "A3228-12 ","BOOKCASE; SOLID WOOD SHELVES ","Y","ACC ","OCCJER","N","C ","JER1","JER1"," 5.40 "," 54.00 ","EACH "," 162.99 "," 158.10 ","N"," 2.00 "," 2.00 "," 2...

0
Q: PHP file not putting file into folder

user2801698I have tried numerous attempts at this code, i know the html is correct, but the PHP is tricky <html> <body> <?php echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo "Type: " . $_FILES["file"]["type"] . "<br>"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " kB<br>"; echo "Temp file: ...

0
Q: PHP: Validate emailaddresses from array

Patrick Akkersi want to validate some email addresses. The input is given by users in a textarea and the addresses are seperated by comma, like this: email1@domain1.com, email2@domain2.com, etc. etc. This is the script i use to check the addresses: $emailadressen = explode(',', $_POST['uitnodigen']); ...

0
Q: How to create Passwod Protected chat room in PHP + Converse js?

Biraj ZalavadiaI am implementating a xmmp chat in php using Converse js. Everything is working great but not able to create password protected room. Can any one help me out please. Need some code snippet if possible. Thanks in Advance.

0
Q: Building a simple web app with database?

ZooceI'm building a simple airline reservation system (web app) for a class. I'm trying to find out where to start learning about implementing and integrating a sql database. User's should be able to search for available flights based on destination and departure cities and the like. A good example wo...

0
Q: Fetch image from webroot folder using the image id from the database cakephp

user2919339Hai i am new to the cakephp.I have create one sample form having two fields name and image file.I was able to save image name and uername in database table and save to the webroot folder.Now i want to retrieve image using particular id.How can i retrieve the image from the webroot folder using th...

0
Q: Any chance PDO will return a "wrong" last inserted ID with a static/singleton shared database object?

anjunatlWith MySQL/PDO, I believe PDO::lastInsertID() returns the ID of the last inserted object for the connection. I have my PDO object contained in a singleton object that any method can call so there's only one database connection per HTTP request to the server. class Database { public $db; ...

0
Q: How to assign GET parameter to Value attribute of HTML Input Text?

nkpI have following HTML form in which I am getting name from get parameter. I am unable to assign the value of get parameter to the value attribute of form. In the text field "$_GET['name']" gets printed instead of its value. What I am doing wrong here in this code? <!DOCTYPE html> <html> <body> <...

0
Q: Using database count rather than counting results in PHP mysqli

no_answer_not_upvotedHow to convert to use a count? function get_orders_count(){ global $mysqli; $query =' ...

0
Q: do i really need https to make login with facebook api?

Ahmed Badawyiam new to website development (php). i want to connect my website to the facebook to have the following abilities: log in with facebook like button share button new comments from my facebook page shown in my website. My question is: what do i need on my server to have the ability to do that?...

0
Q: Desperate plea - Wordpress WSOD + php fatal error cannot redeclare get_attached_media

user2943879I'm reaching out because this is an emergency for my partner's site--he desperately needs it up and running tomorrow :s This might also be a wider issue with customized twentythirteen issues in 3.7.1 Context A few days ago (Sun/Mon) I updated the Wordpress SEO & Google Analytics plugins, changed...

0
Q: PHP Session set into variable and unset it.

Eric Tjust a quick question. I'm trying to store a session into a variable and then in the second line I try to unset the session. There after my variable become empty. //Assuming session Hello has a value already $hello_world = $this->Session->read('Hello'); $this->Session->delete('Hello'); print_...

0
Q: PHP How to retrieve data from database(why this is wrong)please help me

Tharindu Chathuranga` $con=mysql_connect("localhost","root","") or die("Error conecting to the server"); mysql_select_db("testing",$con) or die("No Database".mysql_error()); $retrive = ("SELECT * FROM members WHERE Username"); mysql_query($retrive,$con) or die("Error Query ".mysql_error()); echo "$retrive"; ?`>

0
Q: Multiple wordpress loops not showing data

DenoteoneI am trying to add another loop to my template and the post id's are coming from a custom field saved into $field but the code below is not getting into the while loop. Also the post id's are for a content type called portfolio. Why is the code below not pulling and showing the post based on the...

0
Q: Javascript/PHP Add to cart function

ruski_LHello I'm trying to create a simple add to cart function, it was creating the cart in a separate table below the first one and adding in rows dynamically before i changed the displayBooks() table and now its only making the displayBooks() table, nothing happens when i click add to cart, been stuc...

0
Q: Magento How I send data from controller to display them in phtml file

user2797687I'm trying to send some data from controller to phtml using ajax/jason to show them on textarea of phtml page in my controller I have loop foreach($varlines as $vars =>$variable) { $completestatus->setData('comment',$oldcoment.' <br/ > Paid on LEC chq # '.$chqnumber." ".$datepaid." ".$amount)->...

0
Q: Adding item to shopping cart using php and html

user2659117I am attempting to implement a shopping cart using php, and html. The problem I am having is storing the id of the product to be stored using a session. The following is the code that I have at the moment: if(isset($_GET['search'])){ echo "<table border=1>"; echo "<th>Product Image</th>"; ...

0
Q: PHP Mysqli returns no rows, while manual SQL query returns results

NeuroXcI have a block of PHP code which is called through AJAX to insert a value into a table, then return a list of matching values from that table. The insert query runs just fine, but the select query returns nothing. If I go into phpmyadmin and manually run the select query, I get the expected resul...

 
5:57 AM
0
Q: I get "<identifier> expected" For my code and i don't understand why my code isn't working

Kwame OseiThe issue is that it says Identifier Expected but i don't know whats expected public class TTester { public static void main(String args[]) // main { //the first integer in the tree is used to create the object BST bstObj = new BST(50); // creating the object bs...

0
Q: JS variable to PHP to Mysql query

KayI'm trying to send a JS variable to my PHP using ajax post function post(){ $.ajax({url:"myPHP.php", data: {name: "John"}, success: function(data){ return true; }, }); } It sends to my PHP but let's say I'm t...

0
Q: How to change login and logout links dynamically in HTML page in PHP?

nkpI have following HTML code. I have 2 php files: login.php and logout.php. I want when first come to my page, he sees login link. On click of which I will process my login.php file. Once logged in, I want to change that login link to logout and on click of that logout.php file will be processed. ...

0
Q: PHP fatal error: cannot redeclare class only in the live server?

lauthiamkokI only have declared a class once, but in my live server it says, fatal error: cannot redeclare class ... It is PHP Version 5.3.27 on the live server, and my localhost is PHP Version 5.4 - is it to do with the PHP Versions? Also, with PHP Version 5.3.27, I cannot autoload classes using the a...

0
Q: i am using amazon mws api for getting product list. there are 29 prducts in a category but i got only 6 products. here is my code

user2943969hi i am just a beginner in amazone api please help me. i am using amazon mws api for getting product list. there are 29 prducts in a category but i got only 6 products. here is my code. Shoestore Brand is my store and Iron Fist is my brand category $request = array( //'Operation' => 'I...

0
Q: Pass JavaScript var to php function

Andy MartinI have JavaScript function with passed 1 parameter <script type="text/javascript"> function myfun(var1) { var returnVal = "<?php echo get_value(); ?>"; } </script> I want to pass JavaScript variable i.e. var1 to get_value(); Please explain how to do this

0
Q: Not able to get nested Comments in Wordpress

vs7I try to generate nested reply with my custom layout but its showing nested comments as a new comment ... here is my comment.php code <?php /** * The template for displaying Comments. * * The area of the page that contains comments and the comment form. /* * If the current post is protec...

0
Q: Protection from csrf

user2894116I was trying to use the form key method for csrf protection here http://net.tutsplus.com/tutorials/php/secure-your-forms-with-form-keys/ . But it applies or 1 form on a page only . My question is Suppose i have a form <form action="action.php" method="post"> <!-- code here --> </form> and My...

0
Q: How to assign Yahoo ID to a php string

user2927958I am trying to assign a string in PHP from an xml output of yahoo woeid. see the xml output below, <places yahoo:start="0" yahoo:count="1" yahoo:total="3"><place yahoo:uri="http://where.yahooapis.com/v1/place/2295351" xml:lang="en-US"><woeid>2295351</woeid><placeTypeName code="7">Town</placeTyp...

0
Q: Highcharts Categories Bug?

jreznikI am building a live sales board which automatically updates a column chart showing new sales numbers for a team of agents. I have a function, updateChart() which does the following: iterates through the sales object and pulls keys into an array (to be used for categories) if newCategories.len...

0
Q: wordpress, how to change contents of only the first post in a loop

deadman<?php $freeadvice=new WP_Query('category_name=freeadvice&showposts=10'); while($freeadvice->have_posts() ): $freeadvice->the_post(); ?> <li class="event"> <input type="radio" name="tl-group" /> .... </li> <?php endwhile;?> This is my current code for my loop, but wh...

0
Q: Outputting an Image with PHP

user2243125What I'm trying to do is take 2 images and combine them to output a single image. When I try to run my script I get a broken image icon and nothing else. <?php header( "Content-type: image/png" ); $img1 = imagecreatefromjpeg('http://www.refaim.com/images/maleCharacter.jpg'); $img3 = imagecreate...

0
Q: Where To Add api.php, index.php and script.js into working directory

user2922692My client requested I include an Google API in his site. I received these files by email (api.pho, index.php and script.js) - please advise me where these files (as I have little code experience) are placed? The site director has a js folder - do I place these files there? Your assistance is app...

0
Q: Hook AJAX in Wordpress

user1518699I have been delving into the world of Javascript and AJAX. I am super close, but for some reason I do not think I am hooking into wordpress ajax functions right. I have poured through the docs and this and think it is 99% there. Is what this app does is there is a list of items. Each one with a...

0
Q: PHP, call-time pass-by-reference error

Paul DinhamPHP has a list of possible errors and warnings: http://www.php.net/manual/en/errorfunc.constants.php I wonder which constant (in the list above) to be disabled in error reporting in order to run my old PHP codes which contain a lot of call-time pass-by-reference. Inside php.ini there's a config...

-1
Q: unable to create Facebookapp and Facebook page with same contents

Geeth PrasadI want to create a facebook app and facebook page with same contents.The facebook page should be updated according to the app.Give me a solution.

0
Q: How to add jQuery Quick Pagination prev and Next Botton

Nathan SriviI am using jQuery Quick Pagination. Reason: I have large array in php So i want to load this array to Jquery array pagination. Its working Good. But when page is extended to more then 10. its going to out of my div. My example image is given below. How can i fix this. i am trying many met...

0
Q: How to disable Submit button is get method?

Learn PHPI want to search dog so When i click on submit button the URL looks like http://localhost/myproject/search.php?q=dog&submit= i want to disable the submit button is the URL navigation. My code - <form id="formSearch" name="formSearch" method="get" action="search/"> <table width="100%" bord...

0
Q: How to remove the quantity buttons in downloadable product page in woocommerce

user2941399I m using woocommerce for my store and having the products which are downloadable like books.So here i am facing some problem for my downloadable product page i am getting the quantity button, so i want to remove the quantity button for all the downloadable product pages only.

0
Q: How to distribute PHP code within HTML elements in segments

Blessing ThinkerConsider the following code which works fine. <?php require_once 'php/db_conx.php'; $Result = mysql_query("SELECT * FROM table ORDER BY lastupdated") or die (mysql_error()); while($row = mysql_fetch_array($Result)) { ?> <input name="1" type="submit" value=" "> <span><?php echo $r...

0
Q: HTML Industry standard way of loading invisible images

user2733199I've been playing around with HTMl and created a crazy simple blogging type script that uses php to generate a menu/content. My menu uses jquery to change the background image of a div when you mouse over the links so that it displays an image relative to the link you moused over. The problem wa...

0
Q: CakePHP : Prevent XSS attacks

user1990503I have developed an application in cakephp and what i found is the stored XSS attack in my application. To handle this attack i added the Sanitizing::clean in my application which converts the special characters into HTML code. But when any string which is sanitized is used in a link $this->Html...

0
Q: Which web-framework fits my requirements?

WeedjoI had a new idea for a Website couple of days ago. I already own a webshop which I made with Shopware 4 and I was completely satisfied! I have experience with the basic web-stuff HTML, CSS, Javascript, jQuery, PHP, MySQL etc. but I don't want to make everything on my own, so I'm looking for a Web...

0
Q: How do I execute form action without redirect?

KateMakI am executing a php script to send an email, but do not want the user to be redirected upon success. How can I do this? (My script has a pop up box that comes up and says "Success!") Thank you! <form action="script.php" method="post" enctype="multipart/form-data"> <label for="file">Package:<...

0
Q: Move uploaded file function in php is not working

Muneem HabibFollowing is my piece of code which moves file to particular directory. foreach($files as $dir_file) //Getting Path of XML file { echo "\nDir Files: ".$dir_file."\n"; if($dir_file != "." && $dir_file != "..") { if(strpos($dir_file,'...

0
Q: cakephp customise password field

user2575428I am developing an application using cakephp 2.3.9 .It got a users table to save user credentials .How do i use a different filed in User table other than password field to save password.Thanks in advance for any help.

0
Q: Local host (Wamp) can't send email to other mail server

vaibhavi am cahnged php.ini file, here is the code. [mail function] ; For Win32 only. ; http://php.net/smtp smtp_server = smtp.gmail.com ; http://php.net/smtp-port smtp_port = 465 ; For Win32 only. ; http://php.net/sendmail-from auth_username = abc@gmail.com sendmail_from = abc@gmail.com auth_password...

0
Q: adding plugin support to a wordpress theme

user2408194i have intalled 'meta slider lite' plugin from admin panel of wordpress and i'm also using my own theme.but my theme does not showing the plugin.i'm able to use menu and header option of wp theme.i need help according to showing plugin and also want it within my specific header area.actually i wa...

0
Q: Ajax call returning 0 as response in mobile

Santosh kumarI am trying to call ajax in wordpress. It work fine in browser but in mobile device it return response 0 . Here is my wordpress & Jquery code. please suggest where i am doing wrong The code in functions.php file function get_nearest_destinations() { $data = array(); check_ajax_referer( "getne...

-2
Q: How to redirect files from domain to another

PerilI have many files in domain abc.com for example abc.com/file1.pdf and changed the domain is theres anyway to redirect the users from abc.com/file1.pdf to def.com/file1.pdf all the files are the same names, just the domain changed Regards,

0
Q: How to show error messages in HTML page in PHP?

nkpI have following login form (login.php) in which I am asking for username and password. <form action="processlogin.php" method="post"> <input type="text" name="username"> <input type="password" name="password"> <input type="submit" value="Login"> <...

-2
Q: How to parse JSON string in this code?

user2870332How to parse this JSON string in (.com) URL: [{"Title":"Russian Textile: Printed Cotton from Traditional Patterns to Soviet Propaganda Design","Image":"http://www.moc.gov.bh//en/TheEvents/CurrentEvents/Image,10460,en-67x100.jpg","Category":" Exhibition ","Venue":" The National Museum hall 8 and ...

0
Q: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result

Arun KumarI am trying to create a table which is generated just by selecting rows containing QLD in the table column state. I am not sure how my fetch array works with specifically but i knew it returns the row which suits the condition given. But the html throws the error. Can anyone know where I went w...

0
Q: Why can I define a PHP function with a non-printing character?

jerdiggityI have always been under the impression that all php functions had to begin with [a-zA-Z]. For instance, this would work: function a1() { return "Something, because I'm written properly."; } ... while this would not: function 1a() { return "Nothing, because you'll encounter an error befo...

0
Q: Read text from image in PHP

MeghaI used OCR for reading text of my image, but it gave the error that PHPUnit_Framework_TestCase class not found, i tried a lot for these. Implemented with other different codes but with no output. Do anyone have a working example for this is PHP website. If so, kindly help me. I am stucked in find...

0
Q: Cannot Zip the file after Copy (PHP)

user2940018I had tried the zip using some small file and it run successfully, but after i changed the directory, and mix with copy fragment, it seem not functioning at all. I Tried add echo $entry; a line before $zip->open(...), It show the result. which mean the loop is functioning. but when i try echo 'C:...

0
Q: Cant declare array from SQL string

UtherTGI have SQL string that suppose to be an array. Im quite new in php and sql and cant figure out what to do next. Sorry for noob question. I have query from sql, its fine. Via mysql_fetch_array I've got cell I needed. It looks like: [{"id":"X","value":"Y"}{Same structure}{Same structure}] As...

0
Q: PHP Switch only works every second case?

Stevie GI'm redirecting with 301 redirects in the ErrorController on a Zend Framework Web Project. Using the following code: $request = basename($this->getRequest()->getRequestUri()); $this->getHelper('redirector')->setCode(301); switch($request) { case 'test...

0
Q: Access navigation item from wordpress database

Smriti10how to access navigation item from wordpress database ,when there is no common relationship for all navigation item for these tables wp_posts, wp_terms ,wp_term_taxonomy , wp_term_relationships ?

0
Q: update a calender event in outlook using php

prateek jainI want to updates the calendar events in outlook that is already present or sent else add the new event to the calendar. I went through it and found difficult to do it, Is there a way to do this using php?

0
Q: How I post on facebook page without clicking button in php

Navjot Singhpost on facebook without button. I was doing this last 2-3 days but this is not work

0
Q: login using facebook api response undefined

Nimesh Using facebook api I am trying to login my site with the use of javascript. It's work fine for me. I get user firstname lastname email and hometown.name from facebook users when any user will not insert hometown in facebook at that time i got the error other wise it works fine for...

0
Q: Hide Webservers File Structure When Saving File from a Web Site

Andrew BurnsHi have the following piece of code that takes in csv formatted data the purpose is to then to save this file on a local machine. However When I press on the button to export the default structure it asked me to save the file is on the webserver itself. I obviously don't want users to know or see...

0
Q: How to redirect controller from same module

Thyu I have one module that is OfficeModule. In OfficeModule I have two controller BranchController and BranchTypeController. And two model BranchModel and BranchTypeModel. And also two view file. Files path are like that: protected\modules\office\controllers\branchController.php pr...

0
Q: Change excel data into a multidimensional array

techierishi How can I convert this excel file into following array format Array [Test's Restaurant] => Array ( [Appetizer] => Array ( [Salsa & Chips] => Array ( [Radio] => Array ( [0] => Coke ...

0
Q: mysql error inner join

user2944155SELECT bp.project_id,bp.project_name,bp.project_costing,bp.project_borrower_id,bp.member_userid,bp.project_staus,SUM(pb.payment_amount) as total FROM borrower_project_master as bp INNER JOIN payment_invest_master as pb ON bp.project_borrower_id=pb.payment_borrowerid WHERE ( (SUM(pb.paym...

0
Q: Wordpress prefixing all embedded URLs within the post with base website URL

Suresh KumarFor example, in my post I want to direct the readers to my LinkedIn page, I do the following: Please join our <a href="http://www.linkedin.com/groups/mygroup">LinkedIn group</a> What this does in reality is create a URL pointing to: http://www.mywebsite.com/%22http://www.linkedin.com/...

0
Q: How to declare global variables in PHP which can be used in each and every file in the project?

nkpI want to have a file in the project which will store all the global variables throughout my application. For example I am writing following urls in many files header("Location:http://localhost/mysite/index.php"); header("Location:http://localhost/mysite/login.php"); header("Location:http://lo...

0
Q: select all post_meta starting with "temp_size" based on post ID

Stejsiin my worpdress database I have rows where post_id is the page's id and meta keys are temp_size45, temp_size99,.... I would like to show all those values from those meta keys that start with "temp_size" So then it would look like this temp_size45 value temp_size99 value ... ....

0
Q: How to get content of browser's page view source?

Nimesh RathodLet me explain you my requirements. I want all the content of one page. For that I have use this code: $strPage = file_get_contents("http://www.realtor.com/realestateagents/Los-Angeles_CA?source=web"); print_r($strPage); I have execute this page, but I got the error like: "Blocked IP Address...

0
Q: Select rows before and after matching row in specified order

VukBGI have a table of users with points column in it. User id is not autoincrement, but it is user ID from Twitter. I'm trying to select user by username (so always 1 user) and select 10 rows before it and 10 rows after it. Also, it should be ordered by points and I should get ranking of selected ...

0
Q: Mysqli stmt num_rows always 0

EmreI think everything is ok. Mail stored in DB but the output is 0. Where i am wrong ? class connection { private $mail; private $conn; function connect() { $this->conn = new mysqli ('**','**','**','**'); } function control () { $this->mail = 'aa@a.com'; ...

0
Q: Resizing give some black image

Florent PichonI'm using a function to resize pictures. Most of images are resized very well. but someone, I don't why are only black. the same picture always give black result. May be it's the kind of Jpeg who give this.. but how to change it? Thanks ! function create_image($file) { if(is_file($file)) { ...

0
Q: how to use each on ajax using onclick

user2434677I am new to AJAX I've been struggling to code on ajax, but i am enjoying it. my problem is i have a looping data where in each has a vote link functionality. I was able to do the ajax function but once i click on each data it give me one value only which is the first value i am getting from the ...

0
Q: Joomla after migration on localhost

baba janI have migrated joomla website from server to my localhost,initially i was not getting the pront page content of the website it was just a white screen but the admin panel was working fine and all the contents are present there, then i have changed the error reporting to maximum in the global sit...

0
Q: Google Calendar create read-only event

user2218679I'd like to make a read-only event using Google Calendar API. That means that once the user authorizes my page to making the changes onto his/hers calendar, I'm able to create the events which wouldn't be editable by the user. The "locked" property in the documents seems to do just that, but set...

1
Q: Post objects in jquery Ajax

PrinceI have to send position size and their parent details in jquery ajax and get them by PHP My code is :- $("#save").click(function(){ var pos=[]; $(".dr").each(function(index){ dragId=$(this).attr("id"); topPos=$("#"+ dragId).position().top; left=$("#"+ dr...

-3
Q: An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'Paging' to a type definition for element 'ns1:paging'

user2903147An error has occurred: Unmarshalling Error: cvc-elt.4.2: Cannot resolve 'Paging' to a type definition for element 'ns1:paging' I am getting such type of error while using Google Adwords Api. The code is running successfully on my local but not working on server(PHP 5.2). I am getting KeywordsIde...

-2
Q: Get title of a link with php

user2416687I need a function to get the title of this for example: <a href="http://www.test.de" title="This is a title">Link</a> The function should output this: This is a title

0
Q: How do I implode and wrap single words in php?

DanielI have an array like: apple,orange,pineapple But I need: ["apple", "orange", "pineapple"] Cheers!

0
Q: Dropdown menu in navigation bar appear in bullet form in Internet Explorer

niaizahraIve been searching for the solution all day. Dropdown menu of my website seems not working properly in IE as its appear in bullet forms that line in the left side of the page.See the image below. I dont know what is wrong with my website as its working successfully in Chrome and Firefox.Can so...

0
Q: Facebook Graph API batch with multiple Apps

Nikola StojanovićIs it possible to create one batch request that gets/posts for multiple apps? I'll give an example. I have app1 with permissions for user1, user2, user3. I have app2 with permissions for user4, user5 I need to post on the walls of all of these users, with one batch call. I guess it would ...

-6
Q: How to retain values in HTML input texts in PHP?

nkpI have following login form (login.php). <form action="processlogin.php" method="post"> <input type="text" name="username"> <input type="password" name="password"> <input type="submit" value="Login"> </form> My login functionality is working f...

0
Q: Selecting a distinct value and the sum of times it shows up in a column

user1024370I have an existing table with millions of entries (growing) that consists of: userid|name|etc... 1 frank ... 1 frank ... 2 joe ... 5 sam ... 1 franky ... What I need to do is return a table of: place|name|total 1 franky 3 2 sam 1 3 joe 1 Where...

0
Q: If i host a web site it genarate a error

sachiniI have a create a web site . but after it host it genarate error like this While trying to retrieve the URL: http://mychurch.sachini.net/ The following error was encountered: Unable to determine IP address from host name for mychurch.sachini.net The dnsserver returned: Name Error: The dom...

0
Q: How to set values after chart is rendered in Flot?

user2655665I'm currently using Flop to display a chart on my website. It's a chart with one series of data and the x-axis is set to time-mode. Now I have some buttons to change the spectrum of view ("Show all", "Show last six months", "Show last year", etc.) but I don't know how to change a specific attribu...

 
8:27 AM
0
Q: how to add cancel button instead of cancel href in joomla 2.5

Miran SenanayakaHow to add cancel button instead of cancel href in joomla 2.5? I've tried by adding it to components/com_users/views/registration/tmpl/default.php but i think it has to configured by xml file that I couldn't do. so please. help Thank you. <a href="<?php echo JRoute::_('');?>" title="<?php echo J...

0
Q: if(in_array) not executing correctly

RemeJuanI am trying to put together a geodetection for altering slight language variables. I have the detection working perfectly, but the array check seems to not be working, I need to know if its from a list of countries. If I echo the country then I get the correct name so I know that parts working. ...

0
Q: How to use array in getElementById

user2944292I used an ajax function to fetch labels and ids from the database, which contains exactly the same set of ids used in my form. The query returned a comma separated value which I sent to a second function as below. This function successfully split the comma separated values, and I used it to buil...

0
Q: Dynamically add settings fields using AJAX in Wordpress

user2944218I'm trying to build a settings form for wordpress plug-in. I don't know exactly how many options will be, so it have to be form with dynamic structure. All options stored in array. Link "add new field" have to add new field and update_option array. Array is updated with the settings but the fiel...

0
Q: Force all pages to HTTPS

user1688346I am using Heroku php with SSL on. Everything is setup and https works perfectly. My domain hosted in Godaddy. Heroku as apache web server. but http://mysite.com, www.mysite.com will not redirect to https://www.mysite.com which is what i want. I had changed the .htaccess file to following Rewri...

0
Q: Facebook blank canvas page from php if $_COOKIE statement

Fatal ClericI'm using Facebook Php SDK v3.22 which I have JavaScript set me a cookie that is read in Php For some reason when I use an if statement like so: if($_COOKIE['anything'] == 'some_data'){ //do something } My canvas page redirects to a blank page with no error caught upon logout I see in my pag...

0
Q: count repeated value in table field

user2881770how i can count the repeated value in any field of mysql db's table. Example: id name 1 aaa 2 aaa 3 ttt 4 ccc 5 ttt 6 ccc 7 aaa 8 zzz How i can get how many times value is repeated in table like. aaa =3 ttt =2 ccc =2 zzz =1 I thi...

0
Q: Please help me to understand whats wrong in my code

Tako AndghuladzeSelect doesn't work or i have error? Help $person = mysql_query ("Select personID from persons order by personID desc Limit 0,1"); $query_string = 'INSERT INTO topics (topic, description, abstract, ...

-2
Q: What happend to composer site (getcomposer.org)?

user2944336I just tried to update composer and it gave me 502 (bad gateway) error!(on first November 12:14 PM) So i checked and it looks like the entire site is down.Any clue?

0
Q: How does Wordpress make the system able to update itself?

TheStoryCoderI have a website I want to be able to do the same kind of core update that WordPress can do - but how do I go about doing that considering that it must be secure? When PHP scripts are able to update themselves it sounds like a great security threat to me! But WordPress is doing it so there must b...

-6
Q: How to do payment gateway?

Gokul OrangeI'm thinking to build a payment application that will capture the credit card information from the application and use HTTPS POST(3rd party payment gateway) to perform the credit card transaction.

0
Q: How to determine if a google app is installed for the first time

user225269How do I determine if a google app is being installed for the first time? By google app I mean a web application that uses one of Google's api's to access a users data. I currently have the following code used for getting access token to be used on subsequent requests to the API. $auth_code = $...

-1
Q: Formatting a date like 2013-11-01T08:50:43.305Z

BenMaybe a trivial question but I can't seem to figure this out. I need to format a date like 2013-11-01T08:50:43.305Z in PHP. I'm not sure how to add .305Z-part in the formatting. I've been looking at the docs (php's date-function documentation) but I must have overread it there... Any help is appr...

0
Q: Avoiding clashing of events by comparing their time and venues

ZiaThis might be easy for some of you but for me its a big hitch: What I want to do is make sure two events don't clash by comparing their dates and venues. Here is what I have done so far: <?php require_once (LIB_PATH.DS.'database.php'); require_once ('../includes/initialize.php'); cl...

0
Q: PHP SQL Substring and process values

user2022298I need some information out of the database for my Event Calander. Example: The date is stored as 2013-11-01 now I want to store the month (11) in an $month so I can compare it. How can I achieve this.

0
Q: Javascript stopwatch

user27019I'm trying to develop a webpage. for that i need a stopwatch. i found one. but it is fullfilling my requirement. my requirement is when i submit that page i want to continue the stopwatch. i want it run as lap timer. can anyone help me? please. <!doctype html> <html lang="en"> <head> <meta ...

0
Q: Split Into New Tables When IDs Are The Same

Andy NaylorI have a table that splits up information based on the week id. This is the query that creates it: $result = mysqli_query($con,"SELECT * FROM b_tasks_report WHERE TASK_ID=$taskid"); $current_week_id = -1; while($row = mysqli_fetch_array($result)) { if($current_week_id != $row['WEEK_ID']) { ec...

1
Q: Email Piping and PHP

TinydanI'm currently trying to get some help desk software set up and it has the functionality to pipe emails to a PHP script. We use a Microsoft exchange server for our emails while the website and the PHP script to pipe to is hosted on a separate IIS server. All the examples I've seen of this being ...

0
Q: Link from markdown file to php class

stoflI'm documenting a php project with doxygen. Now I want to put a link in a markdown file, that targets to a php class: \mynamespace\service\Config. How do I have to write that link? (The markdown file is transformed by doxygen into a html file and doxygen should be able to create such a link.)

0
Q: PHP spl_autoload_register causes classes duplications?

lauthiamkokI have these class files under the model folder, MyClass.php MyClass2.php classfour.php And I want to autoload them via Autoload class, define ('WEBSITE_DOCROOT', str_replace('\\', '/', dirname(__FILE__)).'/'); function autoloadMultipleDirectory($class_name) { // List all the class dire...

0
Q: Check localstorage found or not in php

user2933912i will work my web site in local storage,localStorage is something that is kept on the client side. There is no data transmitted to the server side. And i will echo it in my site like :- <div id="listdetails" data-role="page"> <? echo "<script>document.write(localStorage.resultDetails);</script>...

-2
Q: How to load updated data from database(mysql) without refresh the page?

user1821295I want to show the data from database into a page. I am using AJAX and PHP. But there is not coming new updates data. If i refresh the page, then it is showing new updates data. Please give me some idea about it or some links for example. Thanks advance everyone.

0
Q: Understanding how to publish to a facebook page as a page via a website (app)

user2944382I have spent quite some time now trying to establish how, and then the best practise to push some data from my web server to the facebook page created for this purpose. I have read and understand the process of using access tokens. I have generated an access token for myself, which can be used...

0
Q: Why script not showing at footer section in wordpress?

Reya MonyI am trying to add jquery to my wordpress theme. I have used this code function theme_name_scripts() { wp_enqueue_script( 'jquery',true); } add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); But it is showing at head section . Not in footer section. What is the reason?

0
Q: can anyone help me to solved my javascript code?

user2738520I have tried several days with javascript, but i'm poor with it. My code is fetch data from database (suppose there are 4 records). Only first loop that effected when i changed radio button. Below is my code: PHP CODE while($row = mysql_fetch_array($sql)){ echo "<div class='loop'>"; echo "<p>

0
Q: PHP Registration Script, Inserting to Database not working

Georgewb13I have an issue with my PHP code for a registration form on my website. Some of the code doesn't get executed when the form is submitted. if ($fnameError = "" && $emailError = "" && $userError = "" && $passError = "" && $cpassError = "" && $tickError = "") { $con = mysqli_connect("localhost"...

0
Q: Get a PHP output from SWF file

PeaceDealerI'm trying to set up some sort of arcade on my site. On the site, we have this "premium currency", and a few smaller games such as Blackjack, Vault Bruteforcer & a Slot machine. What i now want to do, it take a flash game, such as "Candy Crush Sage" for example, and make it so if you get a certa...

0
Q: PHP str_replace any number pattern

DesignSubwayI have what seems like quite a simple query. I have the following code in PHP: $newThumb = str_replace('style="width:170px;"','',$nolinkThumb); The problem that I have is that the number '170' can be any number therefore I would like my str_replace to reflect this. I have tried using: $newThu...

0
Q: How to work with longint arrays in PHP fast?

ahasoftI need to store longint arrays in files and spend only 4 bytes for every longint. And fast procedures to work with longint arrays are required. Do some extensions/libraries for PHP exist with this abilities?

-2
Q: table header is repeat in a while loop

hagayplease help me with this.. how can I prevent the table header from repeat ! thank in advance. echo "<table>"; echo "<tr> <th>ratio</th> <th>size</th> <th>built</th> <th>description</th> </tr>"; while ($row = $sth->fetch(P...

2
Q: Comparing numeric strings

Kiren SivaFrom the question PHP Type-Juggling and (strict) Greater/Lesser Than Comparisons I know PHP interpret strings as numbers whenever it can. "10" < "1a" => 10 less than 1 expecting false "1a" < "2" => 1 less than 2 expecting true "10" > "2" => 10 greater than 2 expecting true...

 
9:51 AM
0
Q: How do i upload, insert to database and rename files in php?

user2944466I have some problem in my project, i'm making a manga reader website, and i make a chapter pictures in multiple form, so here is the code $manga_id = $_GET['manga_id']; mysql_connect("localhost","root",""); mysql_select_db("task3"); $chapternumber = $_POST['chapternumber'];...

0
Q: chat box message when session is out in php

khushiI am creating a chat box and i want feature like if user send message to another user and if another user is offline then this chat message will send to another users message box. just like gmail chat aplication

0
Q: json array not being posted to PHP using Javascript post method

James BondIn the view: function updateData(that){ $.post("<?php echo $base_url;?>index.php/controller/function/<?php echo $details['Id'];?>", { data: JSON.stringify(f) }, function (res) { }); } Now within the php function, function: function () { print_r($_POST); } returns an empty ar...

0
Q: delete row with ajax function and php

Radiani have a table with mysql Data,i add a trash button and i want remove each row when trash button is clicked with ajax function, this is my html: <table border="1"> <?php $sql ="SELECT * FROM music"; $result = mysql_query($sql) or die(mysql_error()); while($row = mysql_fetch_object($result...

0
Q: table header is repeat in a while loop

hagayI have this code where I want to prevent the table header from repeat. someone can help ? this website ask me to put more details before i can post this question. if (isset($_POST['toys'])) { $query = 'SELECT * FROM `toys` WHERE size = ?'; $sth = $db->prepare($query); foreach($_POST['toys'] as $...

0
Q: Order of stylesheets with ZF

MaxI'm using ZF 1.11 and I have a silly question regarding the order of the stylesheets: In my layoyut.phtml I want to set up global stylesheets: <!-- layout.phtml --> <head> <?php $this->headLink() ->appendStylesheet('/css/a.css') ->appendStylesheet('/css/...

0
Q: Laravel Authority - how to call Authority::can() as another user?

MMacdonaldI'm using the Authority package for access control in my Laravel application (which I'm upgrading from Laravel 3 to Laravel 4). For unit testing of the access rules, I need to be able to call Authority::can() as another user. In Laravel 3 Authority, I used the as_user() method: Authority::as_us...

0
Q: parse element from Select List to $_POST to write to database

CataneoI am currently making a registration form and pasting all elements via $_POST Like this: <input type="text" placeholder="Your username" name="username" value="<?php echo @$username; ?>"> My problem is I want to make a Select list <select name="Icecream Flavours"> <option value="double ch...

0
Q: SQL Count Records Held in All-time Records from a personal best table

The MafsterI have got a Personal best table that holds fishing weight personal best records for each named fish. These fall under a particular species. SO far I have managed to pull in the all time records for each named fish, grouped by the species. What I am trying to do now is set up a statistics page ...

0
Q: Parent child tree view menu error

EwideWhen I fatch records from db to show them in a menu in a parent child tree view. I am getting this error but it is working fine in refrence code. both codes are add below. Please help on this. Thanks asd Warning: Invalid argument supplied for foreach() in D:\software\xampp\htdocs\claremont\adm...

0
Q: Select query for multiple tables

AxxessI have tables A01, B01, C01 and so on... all with identical structure. +----+-----+ | ID | val | +----+-----+ | 1 | a | | 2 | b | +----+-----+ +----+-----+ | id | val | +----+-----+ | 1 | c | | 2 | d | +----+-----+ +----+-----+ | id | val | +----+-----+ | 1 | e | | 2 | f | +-...

0
Q: Weird pagination behavior in CListView in Yii

user2944434I'm a Yii and php newbie, I'm trying to make a page based on the default index page (with CListView) generated by Yii tutorial website. The gii generated my model and CRUD w/ controllers and index page has almost 100 pages, and all I want to do is: to add a textfield and a button to specify a co...

0
Q: Best practice for linking images/files in different web folders

MerkleyProbably title don't make any sense , so i will explain my problem in details. Lets say i have www.mysite.com , where i have background image for div , onclick() , div changes background image. Everything is working just fine. Problems start, when i have subfolder, for example, myblog. It looks...

0
Q: php RecursiveDirectoryIterator: how to exclude directory paths with a dot and double dots?

lauthiamkokRecursiveDirectoryIterator seems to give me two different results from my localhost and live server, define ('WEBSITE_DOCROOT', str_replace('\\', '/', dirname(__FILE__)).'/'); print_r(WEBSITE_DOCROOT); // List all the class directories in the array. $main_directories = array( 'core/model/'...

0
Q: load a page after jquery run inside

Hanangger Hutamahow to "fully" load a page that is containing jquery inside? example : page1.html <script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#page1-content").load('page2.html'); }); </script>...

0
Q: PHP Warning: mysql_fetch_row() expects parameter 1 to be resource, boolean given in

Gordey Ponomaryov[01-Nov-2013 11:58:27 Europe/Bucharest] PHP Warning: mysql_num_fields() expects parameter 1 to be resource, boolean given in /.php on line 5* I don't know why I recieve this error. Here is what my code looks like: <?php ini_set('memory_limit', '1000M'); set_time_limit(0); backup_tables('host',...

0
Q: Two arrays to one

user2944531I have two arrays and I want one, can I add array 2 to array one? $array1 = array("Germany" => 2, "Belgium"=> 3); $array2 = array("France" => 4, "Italy"=> 5); $final_array = {both arrays in one}; is this possible?

0
Q: PHP Check if dinamic named folder exists

Santos RibeiroI'm having problems checking if a dinamically named folder exists using php. I know i can use file_exists() to check if a folder or file exists, but the problem is that the name of the folders I'm checking may vary. I have folders where the first part of the name is fixed, and the part after...

0
Q: unable to increment static vaue i PHP

sai prasad majjiI am trying to print score automatically, if the question correct it should increment the score..I tried this functionfunction checkscore () { static $score = 0; if ($_SESSION['result'] == "Correct") $score ++; return $score; } ...

0
Q: Create and Update as one action in CRUD

JaroslavIs there a reason why Create and Update are distinct when making MVC application in PHP? I see why they are distinct in theoretical explanations, but is it worth keeping separate actions and views for create and update in CRUD controller? If I only need to change the title of save button it seem...

0
Q: The memory size limit is related to the number of pages on the site?

user2568578I have a website in yii faramwork When it comes to more then 200k pages it gives this error: Fatal error: Out of memory (allocated 359923712) And my hosting server can bring me up to: 250MB How can I use up to 250MB, an unlimited pages? This is related to PHP script or cache? Where should I ...

0
Q: Preventing missed scheduled posts on WordPress 3.3.1

crmpiccoI am using a modified version of WordPress 3.3.1 and have been alerted to the fact that scheduled posts have been "missed" and are not posting automatically on time, meaning they have to be manually posted. In the Posts admin in WP, the post shows as "Missed Schedule". This happens for all sched...

0
Q: Finding grand total automatically when price of each product is updated in a shopping cart using ajax.

user2934937Hi I am developing a shopping cart.I have displayed all the products and its details in table. I need to update the grand total, if the user changes the quantity of a product.When the user changes the quantity of a product the corresponding price changes.Now I need to change the grand total also...

0
Q: Get domain name without port using HTTP_HOST

John MagnoliaWhen I check the logs there are a few rare occasions where for some visitors(bot I think) the $_SERVER['HTTP_HOST'] is returning: www.domain.co.uk:80 What is the correct way to get only the domain name without any ports? Should I be doing it this way instead: $url_components = parse_url($_SERV...

0
Q: Object issue in php

shemeermaliI am passing a set images to a third party website, i have to pass values using following object $data_params->Images->Image And should be parse like this <Images> <Image>(pass in the image URL or primary image)</Image> <Image>(pass in another image URL to add to the gallery)</Image>...

0
Q: Posting through jQuery yields undefined characters

user2854563When I try to post through jQuery it yields undefined characters. I'm using this jQuery code; jQuery(document).ready(function($) { $("#status_submit").on('click', function() { var message = $( "#message" ).val(); var uid = $( "#uid" ).val(); $.ajax( { ...

0
Q: export to excel with multi language support

PrakashI have a PHP program to show all the product description. It is in french language. So I used utf8_decode. Here I have to export more tables. How can I export all the column name without utf8_decode function? Any function can fix this problem? <?php header('Cache-Control: no-cache, no-store, mus...

0
Q: Problems with multiple PHP functions in the same file

user1476992I want to make an AJAX call to a php file called functions.php, where I have mutliple related functions (all making database changes to accounts, ie. add, edit, delete). I've been struggling with this, because the AJAX call seems to work fine, but the response that comes back from the server is ...

0
Q: 7digital API : OAuth authentication error: Invalid signature

Kajal SinghI have problems with the authentication, i am doing this steps: 1. First time I get the oauth_signature by using this site url with following details: http://7digital.github.io/oauth-reference-page/ url: https://api.7digital.com/1.2/oauth/requesttoken consumer key: MY_KEY consumer secret: MY_...

0
Q: Transform an array in String. Result => "array...array"

beegeesI would like to transform this array in String with implode : Array ( [0] => Array ( [technologies_id] => 1 [nom] => PHP [type_technologies_id] => 1 [nom_techno] => Developpement web ) [1] => Array ( [technologies_id] => 3 [nom] => ASP3 [type_technologies_id] => 1 [nom_techno] => Developpement w...

0
Q: No database selected inside function, what the solution with PDO?

SoniaI'm attempting to perform a query inside a function but it return me "No database selected". I regularly have re-initialized the PDO object inside it $db = "mysql:host=localhost;dbname=my_database"; $pdo = new PDO($db, 'dbname', 'dbpassword'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_E...

-2
Q: How to get result from a range in mysql table?

PurushottamI have a table like, GroupID GroupRange(Type Varchar) 1 13-17 2 18-22 3 23-27 4 28-32 5 33-37 I want to execute a query and When I will enter a value 19 then query should return group id 2,when enter 26 then return group id 3... Is it possible to do with mysql ...

0
Q: mysqli_multi_query syntax error - not inserting into DB

J CrowI am trying to use the mysqli_multi_query function on the code below but being hit with this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ');INSERT INTO node_tvoip0 (timeperiod, `exchange_id' at line...

0
Q: Ajax call only if the jquery validation is valid

vishalI have a form and ajax call.data are filled in form and goes to remote at the same time user is created in my database using ajax call.but the problem is with validation,which validation should apply here for example i apply any jquery validation i need to test if the form is valid and then i can...

0
Q: Zend Amazon S3 PUT errno = 32

Samuel AdamI wanted to upload an image to Amazon S3. Previous programmer uses \Zend_Amazon_S3_Service class, but I updated composer.json and received "zendframework/zendservice-amazon": "2.0.*@dev" instead so I updated the code.\ Both classes constructor received same two parameters, an access key and a s...

0
Q: Force method attributes to be as given values

NarekI have method in class: class SomeClass{ public function someMethod($status){ echo $status; } } I know what $status can be 1 or 0. Is it possible to force method work only with that values? So for code: $class = new SomeClass(); $class->someMethod(2); get some error (fatal,...

0
Q: Laravel 4 Blade: How to use custom models?

user2002495Normally in Laravel I call a model by creating something like this: class Config extends Eloquent { protected function getBaseUri() { return sprintf( "%s://%s%s", isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https' : 'http', $_SERVER['HTTP_HOST'], '/project/public/asset...

0
Q: Warning: mysql_connect(): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

user2944454everyone. I'm a student and very inexperience newbie with PHP . Before you mark this as irrelevant or duplicate or anything. Hear me out please, I need to connect to my school host to test out my codes, I have installed XAMPP, phpmyadmin 4.0.4.1 using notepad++ text editor, PHP5.4.19 and FTP WinS...

0
Q: creating big csv file in windows-apache2 (PHP)

KonstantinosI create a simple csv file with php (about 20.000 rows and 60 columns). The final size is about 130MB. The db running behind is oralce 10. I fopen, fwrite and fclose the file, I zip it and I delete the big csv file. When I create all these in ubutu apache2, everything is ok no problems. When I ...

0
Q: How to put new line character in PHP?

nkpFollowing is my PHP code. $msg = ''; if (condition1) { $msg.= "Error 1 " } if (condition2) { $msg.= "Error 2 " } if (condition3) { $msg.= "Error 3 " } if ($msg != '') { $anyMsg = "Following errors have occurred:".$msg; } If condition 1 and 3 get failed, I get the message Following er...

0
Q: MySQL: Cannot create temporary from Stored Procedure

JacquesHere is the MySQL SP Statement (assume database is called 'mydatabase'): BEGIN DECLARE remainder TEXT; DECLARE currentSelection TEXT; DECLARE tempT TEXT; DROP TEMPORARY TABLE IF EXISTS splitStore; CREATE TEMPORARY TABLE splitStore ( val varchar(255) NOT NULL ) ENGINE=MEMORY; SET remainder = i...

0
Q: Symfony2 routing with two bundles issue

user2709153I have issue with routing in my Symfony 2 application. This application contains 2 bundles MainSiteBundle and GalleryBundle I configured routing with prefixes like that: app/config/routing.yml honorata_photo_main_site: resource: "@HonorataPhotoMainSiteBundle/Resources/config/routing.yml" prefi...

0
Q: PHP "until date x" - Why are the 24 hours of the final day not included in the period?

Echt Einfach TVI implemented a countdown in one of our projects. As this was my first countdown I just realized that if I tell PHP: $timeleft = strtotime('2013-10-31') - strtotime('now'); $daysleft = floor( $timeleft/(24*60*60) ); I get the time left to 2013-10-31 00:00 instead of the full day. Why is it ...

0
Q: mysql query (join) and adding subqueries

salivanI've this query, and it displays results correctly. I didn't use join, but it still seems to return correct values, how is that possible? SELECT connections.id, connections.word_id, connections.order_id, connections.top, connections.deleted, (UNIX_TIMESTAMP() -...

-7
Q: how to jquery post array?

user2773795HTML CODE <tr class="order-detials"> <td><input type="hidden" value="2" id="order-mid" name="order-mid[]"></td> <td class="order-number"><input type="hidden" value="1" id="order-number" name="order-number[]"></td> <td class="order-price">50<input type="hidden" value="50" id="order-price" name="...

-3
Q: PHP Checkbox multiple implodes

user2944299I have multiple checkboxes, lets say; <input type="checkbox" value='One' /> <input type="checkbox" value='Two' /> <input type="checkbox" value='Three' /> My php looks like; echo implode(', ', get_field('checkboxes')); When I check all the boxes my output looks like; One, Two, Three Bu...

0
Q: How to troubleshoot this Displaying Error for Mysql fetch array

MAHESH ........... ITs show this error Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\ocwconnection\user\search.php on line 18 I cant understand why this is happening because i have same code in many file but please help me Thank you **search.php** <!DOCTYPE...

-1
Q: what is the proper way of writing the following php echo command

Peterson Samsamplease somebody help me make this correct. I have no knowledge in php echo bowob_api_get_code(/* BOWOB_APP_ID */, /* BOWOB_SERVER_ADDRESS */); am supposed to substitute values BOWOB_APP_ID with somevalue 67890 and BOWOB_SERVER with http://euwest1.bowobcloud1.com/ I did it as shown below, but ...

0
Q: Cron Job in cakephp 2.* with shell file not working on reckspace server

Megha Patel I am using cakephp 2.* version and i was trying fire cron job using shell files. I've created Shell file : /app/Console/Command/CronJobShell.php Here is shell file code function updatebid() { if (file_exists('/var/www/vhosts/test.com/httpdocs/crontest_1.php')) { echo "Crontes...

0
Q: Get Wordpress post image attachment source into custom XML template

Matt MaclennanI am trying to load the image attachment source into a custom XML file, however it comes up with a Missing Attachment error, as shown here Here is the code I am using: <?php /** * Template Name: Custom XML Template - Csutom Feed */ $postCount = 5; // The number of posts to show in the feed $p...

0
Q: Which is more efficient to send WebSocket updates with a MySQL database change

RedgieI'm currently experimenting with WebSockets in a bid to reduce / remove the need for constant AJAX requests in a potentially low bandwidth environment. All devices are WebSocket compliant so there's no issue there, and I'm trying to keep it to native PHP WebSockets, no node.js or other frameworks...

-3
Q: Live video streaming embed into website

user2599253 I want to add live video streaming in my site. I want to embed live video stream in my website. Any help? Is it possible to make website like u stream . TV if yes ? how ?

0
Q: passing GET parameters from Android to CodeIgniter based PHP Server

Muhammad UmarI am trying to send parameters to CodeIgniter based PHP server. Here is a sample url code that works. xxx.com/webservice/login/myemail@yahoo.com/myPassword. However on android side i am using following code. HttpParams params = new BasicHttpParams(); params.setParameter("email" , email.ge...

0
Q: left join mysql with three table

Shivesh JaiswalI have three table which i want to left join but two table is working perfectly and when i add 3rd table it shows only those records which are in 3rd table Select `0_debtor_trans_details`.debtor_trans_no As Bill_no, `0_debtor_trans_details`.stock_id As Item, `0_debtor_trans_details`.unit_pri...

-7
Q: Need list of open source php projects which provide C/C compilers online?

user2944708I need list of such open source projects which works on online Compilation and executation of C/C++ programs e.g. http://www.compileonline.com/compile_c_online.php

0
Q: how do i update new latitude and longitude when existing google marker move to another place

CreativeartbdI am using google map to place markers on a map. The gps coordinates of the markers are stored in a mySQL database. I have been able to create the markers on the map so I was wondering how can i update the db with new latitude and longitude when existing marker is move to another place Here is my...

-6
Q: Perfect Money - Payment Integeration

zemarI am currently working on a PHP website in which I have to integrate perfect money payment option. I have searched alot on google but couldn't able to find any link that can help me out for this purpose. Professionals please help me. Thanks in advance.

0
Q: PNG overlay on a PNG image Imagick PHP

Bob NäringSo im trying to overlay an image of a t-shirt(png) with a pattern(also png) with Imagick. The code : $img1 = new Imagick('test.PNG'); $img2 = new Imagick('pattern.png'); $img1->compositeImage( $img2, imagick::COMPOSITE_COPYOPACITY, 1, 1); header('Content-type: image/png'); echo $img1; When ...

0
Q: Jquery form submit with deligate

user2944727I have a working jquery code to : Submit specific form from multiple forms having same id do some validation on textarea, disable submit. clear text and display message on success or failure. But - i have problem displaying messages, validation message when no text are entered is displayed pr...

-2
Q: Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\xampp\htdocs\Management\header.php:140)

Jayc ZeravalThis is the errors and i cant figure out what seems to be the problem? can you look it up? thanks in advance. Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at E:\xampp\htdocs\Management\header.php:140) in E:\xampp\htdocs\Management\index.php o...

0
Q: PHP PDO Postgress issue

JamesHaving problems passing a parameter to a sql query if the parameter has spaces in it. Teh code is $statement="select di_timestamp, di_item_value from data_item where fk_fc_id=(select fc_id from field_column where fc_description ilike :sensor and fk_mds_...

0
Q: Multiple category join with group_concat and category search

themightysapienI need to find all the category of a business with group concat by searching the business with specific category |------ business -------- | |-business_id |-business_name |-business_city |------ business_cat_map ----| |-id |-business_id |-cat_id |------ cat --------------| |-cat_id |-cat_name ...

0
Q: How to make auto test working with already login part

Yura ReznikFirst of all i'm first time working with automatic tests, so sorry if my question will be easy or difficult in description of my problem. I'm working with Selenium2 and Codeception for creating and using auto test. For example i have a test which include few parts: Login as a member Searching...

0
Q: Generating Tree Category In Laravel 4.0

user2944675i used this for creating tree Category Laravel 4 - Eloquent. Infinate children into usable array? but i want a tree generated with id row and title And i Can't use id in this code please help me ASAP

0
Q: move_uploaded_file(): Unable to move '/tmp/phpVZ330Q' to 'uploads/dining.jpg' in /website/nomination-form.php on line 33

Josh DaviesFull error message: PHP Warning: move_uploaded_file(): Unable to move '/tmp/phpVZ330Q' to 'uploads/dining.jpg' in /var/www/website.mediaclash.co.uk/siteroot/nomination-form.php on line 33, referer: http://website.co.uk/nominations.php Hi all, I'm trying to send a form to server whic...

-3
Q: embed live video streaming into website

hussainPointers to void are supposed to be able to accommodate a pointer to any kind of data -- but not necessarily a pointer to a function. Some systems have different requirements for pointers to functions than pointers to data (e.g, there are DSPs with different addressing for data vs. code, medium m...

0
Q: Can't convert URL into hyperlink to store in MySQL

Jim RaymondSorry to be back two days in a row. I spent the whole day yesterday reading on this site and others and I'm just stuck. The only thing I found close was for C++. I'm building a data base for my DVDs and Movies so I and my friends can search by Title, Actors, etc. With help here yesterday, I wa...

0
Q: php.ini increase upload_max_file debian server putty

user2624687Debian-64 bit-6.0.3 ispcp i have this on my server i want to increase upload_max_file i edited two php.ini files and reset the server but no changes ,still same ,should i move the php.ini into another directory or which php.ini should i edit,what is the proper directory of it? please any help ...

-2
Q: Where i can find list of open source projects?

user2944708i need some php open source projects for online exam,C/C++ compliler, personal website. Can you please tell me the sites where i can find good list of open source projects with rating and reviews?

0
Q: Assign result of function within switch to variable

user1476992here's my code simplified: switch ($action) { case "1": //this is a function case "2": //this is a function //etc. } How should this be written: $variable = result of function in case 1.

0
Q: Do I need to declare scope for every variable separated by commas?

Sam BraslavskiyHere's a simplified version of what I've got: class FOO{ private $a, $b='some', $c=2; ... } does it work as one would expect (every variable is visible only inside a class), or should I write "private" (or whatever) every time, even with comma syntax like so: private $a, private $b, private $...

0
Q: Append html and keep indentation

DheedI need to append an html string (that is a reply) using jQuery from a php call inside an iframe, but I need also to keep the indentation. Basically I send a reply to php that elaburates it and send it back through jquery that will post it, however I need to keep the markup(tabs,spaces,etc), is th...

0
Q: Associate Button Value with Query Results In Seperate Tables

Andy NaylorI have this query: $result = mysqli_query($con,"SELECT * FROM b_tasks_report WHERE TASK_ID=$taskid ORDER BY WEEK_ID"); $current_week_id = -1; while($row = mysqli_fetch_array($result)) { if($current_week_id != $row['WEEK_ID']) { if($current_week_id != - 1) { echo "</table>"; }...

0
Q: Redirect ?src=URLHERE

John Zoni would like to be able to redirect my long link to a shorter one, From this: http://mydomain.com/deploy/inc/PhpThumb/phpThumb.php?src=URLHERE To this: http://mydomain.com/PhpThumb/URLHERE This is what i've tried to do in my .htaccess file: RewriteEngine On RedirectRule ^PhpThumb/([A-Za-z0-9-...

0
Q: Wordpress Plugin / Ajax call

SamSo this is my hook and function: add_action('wp_ajax_AjaxAddDev', 'AjaxAddDev'); public function AjaxAddDev() { if (isset($_POST['name']) && isset($_POST['desc'])) { $name = $_POST['name']; $desc = $_POST['desc']; return "Name: ".$name." Description:".$desc; }...

0
Q: PHP get_file_contents from aspnet form after POST

jeffery_the_windI am trying to pull information from the following website: http://www.borsabcn.es/esp/aspx/Empresas/Empresas.aspx As you can see, this website lists the companies that are on the Barcelona Stock Exchange. But it only lists the first page by alphabetical order. I am working with PHP to automat...

0
Q: Change protected value in array (PHP)

bvlWhen I do a var_dump of the array $mailer I get: object(Fooman_EmailAttachments_Model_Core_Email_Template_Mailer)#352 (8) { ["_emailInfos":protected]=> array(3) { [0]=> object(Mage_Core_Model_Email_Info)#409 (11) { ["_bccNames":protected]=> array(0) { } ["_bccEmails":protected]=> array(0) { } ["...

0
Q: Return included file from function

NiksacIf i use "return" outside a function in an included php file PHP skips the rest of the file. Can i do this from a function? <?php function returner() { return_included_file; } returner(); //I don't want this to be executed echo 'test'; ?>

0
Q: How to mock symfony 2 serice in Functional test?

user1191081I have symfony service which uses redis connection in some methods but not in all methods. class ServiceA { private $redis; public function __construct($redis) { $this->redis = $redis; } public function getRequest($param1, $param2) { $result = $param1+ $para...

0
Q: How to Integrate SEOStats with Codigniter?

shahrukhHello I want to integrate the SEOStats Class with a project in codeigniter , is anyone provide me solution ? I have tried to make the SEOstats class as a helper and load the helper in the specific controler , but a blank page is showing , I also try to include it via view but the same blank pag...

-1
Q: how to assign PHP variable in a button ID

Mithun SinghI have a problem with my PHP variable and a button which is generated using 'echo'. Now I want to insert the id of the button. How I will do that. Please help me. Code is given below. <?php if ($unconfirmed_cities) { foreach ($unconfirmed_cities as $unconfirmed_city) { ...

0
Q: Querying parent custom-post items on top

Michiel TramperSo I'm building a search function which uses two custom taxonomies and a search query (e.g. tax_1, tax_2 and a certain search query) and searches through a certain collection of custom post types (e.g. custom_post_1). Results are queried at a custom query in search.php The custom post type is hi...

0
Q: How i save content which i insert in form field after reload a page the form field remain filled

Navjot Singhi have some field like Firstname, Lastname , Country on country field i have add button to store country name in database if user add country then filled fields blank after reload a page

0
Q: Correct way to make PDO Connection for classes

fmaskIs this a correct way to make PDO Connection. I have different classes (each class have its own file) then there is config file contain PDO object and all classes objects. I am doing it correctly or there is any better practice. classA.php class classA { private $PDO; function __cons...

0
Q: MySQL Lost Record

user2936719after inserting same to mysql databse using php for 2 times ( i have primary key) the first one is ok, but after doing insert for the second time, record number inside the table is decreasing. Any idea why?

0
Q: User-Friendly PHP Error Message

TrapezeArtistPHP is famous for displaying ugly error messages, though they are useful at times. I know I can hide error messages with error_reporting(0); That's fine, but it leaves the user completely in the dark as to what is going on. The page has stopped working and they don't know why. How can I displa...

0
Q: Custom Redirect

yasI have main folder mysite.com/ and replicated folders,such as mysite.com/10010/,mysite.com/10011/ and so on . By now i accomplished to delete/set cookies with Jquery Cookie plugin and redirect according to the cookies set. To delete/set cookies I'm using following code: var cookies = $.cookie(...

0
Q: convert php array into select

JustStartingI have the follwoing arrray(print_r shows): Array ( [address] => Array ( [0] => ikea, 17 Old Main Road, dubai ) [idDelAddress] => Array ( [0] => 102 ) ) I want to convert this into a select box where [address] is the displayed text and [idDelAddress] is the value to be posted with the form. ...

-5
Q: Show Server Time

user2927970I use SocialEngine, which is a bit of a beast to modify. What I'd love is the ability to display server time, so what is the simplest way to do so? I can use with jquery or php. Thanks in advance!

0
Q: Add comma after two/three places for currency in javascript

user2933671I want to add comma to my currency value at 3rd or 2nd place as per the currency value: the output should be like this: 1000 => 1000 10000 => 10,000 210000 => 2,10,000 2010000 => 20,10,000 12010000 => 1,20,10,000 I am using Numeral.js plugin to do my conversion. but the plugin adds commas only...

0
Q: TYPO3 - Call another repository

Jeppe DonslundIs it possible to call a function in different controller-files? I need to call FindByCategoryGrouped($catId) in designRepository.php and getCategories($catId) from categoryRepository.php public function listAction() { $this->settings['flexform']['showCategory'] ? $catId = $this->setting...

0
Q: Translating PHP Exceptions Messages

Rafael Alexandre Pazetto DuckuI'm using Symfony2 File Component, and it thrown an exception called "FileException". The problem is the exception message is generated dinamically according to the error number, like so: throw new FileException($this->getErrorMessage($this->getError())) In the end I can get 6 distinct message...

-2
Q: How to run server and php file using jquery on click over a link on html page

user2441444I want to run a server which is installed on the system for the users which are using this facility and after the run of server want to execute a php file over another server. some how I want to do this on a single click over html page and through JQUERY. can anybody tell me the solution for it. ...

0
Q: What is the best way to build a shopping cart in jquery mobile?

shamsI am developing a e commerce app. I am using php-mysql to generate json and then parsing it to jquerymobile Could any one tell me what is the best way to create a shopping cart in that application? Is there any plugin available to integrate cart into my app using jquery mobile? All suggestions...

0
Q: Jquery mobile input in a popup

Joker21srbI have a problem with a form that is partially in a popup [the rest is on the page's main div]. <body onload="formReset();"> <?php echo "<form action=\"\" method=\"POST\"><input type=\"submit\" value=\"Main page\"></input></form>"; ?> <section id="pocetna" data-theme="a" data-role="page" style="...

0
Q: Wordress - send email to admin on form submit

acoderI have a template with a form on it and wish an email to be sent to admin email address when the submit button is clicked. I created send_email.php in template folder, so on form submit it is called: <?php $headers = 'From: My Name <myname@example.com>' . "\r\n"; wp_mail('test@example.org...

0
Q: preg_match error Unknown modifier '('

pedrosalprWhat's wrong with this? public static function validaDataHoraBR($data_hora){ $pattern = "/^([1-9]|0[1-9]|[1,2][0-9]|3[0,1])/([1-9]|1[0,1,2])/\d{4} ([0-1][0-9]|[2][0-3])(:([0-5][0-9])){1,2}(:([0-5][0-9])){1,2}$/"; return (preg_match($pattern, $data_hora)) ? array(true) : array(false,' não é u...

-1
Q: Creating Featured Content For HomePage in WordPress

Blank EDjoki have created a wordpress website with a custom homepage with static content. Now i have several pages which i have featured on my home page like the "about" and "practices" pages. What i want is to be able to feature the content of those pages on my home page dynamically. eg. When i add a new...

0
Q: PHP Using dropdown to filter mysql table, without js or form

TheoI'm trying to select a value from a dropdown to limit a mysql table selection, without JS, directly from a page (so, NOT from a form, but using an action tag). Problem is, dropdown works, redisplay works, but I can't get the selected value into $_GET(sel_type). Can anybody help? echo " <td>&nbsp;<...

0
Q: OpenCart show module on sidebar

MathlightHy all, I'm working in OpenCart 1.5.5 on some sort of newsmodule for in the side bar. I've got it all running in the back-end, but i don't know how i could asign this module module/aselsi to the right side bar on the home page, product page and category page. I've already looked in some source ...

0
Q: PHP: Installing minScript extension to Yii Framework

rnngauI have been debugging this for quite some time and am unable to find any solution - so this is my last hope. I am trying to install/configure an extension for Yii called minScript by following this installation guide. I place the extracted extension in my extensions folder, and change the con...

-3
Q: Проблема websocket php

user2920285help me understand, here's the server code: /** * The command to turn off the server */ const COMMAND_STOP = 'stop-websocket-server'; protected $userClass = 'WebSocketUser'; // redefine this if you want a custom user class. The custom user class should inherit from WebSocketUser. protected ...

0
Q: How to add a href into a twig loop

Wojtek 'Charkz' HordyniecI want to add a href to specific data in the twig loop. How do I go about doing this? Below is my code for the table I've created. <H1>GAMES</H1> <table> <h1>Game List</h1> {% for games in games %} <tr> <td>{{ games.title|e }}</td> </tr> {% endfor %} </table>

0
Q: Wordpress: sorting posts in category in ASC order

user2944939I am using the Genesis Framework and Dynamik (cobaltapps.com, if you don't know what it is). What I am trying to do is find a short piece of code that will display posts in all my category lists in ASC order. I have found a lot of posts here on the site and through google that talk about this, b...

0
Q: PHP Mailing script, Email isn't coming through

Liam SorsbyBare with me as this isn't as simple as it sounds. I tested this script using my email address and the script below worked, however upon changing the email address the script will not work. I have however copy and pasted the email address (the one that didn't work in the script) into my sky emai...

2
Q: Is it still possible to use output buffering, if so how?

Cool2beblueI have been searching for a method to display content in a browser while a php script executes a fairly long while loop... using ob_start(), flush(), ob_flush() and ob_end_flush(). It failed. While researching on php.net I came across a user post that read: "As of August 2012, all browser...

-4
Q: How to embed live video in website

hussainI am developing a Web Application, where I require live video streaming.I am developing a Web Application, where I require live video streaming in website.

0
Q: CodeIgniter is duplicating the SQL queries

Diego TsutsumiI am developing with CodeIgniter and after sometime I noticed that all the queries are being executed two times as the mySQL log bellow shows: 55 Query SELECT user_display FROM user WHERE user_id=1 55 Query SELECT user_display FROM user WHERE user_id=1 55 Query SELECT TI...

0
Q: Logout link next to the welcome message

capolaI want to place my logout link next to my welcome message. I tried this but without success: <span class="welcome-msg"><?php echo $this->getWelcome() ?> <?php if (! Mage::getSingleton('customer/session')->isLoggedIn()):?> <?php echo Mage::helper('customer')->getLogi...

0
Q: Using Laravel helper functions when unit testing

searsawI am testing a class I made that uses a helper function. The function I'm testing looks like: public function upload(UploadedFile $file) { $file = $file->move(base_path() . '/temp'); $file = new FileSystemPicture($file); return $file; } When I run the tests and it hits the helper...

0
Q: CakePHP sort of global variable

user2944935I have a problem with my cakePHP app - I have many Matches (each one has date field), and the problem I have is to make one Match date (the first one, concerning their dates) available everywhere in the app (especially I want to use it in default layout file). I have tried using Configure::write(...

0
Q: Share image on a webpage through whatsapp

user2933671I have a webpage With some images, basically just using <img>. and I want to add the functionality of sharing the images through whatsapp (android or ios). after much research I found no results. so is it even possible. are there any javascript or jquery frameworks/plugins which can allow the u...

0
Q: Sending data from android app to a PHP page using HTTP post method

user2929324I am new to android development. I am trying out a basic app. My requirement is that I need to send data from a text box in an android app to a PHP page that is hosted on net using POST method. I have browsed many sites for tutorial on this method, but didn't find a right one. Can anyone please p...

-1
Q: Please help me about nexmo group sms sending php

Syed Farhan AhmedI need your help please help me just simple modification in nexmo sms sending php code. This php script send sms only one number at a time but I want to send groups sms to my whole provided number list one by one. Here is script Please help me to modify and PM me Please please please. Download L...

0
Q: Strange PHP pagination behaviour

kennI'm trying to list sentences from mysql database that contains entered keyword. I have below php script called from quoteme.html that contains submit form. When I submit kryword using quoteme.html it lists only first page, when I click "Next 10 Records" I get empty page (only showing "Next 10 Rec...

0
Q: PHP SQLSRV - Windows 8 64x - Install x86 error

William Reis FernandesI'm trying to configure PHP SQLSRV in Windows 8, but it does not allow me to install the dlls in x86 sysWOW32. Anyone experiencing this problem?

0
Q: Can I optimize such a MySQL query without using an index?

PhotoPaulA simplified version of my MySQL db looks like this: Table books (ENGINE=MyISAM) id <- KEY publisher <- LONGTEXT publisher_id <- INT <- This is a new field that is currently null for all records Table publishers (ENGINE=MyISAM) id <- KEY name <- LONGTEXT Currently books.publisher holds values...

0
Q: how to make define php usable in js too

jediI have a js function that make some ajax post and a php handler that parse the $_POST and do something. I would use in js and php the same constants. For example if i put some define in php: define('done','1',TRUE); I would like to have it on js too. Are there some way to have some constants d...

0
Q: Hide Certain Category Menu Items Opencart

user2191937OK here's a challenge. I need to be able to hide certain opencart categories when on an information page in the left menu of a store based on information page ID's On each of the information pages it only needs to be able to display certain categories. I have two ID's 12 & 13. So when on inf...

0
Q: How do I insert multiple checkbox values into database?

MichaelHow do I insert multiple checkbox values into database? Here is my code, it workes for the radio buttons where there is only one value, but how do I insert more if I have checkboxes? PHP CODE: if(isset($_POST['radio']) && isset($_POST['checkbox'])){ $radio = $_POST['radio']; $check...

0
Q: `strtotime` bug when using + 1 month from January

Thiago Masano CavalotiI' m trying to make a ajax calendar with multiple tabs for a date range previously entered. But for example: I want get the next month, it prints march instead of february $start= "2013-01-31"; $current = date('n', strtotime("+1 month",$start)) //prints 3 I think thats occurs because februa...

0
Q: undefined offset in array PHP

bobbyjonesi normally use my online web-server for web development, but for some reasons i needed to test it in my XAMPP locally. my code below will fetch images from a website via curl, and display the total images fetch. what baffles me, im getting this error on XAMPP: Notice: Undefined offset: 15 in C...

0
Q: multiple node with same name in soap call

Arun SSAm trying to call an API. The XML I needed is follows. <SOAP-ENV:Envelope xmlns:ns1="http://www.webserviceX.NET/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <ns1:ConversionRate/> <param1> <MessageTitle>Some Title</MessageTitle> <Images> ...

0
Q: I can't send PHP variables to JavaScript

Phob1aI'm trying to send parametres from a .php file to my Javascript but I can't even manage to send a String. Javascript fragment: var params = "action=getAlbums"; var request = new XMLHttpRequest(); request.open("POST", PHP CODE URL, true); request.setRequestH...

-5
Q: How to write javascript

shamI asked this question a bit earlier and have only been able to gain a little ground. What I have is still not working as expected. What I want to do is to share a number pad with 3 different forms. If the user clicks on box 'a', all of the numbers (from the anchor tag) as well as the focus should...

0
Q: loop for part of a multidimensional array

GabzI've done a multistep form in PHP storing the data in a multidimensional array (I've created an array inside $_SESSION array and named it $_SESSION['inserimento']) then i have $_SESSION['inserimento']['name'],$_SESSION['inserimento']['city']... I would like to apply the strtolower() function to...

0
Q: Error timezone and description in Outlook

pedrosalprI'm sending an event with date 20131101T130000Z and 20131101T150000Z to outlook, but the event is 10:00:00 - 12:00:00. I tried adding the timezone in the script, but could not. The timezone is America/Fortaleza, with less than 3 hours from GMT. And another error. It is a description that does n...

0
Q: joomla Initialise the application doesn't work

user2283774i am in need of real help! my site ran into a problem and i move it to local for testing the functions and i get some point that it can not initialise the application. echo " hello 2 "; // Initialise the application. $app->initialise(); echo " hello 3 "; // Mark afterIntialise in the profiler. J...

2
Q: ZF2: get access to the service manager (locator) from external class

AndronIn two words: I need to get access to the service manager (locator) from external class. Details: I have next structure in my ZF2 project: Api.php is the class, I use in SOAP server, which is created in Controller: class IncomingInterfaceController extends AbstractActionController { .....

1
Q: Generating XML with new elements

DesignedMoodilyTeaching myself PHP this week, and as a test project, I've been building a very simple microblog that uses XML data to store/retrieve short post information. I referenced this question and it managed to get me to the point of producing an XML document that resembled what I wanted. However, I ran...

0
Q: Implementing a JS templating engine with current PHP project

SeanWMI'm currently working on a PHP project and quickly realizing how useful a templating engine would help me. I have a few tables whose table rows are looped out via a PHP loop. Is it possible to use just a JS templating engine (like Handlebarsjs) to also work with these tables? For example: $arr =...

0
Q: How to use a username as part of the url in php

user2251229Let say I have a site www.mysite.com Is there anyway to have to have user page urls be www.mysite.com/username instead of the usual www.mysite.com/user.php?id=whatever I would like to know if this is possible in php without having multiple folders and index pages. I would lik...

0
Q: Magento subshops in subdirectory

Ronn0I do have 5 shops: http://www.mainshop.com http://www.mainshop.com/subshop/ http://www.mainshop.com/subshops/ http://www.mainshop.com/subshops3/ http://www.mainshop.com/subshop4/ But everytime i click on the url for a categroy it keeps giving a Magento 404 error. I did copy the index.php and h...

-1
Q: Shifting arrays - PHP

David BigaI am working on a project of mine and have a hardware based component that sends data back that I gather and through that arrays are created. One function is comparing data within one array and another. Something I have come across that is bothersome is it always seems to place a value in a the...

0
Q: 403 error for loading font file codeigniter

Pavan KumarHello I am new to codeigniter. I am using the external font file for my site through css. Here is my css code: @font-face { font-family: 'ElegantIcons'; src:url('http://localhost/findacare/font/ElegantIcons.eot'), url('http://localhost/findacare/font/ElegantIcons.eot?#iefix') format('embedde...

1
Q: PHP Which is a better way to serve an image whose URL is stored in a database

Devin DixonIn a PHP application I have images being served as such: <img src="http://www.example.com/image/view/93029420" /> On the backend it does something like this: $query = "SELECT img_url FROM images WHERE image_id = '93029420'"; $result = DB.findOne($query); $contents = file_get_contents($resul...

0
Q: How to return an XML SQL data type from my stored procedure to PHP

user2921843I have been trying to execute a stored procedure and return an XML data type for display through PHP. Here is what I have - a simple stored procedure, getXML as follows: CREATE PROCEDURE [dbo].[getXML] AS select --some fields from --some table for XML auto, elements GO This statement works...

0
Q: Images not cached when sent using mod_xsendfile

CptEOI am currently using mod_xsendfile (https://tn123.org/mod_xsendfile/) to serve files using PHP. In the PHP script some rights are checked and then at the end the PHP code that I currently use is: header("X-Sendfile: ".$file); header("Content-type: ".$mimetype); Where $file contains the absolut...

-1
Q: Row Click Functionality

user2853350How to get the selected record Id from list of rows(Listing functionality geting list of records from Data Base table) in view page in Codeigniter frame work, Please any body help me. Thank you

0
Q: PHP While Array_diff if no difference break

SimonStatonI am trying to have a while loop continue running until their is no array diff between two array's I have been trying the following but it seems to be failing: $urls = array(); $urlscompare = array(); $urlarray = getlinks($site, $site); //this bit scrapes a website and returns an array of websit...

-3
Q: use JavaScript inside php variable

John FalcoI have a variable called $html_body which writes HTML to the page. I would like to include this code: $(document).ready(function(){ $('#example').dataTable(); }); My setup is something like this: <?php set_time_limit(0); function () {} $html_body= '<html> <link rel="stylesheet" type="text...

0
Q: Popup window doesn't close on error in parent page code

user2945094I have two php files :- 1) editprofile.php : It shows the employee data like empname,email and profile picture. on profile picture column there is a link to change the profile picture . On click of this link pop-up opens(setprofilepic.php) and shows all the picture of an employee from which admi...

0
Q: PHP Display MYSQL Results within a loop

Sam WilliamsI have a left join, code shown below that takes, id referrer search term client_id From table 1 and then takes the following columns from table 2 using the left join query underneath. client_id visit_id timedate url1 $query = "SELECT table1.id, table1.search_term, table1.referrer, table1...

0
Q: Preg_match string and put matches into an array

Mario Rossii'm creating a photo sharing system with a particular photo temp verify. Basically, on input file submit photos are loaded into a dir called "temp". I change the name of file in a particular string like this 3_1383310890_1709373616.jpg where 3 is the user_id 1383310890 is the date and 1709373616...

0
Q: doctrine 2 create database and tables

garoto_dcI am trying to create DB and tables, I am using Doctrine 2 without Symfony. I am using this code: $schemaTool = new \Doctrine\ORM\Tools\SchemaTool($em); $classes = $em->getMetadataFactory()->getAllMetadata(); $schemaTool->createSchema($classes); this code works to create the tables, but if I ...

0
Q: Symfony2, routing autoredirect and also auto transform new path, possible?

user8542214I successfuly created redirecting in my routing, if page is 1, redirect to main controller without URL parameter page. (SEO prevention for dublicate content). So I have this route rules: default_blog: path: / defaults: { _controller: Acm...

0
Q: Mysql SELECT query Getting erorr

MAHESH ........... what wrong with this query can any one suggest help is appreciate thank you its getting an error Notice: Undefined variable: zone in C:\wamp\www\ocwconnection\user\excel5.php on line 11 Notice: Undefined variable: status in C:\wamp\www\ocwconnection\user\excel5.php on line 13 Notice: Undefine...

0
Q: file_get_content using symfony2 for image processing

rdiaz82I'm uploading files to my server from a form and I want to get the file content in the server controller. I have tried using the following: $uploadedFile = $request->files->get('image'); $data = file_get_contents($uploadedFile); $vImg = imagecreatefromstring($data); $dstImg = imagecreatetruecolo...

0
Q: Destroying session PHP

user2008726I am using this code to end session after 10 seconds of inactivity: ini_set('session.gc_maxlifetime', 10); session_start(); if (isset($_SESSION['LAST_ACTIVITY']) && (time() - $_SESSION['LAST_ACTIVITY'] > 10)) { session_unset(); session_destroy(); } $_SESSION['LAST_ACTIVITY'] = time(); ...

0
Q: Parsing a complicated html table with php

user2944979After a long time of researching and despairing I realized I need help and hope you folks can help me. I successfully parse a dynamic table with the following php code php code to parse the table: $docH = new DOMDocument(); $docH->loadHTMLFile($url); //get everything inside the body element: ...

0
Q: PDO and executing code

XeoJust a quick question around executing PDO statements. Below is my query $setDate = "INSERT INTO wl_datecheck (inputdate) VALUES (UNIX_TIMESTAMP(STR_TO_DATE($reportDate, '%Y%m%d')))"; Now, what I am doing is setting the query & connection as the variable $data as follows: $data = $conn->quer...

0
Q: Joining multiple tables returning 0 for specific column? PHP/MySQL

learnI'm having a problem at the moment where I have a column called rating in the links table and there is definitely values other than 0 within the column but 0 is the only value which is returned foreach link. When I do a simple get for that column it then shows all the other values but not when I ...

0
Q: How to display table installments only on the product page

OGATORJI managed to get a table in installments on the product page exactly where I wanted, was perfect, just below the special price. Added code table by modifying the file: app -> design -> frontend -> default -> default -> template -> catalog -> product -> price.phtml It turns out that the table is ...

0
Q: paypal - when to create transactin log

BinaryrespawnSo I am using Pay-pal for an event registration on a Codeigniter 2.0+ website. This is my very first time using Pay-pal so please bare with me. Here is my IPN function public function ipn(){ $this->load->library('Paypal_Lib'); if($this->paypal_lib->validate_ipn()){ ...

0
Q: Phalcon - multiple checkboxes in forms

WooDzuBasically, I need to serialize multiple checkboxes before saving them in database and unserialize before displaying the form. <input type="checkbox" name="list[]" value="option1"> <input type="checkbox" name="list[]" value="option2"> <input type="checkbox" name="list[]" value="option2"> Could ...

0
Q: any reason why curl_multi is not working on my localhost (osx) but curl does?

JoshI have tried both curl and multi_curl on my localhost (osx lion mountain, php 5.3.26) here is my curl info from phpinfo: curl cURL support enabled cURL Information 7.24.0 Age 3 Features AsynchDNS Yes Debug No GSS-Negotiate Yes IDN No IPv6 Yes Largefile Yes NTLM Yes SPNEGO N...

0
Q: Curl not saving all Cookies

dave sanchezI've done scraping for lots of sites but one in particular isn't saving it's cookies to my cookie file. Any ideas? $ch = curl_init($url); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_TIMEOUT,8200); curl_setopt($ch,CURLOPT_TIMEOUT_MS,8200); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT...

0
Q: PHP Popup with links when clicking/hovering an item in a map

user2945087I have started developing a flightsimulator addons website, covering freeware addon collections (flightsimnorway.com). For each addon collection I have made a map with all its available addon airports. The airports position in the map (x,y) is calculating based on the geo location for the airport...

 
00:00 - 14:0014:00 - 00:00

« first day (255 days earlier)      last day (55 days later) »