39,393 Topics

Member Avatar for
Member Avatar for LaughingOtter

Hi! Long time no post, mostly because I've had to put the mobile coding aside for my real job. Plus some home brewing. And lots of pinball. I have run into a problem. I am developing an application where an Excel spreadsheet (or tab-delimited text file) can be read in …

Member Avatar for LaughingOtter
0
527
Member Avatar for nishi.ahmed2

how i can implement php code in my blogspot website name [text free](http://text-free.blogspot.com/). how is is it possible? i want add little programme in my blogspot site

Member Avatar for diafol
0
334
Member Avatar for ferdinandmucos

How do I Change the select option to check boxes in the following code: foreach($qas as $k=>$v) { echo "<input id='text' style='width:40%' type='text' value='".$v['question']."' name='questions[]' >"; echo "<select name='selected_answers[]'>"; foreach($v['answers'] as $answer){ echo "<option value='".$answer."'>".$answer."</option>"; } echo "</select>"; echo "<br/><br/>"; }

Member Avatar for ferdinandmucos
0
245
Member Avatar for davy_yg

Hi, How to revise the php code so that it could fits the subject for e-mail? Thanks. <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$phone&&$message) { if (is_numeric($phone)) { $privatekey = "6LfjvdcSAAAAAHNcKjYO5DhTNefxYZHYcfhtrvGC"; $resp …

Member Avatar for davy_yg
0
114
Member Avatar for ferdinandmucos

Having a text file: $string = '1) The most important feature of spiral model is: requirement analysis. risk management. quality management. configuration management 2) The worst type of coupling is: Data coupling. control coupling. stamp coupling. content coupling 3) One of the fault base testing techniques is: unit testing. beta …

Member Avatar for ferdinandmucos
0
952
Member Avatar for Carpetfizz

Hello! I'm trying to pass a variable from one .php file to another, through the use of a global variable. However, whenever I make a variable "global", the page does not load. Here is the snippet of code that is causing the problem. If more context is required, let me …

Member Avatar for LastMitch
0
254
Member Avatar for riahc3

Hello Im having problems setting a cookie in PHP (using the Magento platform). The page is at: http://example.com/step1 When I click on a link here, a iframe opens up. This iframe opens up and is located at: http://example.com/somewhereelse/index.html I check a checkbox or I dont. If I check it, a …

Member Avatar for LastMitch
0
241
Member Avatar for ivanichi

i have problem about while loop. this my code, error_reporting(E_ALL ^ (E_NOTICE | E_WARNING)); function multiexplode ($delimiters,$string) { $ready = str_replace($delimiters, $delimiters[0], $string); $launch = explode($delimiters[0], $ready); return $launch; } function my_replace($srch, $replace, $subject, $skip=1){ $subject = explode($srch, $subject.' ', $skip+1); $subject[$skip] = str_replace($srch, $replace, $subject[$skip]); while (($tmp = array_pop($subject)) …

Member Avatar for ivanichi
0
577
Member Avatar for dhani09

I'm trying to create something like a breadcrumb based on what is selected from a drop down list. For example if a user selects accessories from a list and then goes on to select from another drop down list scarfs. I want to be able to show: You selected accessories …

Member Avatar for diafol
0
200
Member Avatar for ferdinandmucos

The two arrays does not compare and compute by adding one for every similar and 0 if otherwise I don't know what is wrong with the codes, but to me is seems fine. What might be the problem? <html> <head> <title>Chosen answers</title> </head> <body> <pre> <?php //Posting of the chosen …

Member Avatar for diafol
0
168
Member Avatar for jethaya

here is the full page code sorry its bit long but i have no clue where i went wrong all i get when i run this is the page with its background and an empty text area basicly i am trying to get the info from a table in my …

Member Avatar for jethaya
0
337
Member Avatar for daniel36

I need a link in my project sothat if anybody click on that link ,he remain on same page and the link opened in new tab.for example i have a link <a href="http://www.google.com">google</a> on page mypage.php .when anybody click on google than he will remain on mypage.php and a new …

Member Avatar for daniel36
0
147
Member Avatar for davy_yg

Hi, When I try to save the form I wonder why location and description remains empty. I already fill the form with the necessary information. input_image.php <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $productname = isset($_POST['productname']) ? $_POST['productname'] : ''; $location …

Member Avatar for LastMitch
0
135
Member Avatar for Squidge

I have a very simple class for date display: class timing { public $today; public $year; function __construct() { date_default_timezone_set('GMT'); } function now() { return $this->today = date("D j M Y"); } function year() { return $this->year = date("Y"); } } I am pulling in using: $x = new timing(); …

Member Avatar for Squidge
0
117
Member Avatar for GlenRogers

Hi, I need to have a form with multiple image and description fields, say 15. So if 15 are filled in then it adds then it adds the images to 2 dirs(thumb and images) and saves the image pathname and the descriptions to the 2 mysql tables. I have this …

Member Avatar for diafol
0
210
Member Avatar for dbalas

I am developing an application for a client. What i need is, send updates with changed records to clients where the email that needs to be used is extracted from the database. What is weird is that i cant send it to all email addresses... Note that i dont have …

Member Avatar for dbalas
0
159
Member Avatar for mbarandao

Hi all: I'm trying to pull from a table all values of a specific row (accountids) and would like to iterate through each query result while perform a specified task with each value. Example: The following q-- $get_acctids="select accountid from company_info"; $result = mysql_query($get_acctids) or die(mysql_error()); while($row = mysql_fetch_array($result)){ $id_num= …

Member Avatar for pritaeas
0
267
Member Avatar for Angle90

Hello Everyone, I need your help, can you please tell me how to create a text field for file upload with HTML ? I presently have this code in my form for file upload to the webserver; `<input name="userfile" type="file" size="50">`, this allows someone to browse file from their computer …

Member Avatar for cereal
0
5K
Member Avatar for gaasha

Hi guyz, When I click the tray icon of WAMPServer and select the phpMyAdmin option, it issues an error **Could not execute menu item (internal error)..... The system cannot find the specified path.** Previously, I could access it without any problem. Any ideas?

Member Avatar for pritaeas
0
135
Member Avatar for amith_ami

hi all... i'm doing a wordpress jobsite... now its searching only jobs from the backend but i also want to include search results from the jobsite indeed.com on my result page... i use the api of indeed.com to fetch the jobs and its showing jobs in the home page..... but …

Member Avatar for pritaeas
0
225
Member Avatar for <M/>

Hi, I can not create a database in the phpmyadmin. How do I enable the privilidges so I can create a database? ![a1f9ac111e8c5f99ec073858a8c29eef](/attachments/large/3/a1f9ac111e8c5f99ec073858a8c29eef.png "a1f9ac111e8c5f99ec073858a8c29eef") ![a1f9ac111e8c5f99ec073858a8c29eef](/attachments/large/3/a1f9ac111e8c5f99ec073858a8c29eef.png "a1f9ac111e8c5f99ec073858a8c29eef")

Member Avatar for <M/>
0
732
Member Avatar for sandeepek

I am trying to make a website which support mp3 downloading. I don't have any idea with this. I just tried like uploading image , in that I can store mp3 files into database and from there I can move that file into specified folder. I don't know here I …

Member Avatar for sandeepek
0
225
Member Avatar for ero100@live.com

HI, HE IS MY FORM, I WOULD LIKE TO THE PHP CODE TO : DISPLY A MESSAGE IF THE ONE FIELD OR OTHER IS EMPTY, [code=html]<form id="form1" name="form1" method="post" action="form.php"> <label> NAME: <input type="text" name="name" id="name" /> </label> <p> Address: <label> <input type="text" name="address" id="address" /> </label> </p> </form>[/code] THANK …

Member Avatar for diafol
0
242
Member Avatar for jrotunda85

I am trying to secure a folder within my site by forcing an HTTPS connection when anything in this folder is run (the folder contains a series of scripts that process registrations, password resets, etc). What's the easiest way to accomplish this?

Member Avatar for pixelsoul
0
180
Member Avatar for garyrichard

Firstly Thanks in Advance.. I am trying to store an image in BLOB form into database and want to show that image on browser on retriving it from database.. Code used to convert image to blob is given below.. `ini_set('display_errors', 'On'); error_reporting(E_ALL); $img=file_get_contents("$_file[tmpname]");` but i am not able to display …

Member Avatar for veedeoo
1
253
Member Avatar for javacle

Hi guyz, i'm working on a site, and i need some help on a php code for advanced file reading. I need to implement a php code that will intelligently read the contents of a file. When users upload the required type of file to my website, it will read …

Member Avatar for veedeoo
0
200
Member Avatar for ferdinandmucos

I have this text file that contain questions and their respective four multiple answers, when I try to display them in html form, the diplay only contains three multiple answers and not four. this are the codes: Text file: $string = 1) The most important feature of spiral model is: …

Member Avatar for paulkd
0
200
Member Avatar for ivanichi

Assuming i have $a='1024,1025,0000|1020,0000|'; $b='1024,1025,0000,1020,0000,'; i want replace commas (,) in $b with (|) so that $b is equal to $a like this $b='1024,1025,0000|1020,0000|'; if i use $ob=str_replace("0000,","0000|",$b); echo $ob; output works : 1024,1025,0000|1020,0000| But, how to make it with PHP where did i put that this refers to the …

Member Avatar for ivanichi
0
257
Member Avatar for OsaMasw

hello there thanks for help mke in many questions, I've learened a lot from this great community I have question about creating visitor counter,daily,monthly,yearly I've created a counter depending on IP address but all my costomer are in the same IP so this counter will not be accurate, So I …

Member Avatar for OsaMasw
0
3K
Member Avatar for Carpetfizz

Hello! I have PHP and mySQL set up on a server, and everything works fine. I am able to connect to the SQL database successfully, etc. However, I want to set it up so that a user enters their "ID" in an input box. Then, the php script will return …

Member Avatar for diafol
0
183

The End.