39,326 Topics

Member Avatar for
Member Avatar for harishprakash
Member Avatar for admins
Member Avatar for rpv_sen

Hi I am having two textbox, textbox1 is having autosuggest feature. i want to display related value based on textbox1 value. can any one pls help me. i collected the code from internet **Output Example** Report Name : PHP Report Version: It has to display the Verison from the database. …

Member Avatar for rpv_sen
1
461
Member Avatar for AntonyRayan

how to change the password for already existed user in php can anyone give me the sample code?

Member Avatar for AntonyRayan
0
293
Member Avatar for sandeepgkumar
Member Avatar for AntonyRayan

How to show multiple pictures in between a period of time. Can anyone give me with example?

Member Avatar for AntonyRayan
0
112
Member Avatar for harishprakash
Member Avatar for Priti_P

Hello, I want to fetch database table in csv file format. I tried but in my output file every fethced line is getting printed on new line. code is as below <?php $host="a.b.c"; $uname="root"; $pass="test"; $database ="TEST"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); // Fetch Record from Database $output = ""; $table = …

Member Avatar for Priti_P
0
224
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
191
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
869
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
323
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
150
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
118
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
175
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
431
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
351
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
203

The End.