39,316 Topics
| |
How do I find out the number of parameters passed into function? | |
hi im working on a search field in drupal for a system that maintains student information. i have one interface that has the search student info box and the other which is search results i wrote some php code to search the and there are no errors yet still its … | |
getting this error: Parse error: syntax error, unexpected T_VARIABLE in index.php on line 3 here's the code: [code] <?php include("budget.php"); include("user.php"); ?> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div id="container"> <a href="user.php?action=register">Register</a><br/> <a href="action.php?function=transaction" id="add"><img border="0" src="img/plus-icon_small.jpg" alt="+" width="30" height="30"/> </a><br/> <?php if(isset($_GET['month'])) $month = $_GET['month']; else $month … | |
Hey Guys I have been playing around with the google calendar API using the Zend Framework- Gdata library. I have had mild success in using this and have stumbled accross an issue I beleive is to do with passing variables through a URL. Basically, I can create several calendars and … | |
what is wrong with this form????? i can see the name and email but not the msg?? [code] <?PHP echo $_POST["name"]; //works echo $_POST["msg"]; //nothing prints out ?> [/code] [code] <form method="post" action="form.php" style="margin:0; padding:0"> <b>NAME:</b><br> <input name="name" type="text" class="form" id="name"> <br> <br> <br style="line-height:8px"> <b>E-MAIL:</b><br> <input name="email" type="text" class="form"> … | |
I need to select certain the rows from a table but need to show only just five of them. For example select * from table where user = $user; but i need only top five results | |
HI my project involves reverse geocoding and therfore i ve embedded the google maps api in my web site and am using their geocoder to get location names from coordinates. The geocoder and its functions are written in php. Now the problem is that i need to store the values … | |
Hey. I'm having an annoying problem, that I can't seem to figure out. In my page when I echo long messages, I do an in-code linebreak at around 100th character, to keep at all in my view. But when I do that I also get the line breaks and indents … | |
Hello Guys, I have found this counter, but i want it to refresh the number every 1minute, so for example it says "19" and the end user keeps refreshing the page, he wont see the number changing untill its been 1min. [code] <?php function randomGen($min, $max) { // setup our … | |
I have this table forum and topic and i want to query forumname, description, total topics in the Forum idk how to do this i tried an sql statement like this SELECT f.forumname,f.forumdesc,max(t.forum) as total_topics from Forum as f INNER JOIN Topic as t WHERE f.forumid = t.forumid; of course … | |
Hello everyone I have created a basic chat window in that i used textarea to enter message but by default it is taking a tab i.e., initially cursor isone tab ahead instead of being at initial position of textarea . Can anyone help me?????? | |
here is my code ajaxtest1.php <!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> <script type="text/javascript"> function getXMLHttp() { var xmlHttp try { //Firefox, Opera 8.0+, Safari xmlHttp = new XMLHttpRequest(); } catch(e) { //Internet Explorer try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); } catch(e) { try { xmlHttp … | |
I have a php site with around 12 pages - where I wish to put a nice song from the index to the all pages without be interrupted by a click outside from index page. How I have to do or where I can find the script? Thank you for … | |
Hello All, Is there a way to print the http header? I want to print realm parameter from the header. Regards, | |
Well I have 3 Database tables I am working off of 1 is for Users, It contains IDs, Names, ect, ect 1 is for the skills they are trained in, it has 2 columns, One for skill_id and one for Description (portal_userSkills) The last table is a joiner it joins … | |
Am using wordpress for web hosting. Stil now am using mysql database. But now i want use oracle is it possible or not please reply me any one... Thank you.. | |
hello how to open resume in php or javascript or ajax or how to open .doc file in php or how to read .doc file in | |
hi, I want to write one file which is .html to .php extnsion right now i have this [CODE]RewriteRule ^(artist.html*)$ /artist.php?%{QUERY_STRING} [L] RewriteRule ^$ /artist.php?%{QUERY_STRING}[/CODE] but this effects all html files any help please | |
Hi friend.I m faraz here for the first time. I m new in PHP and doing some basics. I m writing small scripts. I have prolem with $_POST varivle. I wanna get name from the form and print it on the screen. But my script iz not working. Plz check … | |
Hi, I just installed Karmic Koala Ubuntu. Can I have PHP4 and PHP5 runing on my machine at same time? I ask this question because, some web applications use PHP4 others PHP5. If not, do I have to have 2 separate computer? If it is possible, how do I do … | |
Hi To All, I want import contacts from gmail,yahoo,rediff,hotmail,e.t.c.., to my site.And inivte the friends[Contacts]. Thanks in Advance... | |
I am doing a system in drupal - and i am also coding in php in the drupal pages i create to connect to a database and display results for various requirements. How do you redirect a certian page to another page in drupal? do we use the node number … | |
Hi there, I'm setting up a multiple outlet online food ordering website and have a question regarding delivery charge options... Each individual outlet is going to have different delivery options, from FREE Delivery to £X cost. I simply would like to know how I include a simple piece of code … | |
How do you call a constructor for a parent class? | |
I'm stumped with a somewhat complicated 'lookup table' situation. I've tried many different methods to output the data I need (and in the order I need it) but I think I'm just going around in circles. Basically I'm trying to output a <select> dropdown form element, with serveral different <options> … | |
I want to upload files through a web application and it works as long as the files are under 8 mb. But anything greater gives the following error in the Apache error log: [INDENT]POST Content-Length of 8593520 bytes exceeds the limit of 8388608 bytes[/INDENT] In php.ini I have: [INDENT]file_uploads = … | |
If anyone is interested I have put together a list of common MIME types formatted in CSV and XML You can get them at [url]http://www.cake-spoon.com/pdt/2010-03-12/csv-list-of-mime-types[/url] or via the attached .zip folder containing both =) | |
Hi, I want to create a scrapbook like orkut or in facebook. I am taking a text area on which the user have to write the text. The text can be any thing like "text with special characters as well as html codes. This text will be stored into mysql … | |
Explain the ternary conditional operator in PHP? |
The End.