39,326 Topics
| |
Hi all, I have trouble in updating my data using update query in which i need to update the a particular student id.Currently in my database table, I have the attendance table below and i need to update it using php update statement. ID Date 143 1/1/10 143 2/1/10 143 … | |
I am fairly new to php but i do have some knowledge of it im justnot sure how to code what i want. if anyone can give me some idea of what code i need i'd really appriciate it :) anyway photo names will be uploaded to database with a … | |
Hi All, What is the importance of adding a favicon. I recently added a favicon to my site, just because I had it as an action item to do. Does it really affect your Search Engine Rankings, etc. or is it only a part of creating brand value? | |
I need some help with inheritance in php. The code below does not produce any output. [CODE] Class Father{ var $car; Function inherited(){ print $this->car; } } Class Son Extends Father{ Function __Construct(){ $this->car='Benz';//I'm assuming here that car is still a property of father. } } $obj= new Father; $obj1= … | |
Hi Guys, I am building a social networking site that is dedicated to nightclubs and night events. Among other tables, I have a users table, events table and establishments table. I am really intrigued with how Facebook in particular is able to query and return matches of not just users … | |
Working with some OOP, I had an error that I have now traced to inistantiation of a class when the file in which the class is contained is included in any other file. Is this the default/normal behaviour of php, and how do I get myself out of this? I … | |
I've been researching this all day, and am having trouble finding something that works. I have installed and used Sphider (PHP/MySQL), and it crawls my site successfully and gives me the URLs and I can do a search for any text on any page, but it doesn't pick up the … | |
I'm currently developing a domain whois lookup script in PHP. I want it to display a snapshot of the homepage of the searched website. Moreover, I would like to get this script to display Google PageRank. Please, does anyone know how to incorporate these features into my script? I would … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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] | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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(); … | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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; … | |
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 … | |
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 … | |
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 … | |
can anyone provide compleate source code????..including userinterface..pls.. | |
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 … |
The End.