39,393 Topics

Member Avatar for
Member Avatar for bops

I've been having tonnes of issues with Mod Security. I am busy writing a CMS for a project at work and while developing a page to edit a certain database record I kept getting 403 errors. After hours of banging my head against my desk, adjusting bits of code I …

Member Avatar for bops
1
1K
Member Avatar for geneh23

Hey everyone, Hope everyone is doing well! So I might seem a little dumb to post this but I've googled and searched every possible thing I can think of to get my contact form to work and send an email. The validation, which in this case is defaulted to jquery …

Member Avatar for AmirHosseinHP
0
2K
Member Avatar for neha05

plugin for admin panel in which user can login on its ftp details and download all files(.csv I have Ingram Micro products details) and show only check information on sites.so any plugin is available for that ??

Member Avatar for neha05
0
166
Member Avatar for baig772

Hi Any one ever wrked on live helper chat? [This](http://livehelperchat.com/) This is following template structure may be symfony or smarty and I am looking to change some form labels, but cannot figure out where to chage? Thanks in advance for help

Member Avatar for baig772
0
219
Member Avatar for M.Waqas Aslam

Dear all! I am creating a proxy website, which will open a restricted site. Proxy is working very fine and I am happy with it.Now there is a site which only allow in my clients country. Site need username and password to allow user to view contents, Now I want …

Member Avatar for minitauros
0
121
Member Avatar for Indians

Here, i'm trying to fetch the image from database. In my database i can see a image file size ([BLOB - 62.3 KiB]). But, it didn't work. i didn't get any error here. i'm confused where i made a mistake here? <?php include('config.php'); ini_set('display_errors', '1'); error_reporting(E_ALL); try { $stmt = …

Member Avatar for AmirHosseinHP
0
2K
Member Avatar for Indians

Recently i've rewritten my code to PDO from mysql query. Insert, fetch, update, delete everything working fine. But, pagination not displaying in my page. Before i've used mysql query. In that time pagination worked perfectly. Now, i've changed my codes into prepared statements. pagination not dispalying i don't know what …

Member Avatar for bops
0
307
Member Avatar for aals

hey...i need help with magento...with a travel booking engine integration i have got the directory structure figured in magento. There is this static block where i need the booking form to be put up, then i need to create page where the results are to displayed... i jus dont how …

Member Avatar for Mobcom
0
312
Member Avatar for rhodoscoder

//index.php $img_dir ="C:/xampp/folders/img/*.jpg"; $thumb_width = 100; // Open a known directory, and proceed to read its contents $scan= glob($img_dir); foreach($scan as $image) { $im= imagecreatefromjpeg($image); $img_width = imagesx($im); $img_height=imagesy($im); $thumb_height= floor ($img_height *($thumb_width/$img_width)); $new_img=imagecreatetruecolor($thumb_width,$thumb_height); imagecopyresized($new_img, $im, 0,0, 0, 0, $thumb_width, $thumb_height, $img_width, $img_height); $thumb_path = "C:/xampp/folders/thumbs/"; imagejpeg($new_img,$thumb_path); } The error …

Member Avatar for minitauros
0
238
Member Avatar for adsegzy

Hello Firends, I am developing a fashion website where visitors can come and select branded T-Shirts. Visitors will have to choose Man, Woman or Kid Avatar in order to check out the display of the Clothes. What I need is that, on the COLOUR CATEGORY, if the visitor click on …

Member Avatar for adsegzy
0
279
Member Avatar for eburlea

Hi. I have a mysql field with a record like: [2,5,11]. I have a query like: $query = $this->select() ->from($this->_name) ->where('id = ?', $id); This query work if record is of integer type: 5. Is it possible to create a query to find 5 in the array? Please advise. Thanks.

Member Avatar for eburlea
0
339
Member Avatar for MasterH_1

This my site..http://www.vibrationlive.net. I just uploaded the progran to my Godaddy server. And im getting a lot of warnings and notices, how do i turn them off. And here is my php5.ini file (code) allow_url_fopen = off apc.enabled=0 expose_php = Off max_input_time = 60 variables_order = "EGPCS" extension_dir = ./ …

Member Avatar for pritaeas
0
118
Member Avatar for PriteshP23

Hello, I have csv filename with date. Everyday i have same csv file with respective date. I need to read filename (*everyday date changes in filename*) and do operation. For example, I have file "**cells_20140106_165532.csv**". I did like this to read it in general: $filename = "cells_".date('Ymd_hmi').".csv"; $file_contents = file_get_contents($filename); …

Member Avatar for diafol
0
1K
Member Avatar for YakuzaJevin

anyone have a php code for arranging the inputed value of A B C D, from highest to lowest using if,elseif statement, ty :D

Member Avatar for pzuurveen
0
104
Member Avatar for Stefano Mtangoo

Hi Guys, I want to be generating random quote of the day. I want it to be so random and not repeating itself the same quote What is the trick (If code exclude simple db stuffs like mysql_connect et al) Thanks

Member Avatar for pritaeas
0
616
Member Avatar for newbie_to_cpp

Hi everyone, I am new to PHP. I have a problem. I have a simple HTML form where when I select the country from select / option list provided, i want PHP to echo message on country I selected. Also I want PHP include function to list the form specific …

Member Avatar for Bachu
0
301
Member Avatar for Mohamed_26
Member Avatar for dwlamb

I am converting a PHP application from MySQL to PostgresSQL. The MySQL works flawlessly. The database for this application is a one to many relationship. I have a while loop nested inside another while loop <?php while ($movie_row = pg_fetch_array($movie, PGSQL_ASSOC)) { ?> [html code to echo various elements of …

Member Avatar for cereal
0
172
Member Avatar for nevek

HI I'm trying to learn how I need to upload a file and I am wondering if I have to use <form method=post> </form> or can I use <form method=get> </form> and why. Thanks in advance

Member Avatar for diafol
0
133
Member Avatar for achini.thilanka

i want to know how to create database when there are check boxes. i also want to know the codes to connect those checkbox values to database and retrieve from database. this is my part of my html code. <tr> <td>Professional Qualification <br /></td> <td style="height: 78px"> <input type="checkbox" name="Charted" …

Member Avatar for phpology
0
220
Member Avatar for Jibran12345

Hi I'm creating a website that uses a count query, to see how many things in the database match a variable. Table eg: Whats Liked User Liked By potatoes djiajgi computer djiajgi ......... Now, I'm trying to see people who like the same thing as you do, and am ordering …

Member Avatar for pzuurveen
0
289
Member Avatar for abhishek2409

` if(something here) { <img src="a.jpg" class="image" /> } else if(somthing here) { <img src="b.jpg" class="image" /> } I have something like it But class and events associated with it in jquery does not work for second block. Please help.

Member Avatar for pzuurveen
0
114
Member Avatar for thilipdilip

I got a product table like this id | name | category 1 | name1 | 2,1,5,8,9 2 | name2 | 2,1 3 | name3 | 5,8 And I got a category table like this id | catname 1 | cat_name1 2 | cat_name2 5 | cat_name3 8 | cat_name3 …

Member Avatar for thilipdilip
0
2K
Member Avatar for melhanz

<select name='brgylist' id='list'> <?php require_once "connection.php"; $result = mysql_query("SELECT `BrgyCode`,`Barangay` FROM `ref Barangay`"); while($rec = mysql_fetch_array($result)) { echo '<option value="'.$rec['BrgyCode'].'">'.$rec['Barangay'].'</option>'; } echo 'The Code selected is '.$rec['BrgyCode']; ?> </select> I want to store the selected dropdown list to a variable because i will use it to query to output in …

Member Avatar for minitauros
0
318
Member Avatar for nowewiesci

In which **real** situations have you seen C++ usage for web applications wth PHP? I've looked throught the forum, I've asked uncle Google and I know that: - PHP extensions can be written in C/C++ - there is a great amount of C/C++ libraries you can use in PHP projects …

Member Avatar for pritaeas
0
153
Member Avatar for Jibran12345

Hi, I'm creating a website where users can liket things and by liking things you'll see people who have liked the same thing on your home page. Now, currently my code shows people who like ONE same thing as you, but how would I make it so that if anyone …

Member Avatar for pritaeas
0
428
Member Avatar for showman13

This may sound like a question I shouldn't need to ask, but here I am asking it... In a PHP page I am doing some simple html stuff, where there is a reference in a paragraph to information on another part of the page (rather lengthy document)... in html I …

Member Avatar for JorgeM
0
205
Member Avatar for showman13

Good Morning All, and HAPPY NEW YEAR to everyone, whether you celebrate it or not... I have what should be a relatively simple question that I would like to pose that could avoid a very lengthy one... if I create an associative array and place several key>value pairs in the …

Member Avatar for showman13
0
228
Member Avatar for GlenRogers

Ok,I havent a clue how to do this. I have a mysql table for products, each has id as the primary key. I have an admin page where I upload products to this table or delet/hide them too. But I want a way where when I'm uploading the products to …

Member Avatar for iamthwee
0
100
Member Avatar for kgizo

I would love to know whether this code is the correct manner to send mysql data to a remote database. $host = 'www.domain.tld'; $user = 'remote_user'; $pass = 'remote_password'; $time_end = microtime(true); //grant per;misions to connect to remote host if (!function_exists("ssh2_connect")) die("function ssh2_connect doesn't exist"); // log in at server1.example.com …

Member Avatar for The Diamonds
0
586

The End.