39,326 Topics

Member Avatar for
Member Avatar for Webville312

Hullo, I am working on sam php code that captures users' details, depending on their choice. If the user selects "No", then the products will not be delivered to him, and so; the form collecting details will not be displayed. However, if he selects "Yes" option, then the form to …

Member Avatar for Webville312
0
105
Member Avatar for bfitzgerald

Hi Guys I have been asked to make an online sign up sheet system by my boss. I have almost finished but have encountered a problem. To sign up to the created activity I have use a previous form to add a "page name" which is then used to generate …

Member Avatar for bfitzgerald
0
222
Member Avatar for yy886

It seem to be I have a problem on that code as this only go though the first one and then stopped...so other file extension is not allow... //Check the file extension if (($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/doc") || ($_FILES["file"]["type"] == "application/docx") || ($_FILES["file"]["type"] == "application/ppt") || ($_FILES["file"]["type"] …

Member Avatar for yy886
0
290
Member Avatar for mmonclair

I have a Drupal 7 question, related to extending a theme's regions. I've been to the official Drupal site, where this has been batted around with no solutions, on StackOverflow and a few other places. I'm continuing to troubleshoot it, but haven't hit upon a solution yet. I set up …

Member Avatar for mmonclair
0
188
Member Avatar for yy886

The connection and setting are fine as I can insert things into the same db with different tables. Long story short below is the value that I want to insert into the db but it give me no error and nothing insert. I have use the echo and checked every …

Member Avatar for pritaeas
0
285
Member Avatar for akkbkht

Hello. I have tired too much ways to overcome this issue but can't find a way yet. I am making a user defined function, when click a "And new row", This function will be called and a new row will be added. There in first cell, a dropdown menu will …

Member Avatar for pzuurveen
-1
289
Member Avatar for ak47carbon

i want to redirect all .html file in subdirtories into root directory with .htaccess file,it does not manner that how much directory is complicated or long. example1: http://www.example.com/folder/folder2/folder3/folder4/main.html to http://www.example.com/main.html example2 http://www.example.com/folder/manyfolder/main.html to http://www.example.com/main.html

Member Avatar for pritaeas
0
170
Member Avatar for mogaka

function addUsers($params) { $fnameval = $params->getParam(0); $fname = $fnameval->scalarval(); $mnameval = $params->getParam(1); $mname = $mnameval->scalarval(); $lnameval = $params->getParam(2); $lname = $lnameval->scalarval(); if(mysql_query("INSERT INTO users(fname,mname,lname) VALUES('$fname','$mname','$lname')")){ $mess="data and synced successfully";} else{ $mess="data saved but not synced as required";} $response = array('response' => new xmlrpcval($mess, 'string')); return new xmlrpcresp(new xmlrpcval($response, 'struct')); } …

Member Avatar for mogaka
0
483
Member Avatar for mathewmoozh

How can i encrypt the php code so that i can block the re-editing of files.I have tried some, but not working thanks in advance

Member Avatar for pritaeas
0
120
Member Avatar for rjony321

Hello Masters, I need help.I can't apply **WHERE** Condition clause in my Multiple selected checkbox value.like If i select 'accounitng' or 'php' then i want here use a condition like **WHERE** **("skill", "php")** here, skill table field name and php checkbox selected value.If i select a category 'PHP' so all …

Member Avatar for diafol
0
183
Member Avatar for OsaMasw

Hello guys, today when I was try to install Joomla on my server it prevents me from continue because of Magic Quotes GPC = ON , so I red about this and saw many sites and PHP iteself recommended to shut this feature, my question is in my projects I …

Member Avatar for OsaMasw
0
247
Member Avatar for davy_yg

How to find the following information using php? Server Information Server OS Linux PHP Version 5.4.8 Server Handler fpm-fcgi Platform windows Admin Information IP Address 202.93.141.94 Browser Mozilla Firefox Version 20.0

Member Avatar for davy_yg
0
205
Member Avatar for davy_yg

Hello, I create this backend system. When someone click check box then press apply. This script suppose to delete all rows that are checked. How to do so? It seems like the script are incomplete. <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; echo "<tr bgcolor='$result2'>"; echo '<td><input type="checkbox" name="vehicle" value="Bike"></td>'; …

Member Avatar for davy_yg
0
150
Member Avatar for pranavsai3

<?php session_start(); if(isset($_SESSION['is_user_logged_in'])) { $x=mysql_connect("localhost","root",""); $y=mysql_select_db("online_book_shop",$x); $n=$_SESSION['id']; echo "<html> <body background=modern-background-design.jpg> <div align=center> <h1 style=text-align:center;font-family:fantasy;color:red;font-size:36px> COMPLETE BOOK DATABASE</h1></br>"; $z=mysql_query("select * from books order by serial asc"); echo"</br><br/><br/><br/><table border = 4 bgcolor=white align=center>"; echo"<tr> <td> Serial number</td> <td> Name </td> <td> Price </td> <td> Quantity remaining</td> <td> Purchase</td> <td> Add to …

Member Avatar for broj1
0
129
Member Avatar for atikah8890

Hi. I'm creating a short-answer quiz. The questions has one text area each for answer. However, for each question there are several answer suggestions in the database. I'd like to compare the value post by the text area with the suggestions. $answers = explode(" ", $ans[$arr_ind]); //$ans[$arr_ind] holds answers from …

Member Avatar for atikah8890
0
183
Member Avatar for jethaya

i have multiple users who need to update a table into mysql with a csv file they will need to do this by pasting the csv file into a text area on the website the first row of that file contains the name of each feild and i need to …

Member Avatar for diafol
0
461
Member Avatar for vizz

How to create website like, [URL="http://www.paktvlive.com/"]http://www.paktvlive.com/[/URL] [URL="http://www.freetv-watch.com/"]http://www.freetv-watch.com/[/URL]

Member Avatar for joopdoop1
0
119
Member Avatar for anand_potukuchi

I wanyt to create a progress bar for my website in which a user can skip registration steps and fill them afterwards. Like supposeuser has to compulsorily foll step 1 & 2 of the reg process but can skip the 3rd and do it later. On his dashboard after he …

Member Avatar for phfilly
0
320
Member Avatar for yy886

mysql query problem Sample data of my mysql. id | id2 | sender | recipient | senderread | recipientread | Title 31 | 31 | A177 | B213, A256| yes | yes | Question123 32 | 31 | A256 | A177 | yes | no | Answer456 33 | 33 …

Member Avatar for diafol
0
353
Member Avatar for rjony321

Hello Masters, I am new in Codeignitor but i enjoy here.I have one problem like, I want only display value comparison last date *less then or equal* current date. **Last date <= current** date.here last date mention by user.If last date *greater then current date* then those value auto delete …

Member Avatar for cereal
0
6K
Member Avatar for kirtan_thakkar

I want to add text string at the end of the text file. I used "a+" for it but it delete all the content and than enters text to it. So please help.

Member Avatar for msnadz
0
3K
Member Avatar for ultramel

hi I have the following which brings up the print window for my page, however, I would only like to print the "echo" form data which is being displayed and not the entire page. any suggestions would be greatly appreciated :-) Thank you <script> function printpage() { window.print(); } </script> …

Member Avatar for almostbob
0
206
Member Avatar for PF2G

Hi, i'm trying to do clean url's using .htaccess but i'm having problems. Here i have my .htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^([a-z]+)\/([0-9]+)\/?$ parameter_letter_and_number.php?param=$1&param2=$2 [NC] RewriteRule ^([a-z]+)\/?$ $1.php [NC] RewriteRule ^([0-9]+)\/?$ parameter_number.php?param=$1 [NC] RewriteRule ^([0-9_]+)\/?$ parameter_number_and_underscore.php?param=$1 [NC] </IfModule> Here is my parameters page so i can test: <!DOCTYPE HTML> …

Member Avatar for NardCake
0
447
Member Avatar for kamil.metkowski

Hi I'm doing a search function in PHP from an sql database. It was working before and i have no idea what happend but when i search now no results are found, but before the search it shows all the records, so there is a connection with the database. I …

Member Avatar for kamil.metkowski
0
189
Member Avatar for marifard

Hi, I made a page to show the information of the applications I apply and the interviews I made for selected applications and I use the inner join and left join to display data from different tables. This week I add another table to enter in it the comments. I …

Member Avatar for pritaeas
0
356
Member Avatar for ferdinandmucos

With the following 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. …

Member Avatar for ferdinandmucos
0
207
Member Avatar for mallows.yum

Hi all i have this code that will search a record from the database <?php define ('DB_NAME', 'try1'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) { die('Could not connect: ' . mysql_error()); } $db_selected = mysql_select_db(DB_NAME, $link); if (!$db_selected) { die('Can't …

Member Avatar for pzuurveen
0
303
Member Avatar for Dramz0r

Hi there, Pretty new to PHP and having a problem when deleting data from my MySQL Table after populating it into a listbox, seletcing it and using a button to delete the selected row. Heres the code: <?php //create and execute query $query = 'SELECT product_ID FROM products ORDER BY …

Member Avatar for Dramz0r
0
234
Member Avatar for bfitzgerald

Hi Guys I've got a slight problem and was wondering if anyone could help. I've been asked to create an online sign up sheet system. So far I have a from which enters the stuff i need to a table in a SQL database and creates a new html page …

Member Avatar for Webville312
0
269
Member Avatar for olajyde027

I have a table called vw_results which holds the result profile for a particular student: idNum |courseUnit | marks | Gpp | grade| id | semseterID | sessionName 06/021| 2 | 47 | 8 | B+ | 1 | 1 | 2010/11 06/021| 3 | 56 | 7 | C …

Member Avatar for pritaeas
1
265

The End.