39,320 Topics

Member Avatar for
Member Avatar for rswathi

Hello to all, I need your help,,,I m beginner of the php... i have to generate a user id for register users & it depends upon the batch field,, <option <?php if(($batch)=="1983-86")echo "selected";?>>1983-86</option> <option <?php if(($batch)=="1984-87")echo "selected";?>>1984-87</option> <option <?php if(($batch)=="1985-88")echo "selected";?>>1985-88</option> <option <?php if(($batch)=="1986-89")echo "selected";?>>1986-89</option> i need to select batch="1983-86" …

Member Avatar for simplypixie
0
170
Member Avatar for lobebe

I have this code [ICODE] Facilities: <?=$Product->facilities;?><br /><? } ?>[/ICODE] It's display result like this: [B]Facilities: One, Two, three[/B] Is there a way i can make it display in a [B]tabular form[/B]? I have check the databse and it display like Facilities: One, Two, three Thank you in anticipation.

Member Avatar for lobebe
0
96
Member Avatar for Ingska

Hi! I have some forms that is sendt to me by php mail() a few days ago these where working just fine, but suddenly yesturday i stoped recieving the emails. There ate two different types of these forms one that is connected to a mySQL server, and one that is …

Member Avatar for Stefano Mtangoo
0
166
Member Avatar for tanu963

I'm having trouble while creating FaceBook style Wall. I'm not getting how to create database and post status or images or link to database Please help me to create FaceBook style Wall Following is my wall page code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> …

Member Avatar for Stefano Mtangoo
0
271
Member Avatar for mayreeh

please someone give me a code to delete a file in a folder, ie one code to be used on a variety of file deletion

Member Avatar for Stefano Mtangoo
0
110
Member Avatar for uBup

Hello! I am making a page where users can create a profile, but I fail everytime I try to make a update profile page. It won't take my codes, and it doesn't show errors (i have error reporting on). I have very short of time to finish this project, and …

Member Avatar for Stefano Mtangoo
0
248
Member Avatar for daniel36

i need to develop page to show the data in multiple pages.page numbers should be shown at the bottom. on click on page no. the website will show data of that page like google search.probably it is called penigation.

Member Avatar for Stefano Mtangoo
0
87
Member Avatar for davy_yg

contact_us.php [CODE] <form action="contact.php" method="POST"> <table border="0" cellpadding="2"> <tr> <td>Name : </td> <td><input name="nama" type="text" value="" size="30" /></td> </tr> <tr> <td>E-mail: </td> <td><input name="email" type="text" value="" size="20" /></td> </tr> <tr> <td>Your message : </td> <td><textarea name="comments" cols=30 rows=6></textarea></td> </tr> <tr> <td></td> <td><input name="send message" type="button" value="send message" /> </table> </form> …

Member Avatar for Stefano Mtangoo
0
136
Member Avatar for mayreeh

below is my code.. bt cant delete the file, help please...y cant it delete? function deleteFile($id_file) { $infoFile = $this->getFileInfo($id_file); $folderPath = $this->folderPath($infoFile["id_folder"]); if (substr($infoFile["file_name"], 0, 3) == ".ht") { $this->error = 6; return false; } if (!file_exists($this->root . "files" . $folderPath . SEP . $infoFile["file_name"])) { $q = "UPDATE …

Member Avatar for mayreeh
0
123
Member Avatar for drelix01

I have a Simple file browser on my php, and everytime I enter Open index.php file in my localhost, the file appears, but when I upload them in my server, the file cannot be seen, I made all the file permissions to 777 and still no luck... I think i …

Member Avatar for drelix01
0
116
Member Avatar for furlanut

I have a simple form which echoes data from db. when name typed. It works fine when name is typed and submit pressed. But I see that even when no name is selected or, when existing results on screen, pressing submit brings up ALL names from table not just row …

Member Avatar for furlanut
0
119
Member Avatar for jacksantho

Hi, I was trying to import the excel values in mysql DB. While trying, am facing this error. Please help me out: [CODE]Fatal error: Call to undefined function mysql_real_espace_string() in E:\xampp\htdocs\read.php on line 49[/CODE] CODING: [CODE]<?php ini_set('memory_limit', '16M'); set_time_limit(0); require_once("E:/xampp/htdocs/phpexcel/Classes/PHPExcel.php"); $inputFileName='./xls/test_data.xls'; /** Identify the type of $inputFileName **/ $inputFileType=PHPExcel_IOFactory::identify($inputFileName); /** …

Member Avatar for jacksantho
0
991
Member Avatar for nestkojex

Hello guys, i created a form and i want to form to serve a dual purpose of sending data to my database contacts and and another database for newsletter. so the task is as follow: one form serving two databases at one click on submit. i need your help. thank …

Member Avatar for diafol
0
96
Member Avatar for lobebe

I want to derive a table from this code: [CODE]<? if($Product->facilities!=NULL){ ?>Facilities: <?=$Product->facilities;?><br /><? } ?>[/CODE] How can i do that? it is a list.

Member Avatar for diafol
0
44
Member Avatar for Amr87

Hello Everyone, I`m Using this code to pass javascript associative array to php using jquery ajax [CODE]function install (loc) { var mydata = []; //lightbox(); switch(loc){ case "step1": { mydata['step'] = '1'; mydata['SiteName'] = $("#siteName").val(); mydata['SiteDesc'] = $("#siteDesc").val(); mydata['AdminEmail'] = $("#adminEmail").val(); mydata['username'] = $("#username").val(); mydata['password'] = $("#password").val(); } break; case …

0
89
Member Avatar for bouhbob

Hi there, I've made this page in html: [url]http://www.greenbeanbaby.com/retailers.php[/url] with drop-down menus that work. But when I try to make it dynamic for my client to update it, I'm stuck! The drop downs don't work. Here is the code I'm using: [CODE]$r=mysql_query("SELECT * FROM retailer"); $varloop=1; echo "<div id='wrap'>"; while(list($idr, …

Member Avatar for diafol
0
173
Member Avatar for Nahiyan

Hello, I want to fetch data from a MySQL database's table and order the selected data by date. Which data format is ordered most precisely by MySQL? I also want the date format to be unique. Please express the format just like PHP's one, example: h:i:s. Thanks, Nahiyan

Member Avatar for diafol
0
118
Member Avatar for Metophase

Hey looking over sessions was confusing the hell out of me but I found my solution again on this forum... now I have a session that as a time out and 'logs out' the user after 10 mins so next time they try do something it takes them to the …

Member Avatar for veedeoo
0
201
Member Avatar for klemme

Hi all, This is a ? about Ajax, PHP and form processing. When I submit the form further below, nothing happens! I didnt set the form-"action" to anything. I left it out, to make the form submit to the same page, so I can validate on the same page too …

Member Avatar for McLaren
0
224
Member Avatar for bbman

Hey everyone, I have the following varaibles: $_POST['month'] $_POST['day'] $_POST['year'] I need them to be put into a string format such as '2012-02-15' (Year-Month-Day). Could someone please help me do this in php? I've tried a few times but can't connect them with the "-" successfully. Thanks for your help.

Member Avatar for bbman
0
170
Member Avatar for dmservers

Hello all, I've ran into a bit of a problem and I can't figure out how to get out of it. Basically, I have an autosuggest input field on my website and I would like to get data from 2 mysql tables. It is similar to yell.com where you search …

Member Avatar for cwarn23
0
178
Member Avatar for diafol

Hi all, been dipping my toe into OOP and am getting on OK, but I'm hitting a bit of a wall with a current project. classes: db (a PDO extended class) User Timetable The db is just a few shorthand ways of running PDO The User is just for handling …

Member Avatar for diafol
0
214
Member Avatar for Helinxed

Hello brows,I'd like a little help. I'm making a web online game,then in the Map system. I need get coords of players that is around. Get in Database something like that: [CODE] <?php $result = mysql_query("select * from mapa where x_coord > '5' AND x_coord < '10'"); while($row = mysql_fetch_array($result)) …

Member Avatar for diafol
0
80
Member Avatar for wolfgangcs

Trying to make a short to do list. show item to do-->click who you are $who and $item sends to top to show that item no longer there, but the rest are [CODE] <? echo "Here is the list of things that need to be done!"; echo "<form>"; while($row3 = …

Member Avatar for jmichae3
0
256
Member Avatar for siva28

Is PHP using to develop BLOg based that is CMS site or not? please reply...

Member Avatar for Stefano Mtangoo
0
99
Member Avatar for saybabs

I need someone to please advice me, which one is better in designing a website, dreamweaver or the CMS(Content management system.) Thanks for your usual contribution.

Member Avatar for Stefano Mtangoo
0
90
Member Avatar for oddcarout

I have searched to try to find out what is going on and I can't seem to figure it out. I am trying to follow an online tutorial for a simple rating system and am having trouble. here is the code [CODE]<?php include 'connect.php' $id = $_GET['id']; ?> <form action="rate.php" …

Member Avatar for Stefano Mtangoo
0
403
Member Avatar for naui95

Help, I have a big probem. I wanto to read data from an mysql table and then write this data into a form so that the user can update this data. The code could seem somethin like this, but it doesn't work [code] <?php include 'complete.php'; $user_name = "exa"; $password …

Member Avatar for naui95
0
326
Member Avatar for mwenyenia07

i have three texts namely [B]price[/B],[B]quantity[/B] and [B]total[/B]. i want the value of [B]total[/B] to change with change in [B]quantity[/B] i.e [B]total[/B]=[B]price[/B]*[B]quantity[/B]. each time the value of quanity change, the function multiplies it with price and displays the quanity. can somebody send me a javascript code that can do so …

Member Avatar for broj1
0
471
Member Avatar for lps

Based on my understanding, wp_enqueue_script is the function to bind the script to the head section while wp_enqueue_style is to bind CSS to it. My question is: is there any way to bind a php to head without using include?

Member Avatar for lps
0
109

The End.