39,402 Topics
![]() | |
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? | |
Why doesn’t the following code print the newline properly? | |
i installed wampserver yday and it worked fine when i typed in localhost in the browser. but today when i type localhost to see if apache was running without a problem - it displays the root directory that is the folders contained inside the www directory in a page named … | |
I wrote a small program in php for a website this code allows a user to upload a file and it emails it to whomever we declare as the recipient. This code works great on my windows server but when I put it on the Linux based server in fails … | |
Hi, I had changed an image to string using base64_encode() function. In now want to convert this string back to an image for saving it into a folder. Please help.... Jino | |
I have four forms one --> two ---> threee -----> four I used session here... when i go from one --- > the code works good then when i go from two ----> three also works good.. but in the third page, when i click back <----- and then from … | |
i have a web in which after member login, is able to publish blog post and only logged in members can comment. Now my problem comes in notification. 1.I need after someone comment then to send notification to the owner of the post. 2.Also if other members commented on the … | |
Hi, My problem is possibly easy to fix, I just can't see what's wrong. The following code outputs rows with product images, description AND a [B]textarea[/B] to write some comments to each of the rows. [CODE]$output[] = '<td align="center" width="100"><textarea name="comments" cols="35" rows="5">'.$_SESSION['comments'].'</textarea></td>';[/CODE] And this is wrapped in a form … | |
I see this question come through here quite frequently and I just happened to finish another login script so I figured I would post it and you can take what you want from it. If you have any questions, feel free to ask. [CODE=php] <?php session_start(); //include pdo mysql db … | |
[code] <?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } /* // Create database if (mysql_query("CREATE DATABASE admin",$con)) { echo "Database created"; } else { echo "Error creating database: " . mysql_error(); } */ /* CREATE TABLE `admin`.`payment_invoice` ( `CompanyName` VARCHAR( 100 ) NOT NULL … ![]() | |
<?php function list_cart($cart) { if (isset($cart)) { print("<table border='1'><thead><th>Foodlist_ID</th><th>Description</th><th>Price</th> foreach ($cart as $idx=>$num) $item=get_stock_item($idx); extract($item); print("<tr><td>$indx</td><td>$title</td><td>$price</td><td>$num</td></tr>"); { print("</tbody></table>"); { else print("<p>The cart is currently empty</p>"); } function generate_order($cart) { if (isset($cart)) { print("<table border='1'><thead><th>foodlist_id</th><th>description</th><th>Price</th> $total=0; foreach ($cart as $idx=>$num) { //Obtain details of cart item $item=get_stock_item($idx); extract($item); //Check that enough … | |
I am having trouble with a certain query. The problem is that I am using an INNER JOIN with two tables that both have a column called "id". I want the query to return ALL the column names but in addition I also want table1.id to be returned as id1 … | |
i have a website [URL snipped] which need a forum PHP code.. i am interested to start a forum on my website.. someone please post me a complete php code for that. ![]() | |
How to remember a radio button selection in the multi form ..? [CODE] <input type="radio" name="yesrno" id="radio" value="yes"<?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> /> <input type="radio" name="yesrno" id="radio" value="no" <?php if($_SESSION['rad_radio']) echo 'checked="checked"'; ?> /> [/CODE] It keeps on appear the selection "NO". Any Help ? Thanks | |
I am failing to connect to my database , also i cant update items into my database, below is the code i am using HELP | |
I have images in the database, and I am looking to resize images whilst keeping the quality. This is link one, without image resize [URL="http://horble.com/test/test.php"]http://horble.com/test/test.php[/URL] This is linke two, with image resize. [URL="http://horble.com/test/test1.php"]http://horble.com/test/test1.php[/URL] As you can see, the resize image distorts the image, and for the image already displayed that … | |
Warning: require_once(../../GrBx/cw3/admin/application.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\GrBx\cw3\admin\ProductForm.php on line 2 Fatal error: require_once() [function.require]: Failed opening required '../../GrBx/cw3/admin/application.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\GrBx\cw3\admin\ProductForm.php on line 2 Can someone please explain this error message? I am using Cartweaver and I'm trying to change it in a … | |
Hi all! After a recent upgrade to PHP 5.3.1, I cannot get my apache http server to start. The only way I can seem to get it started is by commenting out the lines that make PHP work. Thinking, naturally, that the recent PHP was at fault, I reinstalled it. … | |
hello everyone.. im student from indonesia n im newbie ihave a problem n i need your help ihave data from table, like that: TGL || Tahun || semester || Keterangan 2010-1-1 || 2010 || Genap || LIbur tahun baru 2010-1-2 || 2010 || Genap || LIbur UAS 2010-1-3 || 2010 … | |
can anyone offer some help on this matter i have 5 session arrays and i want to merge all of them. however these session arrays are take from several multiple select list. while the code that i have done so far works fine, it has one small problem. in the … | |
hi everybody, I am doing pagination. if I set the limit to 5 and the no of result is 30, then 6 pages is shown as the overall page). however, only the first 5 results is shown. How should I change the code? many thanks [CODE] <?php /* call this … | |
here's my code [CODE] $sql=mysql_query("insert into guest (fname, lname, address, contactno, emailadd) values ('$fname', '$lname', '$country', '$contact', '$mail')"); $search = mysql_query("select * from guest order by code DESC limit 1"); $row = mysql_fetch_array($search); $lastnum = $row['code']; $number = $_POST["Rooms"]; $count = count($number); for ($i=0; $i<$count; $i++) { mysql_query("Insert Into rent … | |
ive already search in google and yahoo but i don't know how to add that code to my code. here's my code in displaying a data in the table [CODE] $result = mysql_query("SELECT * FROM rent where status = 'pending' order by cno asc"); $count = mysql_num_rows($result); <table border='1' cellspacing='0' … | |
Hi everyone haven't posted for very long time. I' m having problems with the file_get_contents function, this function is present in 2 or 3 places in my application and opens a number of files. Now it always worked until recently when I realized that for some files, not all of … | |
can any1 tell me whats wrong with my code.i cannot edit my data [code=php] $sql=caseQuery("select dt from update_dt where dt_id=1"); $row=mysql_fetch_array($sql); $dt=$row["dt"]; <div style="position:absolute; top: 250px; left: 500px; width: 4639px; height: 109px;"> <fieldset style="width:20px"> <legend ><b><NOBR>Edit Date</NOBR></b></legend> <form name="frm" action="location.php" method="post" > <table width="250" border="0"> <tr> <td> Date </td> <td><input … | |
hi, how can i access the .htaccess file. i have been created a .htaccess file and write the code wat i want. this is working fine when i should type url with correct formate which i mention in the .htaccess file. i want to redirect page automatically.. plz give me … | |
Hi friends , I want a help from you people . I totally confused with PHP Pagination , here itself i posted a thread for help on Pagination but still i am confused . Please help me First << [B][COLOR="Green"]1[/COLOR] 2 3 4 5 6 7 8 9 . . … | |
Hi My problem is that I want Other textbox tobe deactivated when page loads, but when user selects Other drop down box of Company Certification: then Other textbox should be activated. [URL="http://www.oemxtrade.com/index.php?main_page=create_account"]Please see here [/URL] Here is the PHP code which is displaying this page [CODE] <?php echo "<select name=\"company_certification\">"; … | |
hello, i have used the following code for file upload: [CODE=php] $id=100; $upload_dir = "images/"; do { $photo = $_FILES['photo']; switch($photo['error']) { case UPLOAD_ERR_INI_SIZE: $err2 = "Server doesn't allow the image size.. Please select a smaller one.."; break 2; case UPLOAD_ERR_PARTIAL: $err2 = "The image was not transferred successfully.."; break … |
The End.