39,393 Topics
![]() | |
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 … | |
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 … | |
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 ?? | |
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 | |
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 … | |
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 = … | |
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 … | |
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 … | |
//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 … | |
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 … | |
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. | |
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 = ./ … | |
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); … ![]() | |
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 | |
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 | |
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 … | |
Does anyone know how to move around the tables using PHP. | |
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 … | |
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 ![]() | |
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" … | |
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 … | |
` 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. | |
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 … | |
<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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … ![]() | |
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 … |
The End.