39,320 Topics
| |
hey, im working on a site on drupal with a theme, i have the main page with slider, i created a new page and i want to use some jquery there, but i search on internet they said that add scripts[] = jquery.js into you them file, the problem when … | |
Hi, I really like to know much more about PHP? what is it? Please explain me clearly. | |
I want to make my website a mobile application. I write in php and after a little research it seems that Zend is the best way to create mobile apps in PHP. Any ideas? | |
I'm trying to make a puzzle solver with php code like this <?php $GoalState = array(0,0,0,0,0,0,0,0,0); $CurrentState = array(0,0,0,0,0,0,0,0,0); $ChildState = array(0,0,0,0,0,0,0,0,0); function GetGoalState($initialstate, $goalstate){ $total = 0; $GoalStateGanjil = array(1,2,3,8,0,4,7,6,5); $GoalStateGenap = array(0,1,2,3,4,5,6,7,8); for($i=0; $i<8; $i++){ for($j=$i+1; $j<9; $j++){ if($initialstate[$j] < $initialstate[$i] && $initialstate[$j] != 0) $total = $total … | |
Hi Guys i am having a very peculiar problem i have written a small code so that it is possible to sign up to the website i am creating with a few restrictions to each field however from what i see the code seems ok but each time i try … | |
Hello i have a problem with my website. It is running slow. I asked the my server provider why is that, and they replied its because the webiste uses many embedded urls like youtube, vimeo, dailymotion and so on. And so i have to cache these embedded urls. Anyone knows … | |
Hello, I would create Login page. which - separate Php for random username password generator - this is just a dummy login with random username and password generator. No database required. - e.g like http://www.surgaliga.com/ **Need:** Is they any script that random suggest detail of login and password after given … | |
Hi All, I am working with a Magento (v1.8.1) site, which until a week or so ago, was working perfectly. I am using the SM_AMAZ theme, and have no plugins which could interfeare with performance. Everything will be fine, then something in the admin panel will get changed, and the … | |
I am Using a form to insert data into a table i have created, I receive no errors but for some reason, it states it worked, although it does not insert any data, Here is what I'm using: this is the form page: [CODE]<head> <link rel="stylesheet" href="../uploads/css/style.css" type="text/css" /> </head> … | |
//i have made a function. but i can't call the function generateOrderedArray() as it says there is a Fatal error. help me! this //is my coding <form action="" method="post" enctype="multipart/form-data"> <html> <table> <tr> <td> <input name="location" type="radio" value="Jasin">Jasin <input name="location" type="radio" value="Merlimau">Merlimau</div></td> </tr> <tr> <td> <input type="submit" name="submit" value="Search" class="butoonfunction" … | |
Hi Everyone, I have the following php calulation $tplaunch = $tplaunch - $tpsold; This calculates as you would expect. I am helping to build a website that offers the first 25 members to purchase a product at a reduced cost. tplaunch is the number of user who will get the … | |
I need to sort items from multiple columns. I use this to get the id from the columns and format the data: $.fn.serial = function() { var array = []; var $elem = $(this); $elem.each(function(i) { var id = this.id; $(move_selector, this).each(function(e) { array.push( 'id[]=' + this.id ); }); }); … | |
please assist. i can not connect to my sql server (172.16.15.119). i always get this message"Fatal error: Call to undefined function sqlsrv_connect() in C:\Program Files (x86)\EasyPHP-12.1\www\malunde\connect.php on line 5" and the code that i used is: <?php $serverName = "172.16.15.119"; //serverName\instanceName $connectionInfo = array( "Database"=>"TPA-CS_UAT", "UID"=>"sa", "PWD"=>"tpa123"); $conn = sqlsrv_connect( … | |
Good day everyone. I am trying to simulate (with php), an xml-like structure for json as follows: { "Articles": [ { "Article": { "ID": 111, "title": Origin of man", "author": "Man and Woman", "pubDate": "21st Feb, 2014", "summary": "Both Idiots" } }, { "Article": { "ID": 222, "title": "Origin of … | |
Hi Everyone, I have the following script and I would like to rename the uploaded file to web-image(ext) The file is being uploaded to the correct location on the server and the database is being updated correctly, But I am unable to figure out how to rename the uploaded file … | |
Hi Everyone, I have the follow RewriteRule in my htaccess file that works as it should RewriteRule ^(.*)$ /product.php?pid=$1 [QSA,L] If I wanted to add another product page would I just need to add RewriteRule ^(.*)$ /productpage.php?ppge=$1 [QSA,L] for the Rule to work correctly? Thanks in advance | |
input_image.php <?php $result = mysql_query("SELECT * FROM image_upload ORDER BY image_id ASC"); $data = mysql_fetch_array($result); $banner = $data['image_bn']; ?> <p><img src="../../images/<?php $banner; ?>"></p> <?php echo $_SESSION[$banner]; ?> line 13: Notice: Undefined index: adm_banner.jpg in C:\xampp\htdocs\portal\administrator2\admin\input_image.php on line 76 How to fix the error? | |
Hi, i am trying to make an order form that people select their candy they like and how much they want as well as their address and phone number for the website owner to go through and complete the order, i am having trouble getting the php mail function to … | |
excuse me, I'm trying to create a function to copy the array, but the function does not work, please help. thanks before <?php function CopyState($from, $to){ for($i=0; $i<9; $i++){ $to[$i] = $from[$i]; } } $a=array(1,2,3,4,5,6,7,8); CopyState($a,$b); echo $b[2]; ?> | |
i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that … | |
i have a php methode that checks if a passed in parameter is a date. Here's it: public function is_Date($str){ if (is_numeric($str) || preg_match('^[0-9]^', $str)){ $stamp = strtotime($str); $month = date( 'm', $stamp ); $day = date( 'd', $stamp ); $year = date( 'Y', $stamp ); return checkdate($month, $day, $year); … | |
(1)You have a PHP 1 dimensional array. Please write a PHP function that takes 1 array as its parameter and returns an array. The function must delete values in the input array that shows up 3 times or more? For example, if you give the function array(1, 3, 5, 2, … | |
Hi. I'm looking for a social networking or dating script/software with the following features: > Standalone script/software to be used on my own server (no hosted solutions). > Supports mobile devices. Users can view my website, edit their profile and upload photos from their mobile phone. Can anyone recommend a … | |
| Hi guys, This one has got me completely stumped. Here are my trouble shooting notes. My upload script works absolutely fine without any changes on localhost. However, on the live production server my files do not get uploaded. My view is: <?php echo form_open_multipart('upload/do_upload');?> <input type="file" name="userfile" size="20" /> <br/> … |
I have some errors while trying to fix the following codes: update_image2.php <?php //LOAD IMAGE TABLE if (!empty($_GET['image_id'])){ $result = mysql_query("SELECT * FROM image_upload WHERE image_id='".$_GET['image_id']."'") or die(mysql_error()); $data = mysql_fetch_array($result); $image_id = $_GET['image_id']; $newfilename = $data['newfilename']; $class = $data['class']; $location = $data['location']; $minwidth = $data['minwidth']; $maxwidth = $data['maxwidth']; $minheight … | |
Hello Friends, Am working on a greeting card project (like www.funkypigeon.com) where after customizing a card, you can submit it to DB and a thumbnail of what you created will be generated. At submitting the card, I generate d customization in txt like below.But how do i generate a thumnail … | |
I stored a password in db, nw i want to change my password, with the fields of old password, new password, and confirm password my question is how to retrive or compare password that i have entered in db with old password that i`m going to enter . if it … | |
Hello. I am tasked with making a small survey for internal use. I have the HTML made up where it asks for a incident number (6 digit number) and has 15 checkbox items. Users here will goto the survey as needed, type in an incident number and check the box … | |
<? abstract class BaseData { protected $connection; public function __construct($connection) { $this->connection = $connection; } abstract public function connected(); abstract public function get(); } class UserData extends BaseData { public function exists() { return is_connected($this->connection); } public function get() { return get_data($this->connection); } } $UserData = new UserData(new Connection()); ?> … | |
hi all... how to categorize multiple values in a table field. for ex:- id Field 1 Adult 2 Adult 3 Child 4 Child 5 Senior 6 Senior i.e, 3 category Adult as 1,Child as 2, Senior as 3 i want the result as like this count catname 1 of 1 … |
The End.