« first day (308 days earlier)      last day (2 days later) » 
00:00 - 18:0018:00 - 00:00

6:00 PM
0
Q: Set color by condition in php

BlitzKriegHow do I set a color by condition eg: In my table there is a column called STATUS where receive the result from db. with three texts: PG, PEN, ATR. If status is PG, then color green, PEN color red etc.. How to do that?

-1
Q: I want to add same day delivery option in magento

M Sohrab ZiaI want customer to choose from 2 options same day delivery or standard delivery with 2 different delivery charges, can anyone help please, I am stuck in this. Thank you

0
Q: Using Html::anchor of FuelPHP code in Twig Template

PurusI have the below line of code in the FuelPHP view file (php) and I am converting the project code from PHP template to TWIG template engine. <?php echo Html::anchor('quiz/edit/'.$quiz->id, 'Edit'); ?> How can I convert the below line of code to work with TWIG template? I tried the below thing...

0
Q: Confusing results from BC Math scale

drrcknlsnI can't seem to find anything in the php.net documentation that explains the following results: $ php -r 'var_dump(bcsub("0.3", "0.2", 4));' string(6) "0.1000" $ php -r 'var_dump(bcmul("0.3", "0.2", 4));' string(4) "0.06" The subtraction result is exactly what I would expect it to be (I specif...

-1
Q: MySql 'or' Operator not working

user3133148I want to select the user from my database using email or username, my code is: $sql = "SELECT * FROM `users` WHERE (`Email`='".$User."' OR `Username`='".$User."'') AND `Password`='".$Password."'";

0
Q: jQuery drag & drop table rows sort not working

sorinu26I wanted to make a script to order some rows from a database with drag & drop. The rows are displayed in a table, and I drag and drop rows to reorder them. Each tr have the row id from database. When I drag and drop a row, jquery serialize the table content and sends it to php to save rows positi...

0
Q: Why is Paypal displaying SUCCESS and $_POST variables Paypal's site instead of returning to my return_url

user3133140Please help me. I'm at a total loss. After more than 2 days of Googling everything I can think of, I still have no answers. This DID work in the Sandbox. My code for sending the tx and token to Paypal. <form name='verification' action='https://www.paypal.com/cgi-bin/webscr' method='post'> ...

0
Q: AH00558: httpd: Could not reliably determine the server's fully qualified domain name

user1391271I had localhost setup and everything was working fine. I wanted to create different virtualhost's to target specific projects and was going to setup git repository for each. I was "/Users/michaelmartinho/Work/development" then decided to change to "/Users/michaelmartinho/Work/development/project_...

0
Q: Pre-set javascript variables from URL parameters

XeosImagine I have a script abc.js, which has one global variable userid. Several AJAX requests are made instantly after it is loaded (it can happen after or before DOM is parsed by browser). I need the script to have different variable value for different users. Requests has to be made instantaneous...

0
Q: Get variable value from PHP to JavaScript

SKPDear I am setting my Variable Value in PHP Code, When I access this in JavaScript, it does not work, I am using following code, <?php $off='some value'; ?> JavaScript : <script> var host00 = "<?php echo $off; ?>"; alert(host00); </script> But when it is triggered, the only Blank Alert is...

0
Q: Independent zip-packing job with status reporting to PHP

EpsiloncoolI have a lot of files to pack to one zip file. It will took a lot of time (maybe 1-2 hour). Zip packing is initiated by user from browser. I need to get a way how I can run zip independently in system (CentOS) and be capable to get information about process from PHP to let the user know how much ...

 
6:37 PM
0
Q: Wikimedia table generation with DB data

AntonioI'm using Wikimedia. I need to create a dynamic table for some articles. For instance, given a page called "Lupo", I need to query the DB, find the entry using the code "Lupo" (same value as the article title) and generate a table with some data provided by the query resultset. I'm trying to do...

0
Q: access oracle DB on remote linux server using php

PatrickI want to access an Oracle database that is on a remote Linux server with my company's intranet. Currently I can access it through Excel and a System DSN on my Windows 7 machine. But I am running into difficulties with multiple queries in my excel spreadsheet, so I want to create a web page tha...

0
Q: Connect to SQL Azure from PHP on Ubuntu

wolfet410I'm attempting to connect to a SQL Azure database via PHP running on an Ubuntu 11.04 server. The server is running PHP Version => 5.3.5-1ubuntu7.11. I've installed freetds-bin, freetds-common, tdsodbc, odbcinst, php5-odbc and unixodbc using apt-get install multiple times. I attempted to compile...

0
Q: Need PHP Code to mail from Mysql database

user2645309i have database configured and showing the query output also php code that sending test mail to gmail user but i need to mix that two codes so i mail the output of query to a gmail contact. following are two codes that perfectly working separately. SELECT * FROM emp WHERE MONTH(dob) = MONTH(NOW(...

0
Q: Encoding Issue while reading Excel file through PHP COM

asim-ishaqI am reading an excel spreadsheet with PHP COM utility, everything is working fine except there are some cells in Excel file having different language data. When I read this data through PHP Com it displays like ??????? $ExlApp = new COM ( "Excel.Application" ); $workbook = $ExlApp->open_workboo...

0
Q: Fancybox and smarty

voodoosnaresI have problem with fancybox script: This is the code: {if $item.photos|count} {foreach from=$item.photos key=i item=photo} {if $i === 0} {else} ...

0
Q: php timeout doesn't work properly

Amgad Serrywell this is really weird so i got this code for timeout user so he automatically logs out if 500 second passed since last time being active i put this in the upper bar since it's on all my pages if(!isset($_SESSION)) session_start(); if(isset($_SESSION['time'])) if ($_SESSION['time'] + 600 < ...

-1
Q: Getting error as Parse error: syntax error, unexpected end of file in line 84 . Can anyone help me

user3133195<?php include('common.php'); if(!(isset($_SESSION['adminUsername']))) header("location:index.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">...

0
Q: Present JSON data as link

sunrise3333The data is retrieved from the database then encoded into JSON data, then passed into the view: $json_data = json_encode(array('questions' => $x)); $search_results['search_results'] = $json_data; $this->load->view('findquestions',$search_results); which looks like: {"questions":[{...

 
7:01 PM
0
Q: How do I change a paragraph into an array in PHP including the spaces and punctation

Ben PatonI have a string like this 'Hello? My name is Ben! @ My age is 32.' I want to change it into an array will all words, spaces and punctuation as seperate entities in the array. For example if I did var_dump($sentence) the array should look like this: array(10) { [0]=> string(5) "Hello" [1]=>...

0
Q: Set Control Values - Wordpress Gravity Forms

John Supakinthanks for reading. it is basic, but new to PHP world. suggest me some solution to get complete this work. I'm using wordpress and gravity forms. it is an user registration form, and having name/age/phone/... all the details. Work is simply I need to age and phone number before showing the for...

0
Q: File manipulation in PHP: lock, read, clear, unlock

JodesI want some PHP to do the following in this order: Gain exclusive lock to a file (waiting if already locked) Read the contents of the file Empty the file of all contents Remove the lock But any code I'm coming up with one way or another always relinquishes the lock between the reading and wri...

0
Q: MySQL not working through PHP

okush69I'm creating a login page, and I have this code to check if a user with a given username exists. Here's the code: $query = mysql_query('SELECT COUNT(id) FROM users WHERE username = $tuser'); return mysql_result($query, 0)==1; I know that the value of $tuser exists in the database, and when I r...

0
Q: mysql database tables design

user3133209I have to design a database for an advert site. Until now this is the design i came up with: Administrator(Id,Name,Password) Advert(Advert_Id,Title,Description,Category,User,Date_created,Picture,Type) User(User_Id, Name ,Phone,email,Address) Category(Cat_id,Cat_Name) Type(...

0
Q: How to remove random lines from a text file with PHP

user2898075Say I have a text file with a bunch of lines (the real text file has a LOT more): Testing Test Another line Blah ABCDEFG How can I remove a random amount of lines from this file with PHP? So that means, I can specify how many lines I want to remove randomly. From what I know so far, I believe...

 
7:36 PM
0
Q: trouble with sending data in php to SQL, database

user3133291This is a snippet of code with some lines commented out. It seems to work if I send one case using all literals (not variables) but when I throw the ". $uid . " and the others in there it does not work. I keep checking the database after each use to see. <?php // working name and pics ...

0
Q: Facebook Login and Logout only for my website

user3055639Is there any way to use Facebook PHP SDK to Login and Logout users only for my site. Currently with the tutorials and examples provided, if i Logout from the website automatically will Logout even from Facebook.com.

0
Q: PHP Simple XML Load File children error

Anthony Francis VasquezI keep getting this error "Fatal error: Call to a member function children() on a non-object in /home/radiomov/public_html/rss.php on line 37" Line 37: $image = (string) $xml->channel->item[$i]->children('http://search.yahoo.com/mrss/')->thumbnail->attributes()->url; Here is the fu...

0
Q: Yii bootstrap widgets TbDatePicker not hiding after select a date

Muhammad ShahzadYii bootstrap widgets TbDatePicker not hiding after select a date. <?php echo $form->labelEx($modelRenterStatus,'moving_date'); $this->widget('bootstrap.widgets.TbDatePicker', array( 'model' => $modelRenterStatus, 'attribute' => 'moving_date', 'options' => array( ...

0
Q: How to convert multiple PNGs into a single animated GIF using PHP's Imagick

ChippiewillI have several PNG format Imagick objects which are intended as individual frames for an animated GIF. How would I convert these frames into a single animated GIF?

0
Q: How replace some text in a paragraph with other text in PHP

Ethical Rajesh<?php $string="Hello how are ##you ? I want ##join you."; echo $string; // now I want replace all ##.... words with <a>##.....</a> // example Hello how are <a>##you</a> ? I want <a>##join you</a>. ?> Now I want replace all ##.... words with ##..... example Hello how are ##you ? I want ##joi...

0
Q: php table rows and columns invisible

user2514539I want to display a table (I get entries from MySQl-Table). The user who sees the tabel should be able to decide if he wants to make some rows or columns invisible for print. The invisible rows and columns would be stored in extra box, so that the user can make them visible again. Is there maybe ...

1
Q: jQuery ajax back to $_POST instead of REQUEST payload

user3040842erm...i remember last year i use the jquery ajax post, i can simply get the post data by typing $_POST['param'], then today i got some project use ajax, then i load the latest jquery lib, i use the following code <script type="text/javascript"> $(document).on('submit', '.ajaxform', function(...

0
Q: Check if ISBN exist in database with PDO

elvismdevI have this code to write some data previously scrapped to my database. I need to check inside the final foreach before write if the book already exist by checking his ISBN number with PDO. How I achieve this by using PDO? $dbUser = 'ebook_scraping'; //Database username $dbPass = 'scr4p1ng'; /...

0
Q: htaccess NC flag not working with RewriteCond

Adam RI have the following setup: user types in domain.com/weeklyad file named weeklyAd.php in the root of my directory and the following in my .htaccess file: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f [NC] RewriteRule ^(.*)$ $1.php [L] RewriteCon...

0
Q: is there any shorthand method to handle loops if you know exactly how much times a loop needs to be executed

SubhankerI have no problem in using loops but sometimes it really feels odd to use an separate variable just to count how many times loop has been executed especially when you know exactly how many times the loop needs to be executed just for example: for($i=1;$i<6;$i++) echo "<input type='text' name='ab...

0
Q: Listing Dates In Order (Options Drop-Down)

user3129227I want to produce a form that has a dropdown options box containing dates in order and in a format but I have no idea how to display them as a string. I assume that you need to do this sort of thing to get the start and finish but how can I get the dates for each "Option"? $start = date('Ymd');...

0
Q: Prepend field to image name inside PHP function that saves images

ol30cean0I have the following function to create images for my products, it creates images usint a parent_id and an image_id, like 4556_878998.jpg. I am trying to modify this and to insert (prepend) to the current image names (when they are created) the name of the product that the image represents, which...

-2
Q: How do I get to the source of a function?

randomizertechI have this piece of code: <input id="actionEvelvate" style="padding-left:5px;margin-right:5px;border:1px solid rgb(186, 186, 186);float:left;" onblur="_IW.AppFormRuntime.elevate();" name="Charges.discountCode" value="" type="text"> I am trying to decypher how to get to the function elevate() ...

-1
Q: How to store and retrieve Image as base64 string

Cristiano DegiorgisFrom my iOS app I'd like to store through web api a user profile including an Image. Web api accetta a json structure. Json structure has a field that contains the Image as a base64 String. Php server receives the json and persists the field value/base64 string in a Mysql blob column as receiv...

0
Q: Is it possible to get multiple image thumbnails in facebook meta tags?

misteequeI have created meta tags for my website. Now when I share my website in facebook, a larger version of image is shared in the newsfeed (which is good), but when I see the same post in my timeline, the image is cropped into a small 120x120px, and then that really makes no meaning at all. Is it pos...

0
Q: Cannot connect to mysql using vagrant on os x mavericks

Jason RodriguezI am having a stubborn issue getting mysql to communicate with vagrant. I am also using Drupal (not sure if that complicates anything). Basically, I do not have a socket file. So, I need to know the steps involved in generating one. Also I think I need to link the directory of this new socket fil...

0
Q: PHP - Redirecting and including files from different directories

John smith3So lets say I have this given directory public_html home user page1.php register reg.php page2.php css general.css index.php Now lets say I want to include page2.php inside page1.php i do this: include "/home/page2.php"; But it doesn't work, the / is supposed to be the ro...

0
Q: PHP revert html special characters in txt file

user2898075I currently have a txt file that looks like this: ABCDEF Blah&#8217;s Test 12344 Blah&#8217;s Test Testing I tried to convert the special characters into their actual characters, so for example, I attempted make the original txt file into this: ABCDEF Blah's Test 12344 Blah's Test Testing T...

0
Q: PHP files without extentions

user3133351Is it bad to use: ForceType application/x-httpd-php and to save files without a file extention (e.g. index instead of index.php). The intention is to hide/remove .php from the URL and to stop users from manually putting /example.php.

 
8:37 PM
0
Q: Can't update mysql rows using eloquent ORM

dantey89I'm new in Laravel and Eloquent ORM. I'm try to update row if it exists, but always getting an error. Here is the code: public static function UpdateVisit(){ $ThisVisit = Visit::where('user_id', '=', Auth::user()->id)->first(); // is this first visit? echo $ThisVisit; if (!$ThisV...

 
8:55 PM
0
Q: How to turn off sortable rows in Yiibooster gridview

Thomas CroonenIm pretty new to Yii with Yii-bootstrap and i cant figure out why my table is still sortable. I hava almost clean installation of Yii and i follow the instructions on the Yiibooster website for installing the booster :) To kickoff my application its nice to add some users and view the existing ...

0
Q: Storing an array in a session

user3018238So I'm trying to store an array in a session, but instate of making it an array it just counts everything up all the time! I just want the value that is done in the session, so I can check if the number isn't done already! There meight be a smarter way to it, but this will do for now! public fun...

0
Q: how to read multiple tables in single csv file and insert those into different tables in db using php

sinutable1 Company Currency Type of Order Lifetime Sales in Value No of Orders Average Sales in Value 100 CHF Manual Order 250,540,000.00 250,000.00 1,002.16 100 CHF B2C 30,000,000.00 320,000.00 93.75 100 CHF B2B 500,000.00 14,000.00 35.71 100 CHF Presales 100,000.00 1,200.00 ...

-1
Q: Why am I getting Undefined Variable error in this simple logic?

JamesWorking late on a project. Just got stuck on something I can't figure out and it seems so simple that I just don't know what the problem is. I have a form, retrieve the form input and store it in $name. Then I check something and store the $name in a $info array. Then I load a makeTemplate() fu...

-1
Q: how to validate a html form

Abhishek Tripathithis is my html form values ...where all variables contain their suitable values <?php foreach ($appls as $appl) : $st = $appl->st(); $st_name = $st->last(); ?> <li class="required"> <input type="radio" value="Yes" name="<?= $st_name ?>_joined">Yes

0
Q: couchdb reduce grouped by key

EricI have a view that returns all documents for a list of tags. The problem is that it returns documents grouped by tag. keys=["tag1","tag2"] function(doc){ if(doc.tags){ for(var i = 0; i < doc.tags.length; i++){ emit(doc.tags[i], doc); } } } returns ["rows"]=

0
Q: php double form submit prevent

user3133401I would like to avoid the double form submit or unwanted submit when first time clicking the link to the form which outputs empty data. The code I managed to find there , seems to prevent double or single empty form or previous form submit but it also prevents to submit the form when expected. ...

0
Q: paypal notify_url not working and tx ID variable not pass to thank you page

user3011784Here is my paypal buy now html code <form name="_xclick" action="https://www.paypal.com/ca/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick"> <input type="hidden" name="business" value="alex@xumanii.com"> <input type="hidden" name="item_name" value="Bewolf Shooping C...

-7
Q: Guide me to make online shopping website using php from the scratch...?

user3133371 I am new in php programming . But I m very fervent to create it.

0
Q: PHP - Entity / Models design issue

Virus721My MVC data layer is made of two parts : Entity classes : objects representing rows from a single table. Model classes : actually it's more used as namespaces with static functions than real classes. For example : class M_Group extends M_Model // Model class { public function create( E_G...

0
Q: PHP, can you help me check if this php code makes sense

jibs91Am trying to create a validation rule for password and password confirmation. To do this, I have been trying to use preg_match, so when users type in a password that doesn't match an error message will display on the screen. Here is the code that I have been trying to use for it. if (isset($_POS...

0
Q: updating MySQL database with pdo

Smart ManI have a database with a table named users. One of the values in users is user_balance. For some reason it is not letting me update the value with $ubalance. The balance always stays the same. try { $dsb = sprintf('mysql:host=%s;dbname=%s', $host, $db_test); $pdo = new PDO($dsn, $db_user...

 
9:43 PM
1
Q: PHP dynamic form will not INSERT into mySql

user3133389I'm working on a PHP dynamic form based on the tutorial found here: http://blog.calendarscripts.info/dynamically-adding-input-form-fields-with-jquery/ Here is the table layout: ID | depratecat | MinBalance | InterestRate | APY | suborder inputted rows ID is auto-increment. The form fields for...

0
Q: How to know whether the file contains $string when uploading a file in drupal 7?

user3133448$form['upload']['cv'] = array( '#type' => 'file', '#name' => 'files[cv]', '#title' => t('Upload Document:'), '#value' => t('Upload'), '#size' => 45, '#attributes' => array('multiple' => 'multiple'), ); I am trying like below: Here i dont want allow the file if that contains like f...

0
Q: How to optimize this PHP script / remove HTML

Metro1337I'm not sure if it's allowed to ask optimization questions here, but since I have found some I think that's ok (if not please tell me and I'll move away) http://stackoverflow.com/questions/tagged/optimization I don't want to repeat all the HTML stuff in the second echo. Basically, for every PHP...

0
Q: preg_replace when not inside double quotes

priojewoBasically I want to replace certain words (e.g. the word "tree" with the word "pizza") in sentences. Restriction: When the word that should be replaced is between double quotes, the replace should not be performed. Example: The tree is green. -> REPLACE tree WITH pizza "The" tree is "green". ->...

0
Q: deep association between models

merouhi guys i am new to cakephp now i'm facing a little big problem here is the situation i hava a shop that hasMany Catalogs which is related to many products each product has a category i want to fetch them all just by getting the shop i dont know how to do it trying to use hasMAny gives me ju...

0
Q: sqlite2 autoincrement error

Luigi DonadelI have a problem with sqlite2 (not sqlite3, because I use php). I try to create a table with the following query: CREATE TABLE Messaggi (id INTEGER PRIMARY KEY AUTOINCREMENT,content TEXT, date DATETIME DEFAULT ('date('now')'), owner TEXT, viewed INTEGER DEFAULT (1)) But when I launch the scri...

0
Q: simple sign up activity in android using mySQL and php

Nishad AhsanI am trying to make an app that's gonna require user login and user can sign up there. I am using mySQL. My tables are okay. my code doesnt give any compile time error but it gives a lot of run time error AND force Closes whenever click create button which executes HttpPost. Dont know what to do....

 
10:19 PM
0
Q: Detect crawnling bots?

user3049858I need an if statement that will include a file on my page only if it detects crawlers from google, bing and yahoo. I found this code on another post but I want to add bing and yahoo too: if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), "googlebot")) { //MY CODE } I would really apprecia...

0
Q: Compare the data of two arrays using foreach PHP

user2898075I'm currently trying to compare the data of two arrays against eachother. My code looks something like the one below: foreach ($arrayOne as $one) { $variable = $one['one']; foreach ($arrayTwo as $two) { if ($two == $variable) { echo "Match!"; } } } Howe...

 
10:31 PM
0
Q: Composer will not use forked installers lib

MattamaticI am trying to setup Composer to automatically install modules, themes, and extensions into a site using the Yii framework. The documentation on the Composer website says to use a custom installer type for this purpose (http://getcomposer.org/doc/faqs/how-do-i-install-a-package-to-a-custom-path-...

0
Q: Remove a zero from date using format 'm.d.y' in PHP?

camelCaseDHello I was wondering how to remove a zero from a date when it is given in the following format m.d.y. So if I get the following date 6.02.13 I want it to become 6.2.13. How would I accomplish this using PHP?

0
Q: Installed BeHat on Windows 7 but getting an error trying to run behat or behat --init

Steven ScottI installed Behat and Mink using PEAR with all the dependencies into my Windows 7 machine. When I execute behat from a command line, I get the following PHP errors which seems to indicate that Symfony is missing, but this should have been partially installed with PHPUnit. Command Line: behat ...

0
Q: android listview click to new activity

user2932645My application take barcode id of product and give back markets with prices where have that product. In listview I have markets and prices. When i click listview elements i want to proceed with new activity where market details should print to textview or something.. However when i click element,...

0
Q: php sql data return array

user3108523im doing a project and i want to send data from function which is on the another php file. then i will show that data in a list which should have button view. this is my data base management file ' private function connect() { $link = new mysqli ("localhost", "xx", "xxx", "table...

0
Q: Strict Standards Non-static method

user3133482I created a website http://www.dhakanibash.com/ . I used a extension from smartaddons.com/. When the extension works in the the website, it occurred a error message like: Strict Standards: Non-static method K2BaseHelper::_cleanText() should not be called statically in /home/dhakanib/public_ht...

0
Q: PHP add <div "style="clear"> </div> in a loop after every 4 records

Michael FalcigliaTo style a page correctly I need to add <div style="clear:both"></div> after every 4 records in a loop. Currently every records outputted into a php file and displayed in a <div> like I have below. <div>content</div> On every 4th record I would like to add a clear <div> like this: <div>con...

0
Q: Create custom text dice roll

AldentecNot sure the best way to word the title of this question. Basically, I have a chat system built into my site. The chat system simply puts the text into a txt file and displays the contents of the txt file. It DOES allow html,php,etc tags. What I want to implement is a way to type /roll 1d20 or ...

0
Q: Best Practices for Maintaining your PHP include path folder and Composer?

Stevie GI have set up my development machine and server to include all required dependencies (of php) across all my projects in a single directory on the machines. Now many repositories come with or recommend the use of composer to manage dependencies of a particular project. It stores the dependent lib...

0
Q: Understanding one to many relatinships

ramiromdim trying map an One to Many relationship, but i have many problems. I have the below entity-relationship model: So, im write the next annotations in the Usuario doctrine model: class Usuario implements UserInterface{ // Some code... /** * @ORM\OneToMany(targetEntity="UsuarioCom...

0
Q: htaccess Mod Rewrite rule for multiple URLs and PHP $_GET's

charlieI have these mod rewrite rules in my htaccess file: RewriteEngine On # Displays directory if there is no / on the end of the URL RewriteCond %{REQUEST_URI} !^/admin [NC] RewriteCond %{REQUEST_URI} !^/status [NC] RewriteCond %{REQUEST_URI} !^/customer [NC] # Removes index.php from URL RewriteC...

0
Q: how to send a link as a essage to facebook friend with php

user2965403is there any way to send a link to friends inbox on facebook i'm able to send normal message by usin url redirection <?php if(isset($_GET['receiver'])) { header("location:https:facebook.com/dialog/send?to=$recipentid&"); } ?>

 
11:25 PM
0
Q: Access XML Property using PHP Simplexml_load_file

James WalkerBasically if I use the simplexml_load_file PHP on the following code: <im:image height="55"> http://a513.phobos.apple.com/us/r30/Music/v4/3a/e9/f1/3ae9f18b-1ec0-d5a7-c452-9af373f52762/886444405560.55x55-70.jpg </im:image> <im:image height="60"> http://a1587.phobos.apple.com/...

0
Q: How to add rel="lightbox" only to links which are including an image and not the rest of the links?

anny32Lets say that (in php) we have a variable which has text, links and images : <a href="myimage_big"><img src="myimage.jpg" alt="pic" title="pic" border="0" /></a> and we want to add to the a href tag the rel="light" as follow : <a rel="lightbox" href="myimage_big"><img src="myimage.jpg" alt="p...

0
Q: Setting a timer in between incorrect logins

user2921557i have a finishing touch for my login form and want to set a 2 second timer in between invalid logins. I had two different ideas, one would be to set a cookie that expired in X amount of seconds. Then on login, check if there is a cookie set. I am not sure however if a user can refuse to let a ...

0
Q: Magento: dynamically adding options to configurable products

user3133500I have a tree set as a configurable product. This configurable tree has a global attribute "container size" which selects relative associated simple products. I desire the following functionality: User visits the product view (tree description page) User selects the desired container size (15 g...

 
11:49 PM
-1
Q: bing search api foreach() invalid argument

user2999967Hello i get a warning when i run this PHP code: Warning: Invalid argument supplied for foreach() <?php // Replace this value with your account key $accountKey = 'Api key'; $ImageSearchURL = 'https://api.datamarket.azure.com/Bing/Search/Composite?Sources=%27web%2Bima...

-2
Q: I am looking for loopholes around GPL

patriotyou know how I have to release the source code if I use code or other assets from a GPL project? What if I did this release by snail mail only? Meaning I printed out every line of source code, at like 100 font so its like 5 million pages, let's say on paper that has subtle things in it that wou...

0
Q: Incomprehensible PDO error

OsmozI got a problem with a query and definetely don't get why. $req = $this->db->query('SELECT COUNT(*) FROM users WHERE username="'.$name.'" AND password="'.$password.'"'); Create this warning: Warning: PDO::query(): SQLSTATE[42S22]: Column not found: 1054 Unknown column 'foobar' in 'where cl...

 
00:00 - 18:0018:00 - 00:00

« first day (308 days earlier)      last day (2 days later) »