39,320 Topics

Member Avatar for
Member Avatar for ans2007kumar

I have created a register page which send the data of user from that page to my query processing page. [b]Problem is some of my database table field takes integer value but through post i get only string values i try to change them through type cast but not good …

Member Avatar for akshatgoel
0
91
Member Avatar for Emzielou90

I have a site hosted by zymic and everying has been running fine until the file manager went down so i've bin trying the FTP and i edited my site and when i re uploaded it i found this message Parse error: syntax error, unexpected ',' in /www/zzl.org/a/b/s/absolutelydoctorwho/htdocs/index.php on line …

Member Avatar for Emzielou90
0
456
Member Avatar for natchattack

I wasnt sure whether or not to put this in the database section but i think the problem is in my php code so i thought it would be best posted here. I intend to use this as a simple search script. I want to compare what the user enters …

Member Avatar for natchattack
0
145
Member Avatar for bjeffries

I have this email newsletter field that works. I just dont want the person to be directed away from the page they are on when they submit the form. Is there a way to process the form then have a window pop-up saying: Thank you for submitting $email! My HTML …

Member Avatar for bjeffries
0
323
Member Avatar for alfredferg

[CODE] $values=array( "Jan" => 110, "Feb" => 130, "Mar" => 215, "Apr" => 81, "May" => 310, "Jun" => 110, "Jul" => 190, "Aug" => 175, "Sep" => 390, "Oct" => 286, "Nov" => 150, "Dec" => 196 ); [/CODE]

Member Avatar for diafol
0
78
Member Avatar for nyler01

Hi, I'm new in php and i need a code that show data from the database and limit it to only 5 results per page and if there are more than 5 results, the other results will be in page 2 and the other 11-15 results are in page 3 …

Member Avatar for diafol
0
88
Member Avatar for youlichika

I have ordered yahoo news rss, I use simplepie to separate the news items like title, content, url, date... and then insert them into database. I catch the source every 2 hours with cron. How to judge RSS source, if there has new then UPDATE into database? I mean if …

Member Avatar for mschroeder
0
93
Member Avatar for johnbo100

Hi All I am building a web and desktop application where the user fills in a web form that is posted to a MySQL database. The database info is then collected by a desktop application for easy retreival. I know that my clients will want to have a web form …

Member Avatar for diafol
0
135
Member Avatar for koolander

Hi all! I have an issue with the mod_rewrite and i hope someone here can help me out!?! :) My webhosting company does not support rewritemap and i really need to have SEO friendly URLS. I can't pass the name of the page directly since it can contain characters like …

Member Avatar for koolander
0
112
Member Avatar for gunjannigam

I have a php page, which has different forms. One of my forms contains a table of data. I want only this form (not the complete page) to be updated in a fixed period of time. How could I do this?

Member Avatar for diafol
0
72
Member Avatar for prem2

Dear all, I am confused about the output of the below programs .When i use the scope resolution operator i am getting the below error. [code] <? class MyClass{ public $variable_value="This is a variable value "; function display(){ echo "Display Function \n"; echo $this->variable_value; } } MyClass::display(); //$obj=new MyClass(); //$obj->display(); …

Member Avatar for prem2
0
248
Member Avatar for imti321

what is wrong here? [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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php session_start(); $user = $_SESSION ['username']; if ($user) { //user is logged in if ($_POST['submit']) { $oldpassword = md5($_POST['oldpassword']); $newpassword= md5($_POST['newpassword']); $repeatnewpassword = md5($_POST['repeatnewpassword']); //connect db …

Member Avatar for imti321
1
3K
Member Avatar for chrishea

After answering a lot of questions on this Forum, I found that many common questions keep coming back because newbies don't search prior to posting and we don't have a standard reference to send them to. My New Year's resolution was to create a FAQ to provide the best possible …

Member Avatar for imti321
0
186
Member Avatar for bbinais

i need to validate my username and must not be blank.. i use this code.. but its not working... i'm getting this error.. [COLOR="Red"]'Object not found! The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the …

Member Avatar for diafol
0
229
Member Avatar for left19

I am trying to get a pdf file from the server using php. The file is pdf and it is not corrupt, but when I use this code adobe says its a corrupt file. I just want to show a file to users like a regular link <a href="123.pdf"> this …

Member Avatar for left19
0
127
Member Avatar for doctorphp

Hi everyone. I am starting to learn AJAX and JavaScript and I am trying to make a popup login form and I am having trouble posting the data entered in the textboxes. It is fine when I post one piece of data but when I try to post two I …

Member Avatar for hielo
0
2K
Member Avatar for gunjannigam

Hi, I am a novice programmer at PHP. I want to redirect my webpage to another webpage. The problem is that First I want to output a file as an attachment and then redirect the web page I have used this code to output the attachment file [CODE] header("Content-Disposition: attachment; …

Member Avatar for gunjannigam
0
149
Member Avatar for adnank

Hello. I have some problem with a hanging text. Site is powered by Joomla, custom template. Long text should be enclosed in fixed height div, but it actually is there and also duplicated on top of a page. Here is sample [URL="http://trueenterprisesinc.com/terms-of-use.html"]http://trueenterprisesinc.com/terms-of-use.html[/URL]. I hope somebody has some idea how to …

Member Avatar for adnank
0
111
Member Avatar for waniejjang

Hi, I'm really new to PHP and programming I can say. I really need your help. Basically I'm doing a dynamic dropdown menu using PHP and MySQL and when user select the company name at dropdown, then email address will be populated at new textfield. The company table consists of …

Member Avatar for waniejjang
0
4K
Member Avatar for paolonewage

Hello, I am trying to recall the $username in the private page (e.g. Welcome $username to your private page) and I think I'm having some difficulties. Actually I made working once before Christmas but now It drives me crazy. It's an assignment for the college. this the URL: http://www.dcs.bbk.ac.uk/~pparod01/index.php if …

Member Avatar for hielo
0
183
Member Avatar for arunwrc

can anyone provide compleate source code????..including userinterface..pls..

Member Avatar for chrishea
0
100
Member Avatar for nasablast

When executing the code below, I am getting the error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given. From my understanding this would imply that mysql_query is returning false meaning the query is failing but I am not sure why.. Any ideas? [CODE]<?php include 'global.php'; $case=$_GET['case']; $query=" SELECT …

Member Avatar for nasablast
0
98
Member Avatar for cubalibras

Hello, I am having a problem displaying database query in a DIV. I can display the data without issue using this code: [CODE]<?php if (isset ($_POST ['submitted'])) { include ('connect_php_projects.php'); $category = $_POST ['category']; $criteria = $_POST ['criteria']; $data = mysql_query ("SELECT * FROM discipline WHERE $category LIKE '%$criteria%'"); while …

Member Avatar for diafol
0
2K
Member Avatar for fantasma

I there everyone. I've been wondering if someone could help to glue up my broken head with this one. I've got some "labels" which show up, dynamicaly, the data coming from mySql through PHP. In those labels I've got 4 buttons for uploading an image, deleting the respective entry, editing …

Member Avatar for fantasma
0
191
Member Avatar for arshadshaikh

Hello every body, Can any body help me for the 'video thumb' issue. I am using Embed code provided by site like youtube and vimio. But when I use youtube i can get and show the thumb image of that video. But I can not display or get the thumb …

Member Avatar for diafol
0
219
Member Avatar for crenfrow

Hello, I am trying to make a contact us form for a website. The form and accompanying php should work, i think. I am new to php but know how to program in general. The form and verify.php are below with some modifications for security. contact.php snippet [CODE] <form method="post" …

Member Avatar for pritaeas
0
137
Member Avatar for tcollins412

Ok, i have a couple of questions. I am learning php and i built a log in and a register page. When u register it auto-increments the id row and the user name goes to row "user" in a mySQL database. now how would i make it so it says …

Member Avatar for TySkby
0
141
Member Avatar for punithapary

Hi, I created some web pages using php.I copied those pages from my system and paste it into FTP afterthat if i run my website it wont show any design which is in my page.If i copied my html pages and paste that into ftp that time it was working.I …

Member Avatar for chrishea
0
114
Member Avatar for Imratzio

Hi all, I have finished my php for dummis book and have few errors that I could not fix. I show u my first example. [CODE]<?php /* Program: showpets.php Description: Displays all the pets in a category. Category is passed in a variable from a form. The Information for each …

Member Avatar for Imratzio
0
137
Member Avatar for mrcniceguy

i have table users in my database))the host of my website is in US and i am currently leaving in Russia. so when i display date/time in web page it shows time as if i am in US also my clients in different countries they are experiencing the same problem.\ …

Member Avatar for mrcniceguy
0
79

The End.