39,320 Topics

Member Avatar for
Member Avatar for UK-1991

Hello, I have just created a new page of form submittion but wanted to show different form value when different option is selected from the dropdown can any please help me out with this concirn. Here is my code <form method="post" name="form2" action="insert_report.php"> <label> <p><b>Campaign</b></p> <p> <select name="campaign"> <option value="">Select …

Member Avatar for kazkuzzer007
0
242
Member Avatar for Ventech_IT

Hi guys just a quick question how do i send email from a form in codeigniter? I have searched and tried to get it right but it just keeps telling me that the page required could not be found? Here is my view: <div class="container"> <div class="row"> <div class="container"> <div …

Member Avatar for cereal
0
190
Member Avatar for karan parmar

how to solve or make website in dual language with all content. i want make website in two language (Gujarati Or English). it can possible in single database?.how?. please give me proper logically solution. i can't understand that how to code it. thank you so much.

Member Avatar for Tony Timms
0
860
Member Avatar for nadiam

hello, im wondering how to throw an error message to a user if the input value is a duplicate in `INSERT INTO...` I have: <?php require "connection.php"; $name = $_POST["names"]; $event_id = $_POST["events1"]; $euser_id = $_POST["sessions"]; $single_chair_id = $_POST["schair"]; $assign = $dbh->prepare("INSERT INTO cinema(cuser_id,event_id,guest_name,chair_id) VALUES(?,?,?,?)"); $assign->bindParam(1, $euser_id, PDO::PARAM_INT); $assign->bindParam(2, $event_id, …

Member Avatar for pixelsoul
0
216
Member Avatar for kazkuzzer007

I try to display a pdf document with code like this: <?php session_start(); if (empty($_SESSION['nip']) AND empty($_SESSION['password'])) { ?> <script type='text/javascript'> alert('You must login'); document.location='../../../login.php'; </script> <?php }else{ include_once '../../../config/core.php'; include_once '../../../config/functioncollection.php'; $kode_materi=antiInjections($_GET['id']); $querambildata=mysql_fetch_array(mysql_query("SELECT * FROM materi_tb WHERE kode_materi='$kode_materi'")); $file = "../../../filemateri/".$querambildata['url_materi']; $filename = $querambildata['url_materi']; header('Content-type: application/pdf'); header('Content-Disposition: inline; filename="' …

Member Avatar for pixelsoul
0
307
Member Avatar for ..sri..

I am having a list of values inside a loop. I need to turn all those values into exact 5 star rating. I have searched a lot, but i cant get the exact answer what i need. <?php $a=0; while($a<5) { echo "<input type=text value=$a><br/>"; //need to display star rating …

0
66
Member Avatar for Boss2008
Member Avatar for Lisa Wayne
0
198
Member Avatar for riwakawd

I have made a library class in php which can get data from my database table settings. I can get information if it is not serialized. But I would like to know on my get function what would be best method to be able to return unserialise information just incase …

Member Avatar for pixelsoul
0
186
Member Avatar for sexycodette

hello all; scratching my head because I have no clue why this query doesn't work. php5, mysql 5.1 [code]INSERT INTO cats (title,type,cat_parent,cat_descr) VALUES ('Category Name', '0','0','Category Description')[/code] BASIC insert query. and the error I get ad infinitum is this: [CODE]Error: You have an error in your SQL syntax; check the …

Member Avatar for Adiel
0
3K
Member Avatar for mattster

Hi All, I've used CakePHP for ages and as a framework I really like it and it works nicely. However, it has a nasty snag. Say you wan't CakePHP to be your main application in the website root (`/`), and you wanted a Wordpress blog in a subdirectory (`/blog/`). In …

Member Avatar for mattster
0
148
Member Avatar for davy_yg

index.php <div style="margin: 123px 0 0 310px; position: absolute; z-index: 3;"> <form action="login_portal.php" method="POST"> <input type="text" class="form" name="username"><br> <input type="password" class="form2" name="password"> <div style="margin: 15px 0 0 330px; position: absolute;"> <input type="hidden" name="submit" /> <input type="image" src="images/login.jpg" alt="submit" width="200px"></div> </div> login_portal.php echo "test"; if (@$_POST['submit']) { echo "enter"; I wonder …

Member Avatar for pritaeas
0
117
Member Avatar for john khin

while ($row = mysql_fetch_array($retval, MYSQL_ASSOC)) { echo '<tr>'; echo '<td>' . $row['img_id'] . '</td>'; echo '<td>' . $row['picture'] . '</td>'; echo '<td>' . $row['category'] . '</td>'; echo '<td>' . $row['quantity'] . '</td>'; echo '<td>' . $row['title'] . '</td>'; echo '<td>' . $row['description'] . '</td>'; echo '<td><a class="btn btn-success" href="update.php?id=<?php echo …

Member Avatar for sankar.s789
0
195
Member Avatar for Andre Chenier

my related table is: `slm_slmetiketler` : it's for tags and related post ids. Columns are: `slm_etiket`: tag (`primary key`) `slm_postids`: post ids matched with the tag `slm_idadet`: quantity of post ids matched with the tag example from current state of my table: slm_etiket slm_postids slm_idadet tag1 1 1 tag2 1,3 …

1
79
Member Avatar for Simon_4

I am a bit new in XML and show elements/records on a website. So, here is my xml result. What and how is the easiest way to echo (in php) eg mp:title or <c:assets> <c:link rel="PT01" type="image/jpeg" href="http://ecx.images-amazon.com/images/I/41Qd6Z8OA8L.jpg"/> or price or so? any example would be nice... Cheers <c:searchResults xmlns:c="http://webstore.amazon.com/API" …

0
174
Member Avatar for codecodex

I'd like to get the ID's of every selected chkbx and insert them in diff row. The 3rd img shows the input of php codes but what I want is the last img table. Is it possible? Thanks for help.

Member Avatar for diafol
0
32
Member Avatar for Tom_11

I have a posted this question in the computer science section, someone told me to move it here i am unsure of how to so starting a discussion here. Please can someone help me to make the cell (dates) of the calendar clickable, one they have been clicked it opens …

Member Avatar for cilla
0
1K
Member Avatar for chaitu11
Member Avatar for aquilina

i have problem when adding a subject it got two subject that need to be selected by teacher , management sub and DBMS sub.. said Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\PhpProject3\navhead_user.php:57) in C:\xampp\htdocs\PhpProject3\teacher_add_subject.php on line 104.. when i select one of them it …

Member Avatar for diafol
0
368
Member Avatar for grakovski

Hello there, I got forum (phpbb3) and i have topics with a lot of links, like this: <a href="link..." class="postlink">Link name...</a> in every link i have class="postlink" and i want to add rel="nofollow" for every external link except my domain by check the 'href' definition. Its possible with only preg_replace …

Member Avatar for grakovski
0
430
Member Avatar for pravinkumar1

i want to know full details about php, as i dont know upto what extend the php is extended till now, specify in the list manner so that everyone can understand easily.

Member Avatar for almostbob
0
339
Member Avatar for riwakawd

I have three files which when i click on delete should be removed. How am I able to use the unlink and realpath for my multiple files? public function delete() { $path_to_file = FCPATH . 'application/modules/admin/controllers/module' .'/'. $this->uri->segment(5).'.php'; $path_to_file_lang = FCPATH . 'application/modules/admin/language'.'/' .'english' .'/'. 'module/'. $this->uri->segment(5).'lang.php'; $path_to_file_view = FCPATH …

Member Avatar for pixelsoul
0
3K
Member Avatar for Rizi004

Hello Everyone, i have table that have some code list if user enter same code from 2 different systems and enter at the same time both user's get data, what i want is the first one will get the data the second one will only see the message that this …

Member Avatar for rubberman
0
196
Member Avatar for adebayo23

Please I have a project that looks like this http://www.businessdictionary.com/ , whereby i can create a search field which search for every topic/word in my database and displays it on a page like you have it on the url above. I would appreciate if anyone can help with this. Thanks.

Member Avatar for rubberman
0
155
Member Avatar for rameshrock

Hello friends, I am the beginner of php developer and i have the Directory module project. i have form of directory module with state , city and business type. while i submit the form then display the result in pagination wise and also fetch the data with pagination wise. So …

Member Avatar for rubberman
0
95
Member Avatar for Stefce

I uploaded the files into my hosting server and im getting this error when i want to open my site what is the problem ? Im using `index.php` but i think that should not be the problem ?

Member Avatar for Stefce
0
205
Member Avatar for maminya.aka

This my form `<form enctype="multipart/form-data" action="upload.php" method="POST" > <table> <tr> <td>Name :</td> <td><input type="text" placeholder="Name" id="text3"></td> </tr> <tr> <td>Chose File : <input type="file" name="image" /></td> <td> <input type="hidden" name="MAX_FILE_SIZE" value="2000000"/> </td> </tr> <tr> <td></td> <td><input type="submit" value="upload"/></td> </tr> </table> </form> ` code to upload image <?php include ("koneksi.php"); // error_reporting(E_ALL …

0
60
Member Avatar for harishprakash
Member Avatar for iamjin100

I am trying to insert data on my database, but when i do, it says UNDEFINED INDEX HTML code here <form action="insert.php" autocomplete="on"> <h1> Sign up </h1> <p> <label for="username">Your username</label> <input id="username" name="username" type="text" /> </p> <p> <label for="emails" > Your email</label> <input id="emails" name="emails" type="email" /> </p> <p> …

Member Avatar for Alicera Nz
0
406
Member Avatar for riwakawd

I am having trouble with unserialize method does not seem to work for my codeigniter project. What is the best method to unserialize with codeigniter php. I get a error A PHP Error was encountered Severity: Notice Message: unserialize(): Error at offset 67 of 139 bytes Filename: extension/model_module.php Line Number: …

Member Avatar for pixelsoul
0
384
Member Avatar for AntonyRayan

<div class="heading1"> <h3>Search by keyword</h3> </div> <div class="items"> <div class="item"> <form method="post"> <input type="text" class="css-input" name="search_key" id="search_key" placeholder="Search here"> <input type="submit" name="search" id="search" class="myButton" value="search" > </form> <div class="clear"> </div> </div> </div> This is my search keyword code: If I give any keyword it should search and display the particular …

Member Avatar for rpv_sen
0
107

The End.