39,402 Topics
![]() | |
hi all, i have written a code in php for inserting and deleting multiple records using check boxes."test" is the database name. "emp" is the table name which contains the following records in my database. empno empname desig 1111 raju pilot 1112 ram chef 1113 ramu doctor 1114 paul engineer … | |
Hi.. I want to run an exe file without saving from the server by clicking a hyper link. My code works fine with internet explorer .But with fire fox it showing save button . I used the following 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"> … | |
Hi, i am working on this project that using wordpress cms platform.. I am really frustrated right now to find way to remove the default avatar of wordpress site that being set up to user during registration process. As u know, when we are registering to a site which working … | |
hi all i have been inserting records in to database using php using the below program which is saved as "insert.php". but it is displaying the following error [B]Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\insert1.php on line 18 [/B] dont no what went wrong. can u tell me how … | |
Hi, i am a computer science final year student, i was thinking of creating an online voting/polling system,the system could include surveys as well. I really need some ideas in designing the system and any idea you send to me will be highly appreciated. | |
Need help with this. Parse error: syntax error, unexpected T_STRING in C:\xampp\htdocs\pixels\index.php on line 35 [code] <?php include_once ("config.php"); ?> <?xml version="1.0" encoding="utf-8"?> <!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" xml:lang="en-US" lang="en-US"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <link rel=StyleSheet type="text/css" href="main.css" > </head> <body class="main"> <div class="outer"> … | |
I need some help setting up the following full php script a well as DB available on request, 46 pages in text format. Basic requirements: These 2 files needs the export to pdf function [url]http://www.lifestyle-solutions.biz/jeanadmin/print-[/url] program.php?idprgramdet=40 [url]http://www.lifestyle-solutions.biz/trainers/print-[/url] program.php?idprgramdet=40 Basic requirements: 1) 2 exercises per page (exercise plus progress report block) … | |
Hi all. I have a dynamically generated HTML page using PHP. I create my PHP variables and then have them in line with my HTML like so: [CODE] <tr> <td align="right">Restaurant Subtotal</td> <td align="right"><strong><? $subTotal = getSubTotal(); echo money($subTotal);?></strong></td> </tr> [/CODE] I have a need to send the generated HTML … | |
I have a uload script that saves PDFs to the DB, and i have another page, where I want to read the PDF file, but the latter is not really happening.. AM I DEFINING MY PDF_DIR CORRECT: [CODE] define('PDFS_DIR', $_SERVER['DOCUMENT_ROOT'] .'includes/pdfs'); [/CODE] This is the read_pdf.php file: [CODE] <?php require_once("includes/config.php"); … | |
This is code for an internal forum, it works on my local server, but not the godaddy one i just purchased! phpinfo()s posted below: [CODE]<?php // forum.php :: Foro interno del juego.Version 1.0 define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; /* Este foro esta basado en el PHPBBs … | |
Hi, I want a script that will upload an image to a user's Facebook account. So far I have this code, but it's not working correctly. I seem to get an ID returned, but no image is uploaded to the profile: [ICODE] function do_post_request($url, $data) { $file= $data; $args = … | |
![]() | I have written this small test script: [CODE]<html> <body> <?php if ($_POST['amount']) { foreach ($_POST as $key => $in) { echo $key; echo "="; echo $in; echo "<br />"; } exit ('</body></html>'); } ?> Form output: <form id='transfer' method='POST' action='transfer.php'> <input type='hidden' name='touser' value="inge"> <input type='hidden' name='amount' value="1000"> <input type='hidden' … |
Hi, i am having problem uploading. [B]1.[/B] [CODE]<html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" name="submit" value="Submit" /> </form> </body> </html> [/CODE] [B]2. [/B][CODE]<?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo … | |
is there a code that will add the two values,just like membership fee plus activity payment and i want to appear the total in the total payment.thank u | |
Hi All, I am seeing that there is no way to retrieve more than 1 image from a mysql table? I have googled it, looked into 10's of websites.. no solution. How can i simply retrieve many pictures from a table,with the other columns if possible, please? and i also … | |
[CODE]1 2 3 8 9 10[/CODE] i want pass the value in 1 node and find the left node ex 2 then find left node 8 then find the left node 10 ..! how to possible bcoz i use the recursive function find the left node 10 but problem is … | |
I have coded some ajax recently but whenever I click the 'register' button, nothing actually happens. I worked about about an hour to check what's wrong with the code but I failed to find any error. My php file just displays out an echo and runs some code if required … | |
Hello, I am working in a joomla component.i have some uploaded videos in my PC and the name od the video in the database.how can i add a flow player and fetch the videos from the folder and play those videos in my joomla website ?? | |
I am having an issue with the WHILE LOOP variable being past via POST to the next page. The first page provides the query results for all the categories in which a user has provided a referral. When the user selects one of the listed categories, it is supposed to … | |
Hey! I have this script for Uploading PDF's to the DB. I tjecks if the document ends on .pdf - and excludes everything that doesnt - which is fine. [B]BUT I have set a size limit on 1 MB for uploading, and it seems to be working. BUT if I … | |
I'm new in wordpress. I'm using Medusa theme. but i can't set images in slider. please help me. | |
Hello. I have a small problem. I am working on a small website where people will be able to take quizzes for driving lessons. I take my questions and answers from a database. The problem is that i get the first questions and after i submit the answers, the next … | |
Hi, My problem is that I'm recovering data (which depend on what the user selected on a first page) from a SQL database for several language checked (also on that 1st page). I would like to create files for each one of the language selected. For now, I tried to … | |
Blank Screen on Step 2 of the Checkout Process in my PLAINTCART project ! checkout.php [CODE]<?php require_once 'library/config.php'; require_once 'library/cart-functions.php'; require_once 'library/checkout-functions.php'; if (isCartEmpty()) { // the shopping cart is still empty // so checkout is not allowed header('Location: cart.php'); } else if (isset($_GET['step']) && (int)$_GET['step'] > 0 && (int)$_GET['step'] … | |
I know 2 drop down list ajax and php without press submit button | |
i have created a html form page(1) and php page(2) to insert records into a database from the html form, when i insert the records from the html form and press the submit button the records don't get into the database but a page open with the php code i … | |
I have a problem in display or echo in php. what method should i follow if i the problem is with like this: example code: $email = trim($_REQUEST["email"]); if(strlen($email) < 1){ echo "0__notice__Email is empty."; } but the output should display only this part "Email is empty." only and not … | |
I'm a NEWBIE and I have been stuck on this for days. I have one table that has the following rows: rid = Referral ID category = Category subcategory = Subcategory rbusiness = Referred Business Name rcontact = Referred Contact Name etc.. I have created the form (referral_input.php) that allows … | |
Example...First table (category table) Ands Second table (sub category table).Drop down list is 2 box.1st drop down list in choose "Fruit Category" ,and then Fruit result show.2nd drop down list in choose "Banana subcategory",and then Fruit-->Banana--> Result show. These problem solve with ajax and php. These problem no press submit … | |
what is the difference between foreign key and joins? when to use foreign key? How foreign key works? and Is it better to use join rather than foreign key?.. can someone explain me this?... | |
I have the following code in send_email.php [CODE] <body> <?php // send mail code $name=$_GET["name"]; $email=$_GET["email"]; $message=$_GET["message"]; ?> Name : <?php echo $name; ?><br> email : <?php echo $email;?><br> message : <?php echo $message;?><br> <?php //$to = 'david_yg20@yahoo.com'; $to = 'garudamedia@localhost'; $subject = 'e-mail feedback'; ini_set('sendmail_from', 'admin@localhost'); ini_set('SMTP', 'localhost'); //ini_set('SMTP', … | |
Hi, i am trying to open a file in php but its not. 1. i saved a txt file, called welcome.txt welcome.txt content "welcome to PHP file" 2. then i wrote another file, "file.php". content is: [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] 3. "file.php" and "welcome.txt" on the … | |
The title says it all. I want to include a file outside the current working directory. Suppose my file is in the address "localhost/directory1/directory2" and I want to include 'core.inc.php' located in "localhost/directory1". In this case is requiring that file possible? If so then how can I achieve this? | |
Hi, Any body please help me out: [CODE][B] while loop { $val=mysql_num_rows($result14); $blnk=array(); array_push($blnk,$val); } $blnkarraysum=array_sum($blnk); [/B][/CODE] Values are not at all getting add up. why ? thanks in advance | |
![]() | I'm hoping there is a simple solution to this. I am using a form to submit some information. One of the boxes is a textarea. When i submit the form it runs this line of code: [CODE] if (!isset($_POST['textarea']) [/CODE] it seems to register that there is type there regardless … |
Hi, In my home page, i had one submit button(form action $_SERVER[PHP_SELF]). By clicking submit button,(by some action), its shows me the "Accept" and "Reject" button. My "Accept" button(data should save in my database) is not at all working for me .(i pointed this also to form action $_SERVER[PHP_SELF]).But if … | |
I'm trying to allow members to upload a picture to the my website. I In my php code I test the uploaded files for type. For some files it works fine, but I've discovered there are .jpg files that don't seem to have the internal type headers and the php … | |
Hello i have problem in my software, i want to read file excel and compare data. If i use file excel with small size it run succesfully, but if i use large file i have fault. Please some body help me | |
[CODE] <select name="year"> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> </select> <input type="submit" name="sub" value="Search"/> </div> <?php if(isset($_REQUEST['sub'])){ $year=$_REQUEST['year']; $con=mysql_connect("localhost","root","")or die( "Unable to connect"); mysql_select_db("mydb",$con) or die( "Unable to select database"); $query="SELECT * FROM student WHERE EnrolledYear='$year'"; $result=mysql_query($query)or die(mysql_error());; $num=mysql_numrows($result); mysql_close(); ?> <table> <tr> <th>Student ID No.</font></th> <th>Name</font></th> <th>Enrolled … | |
hi friends i want php script that uploads image without refreshing the page thanks | |
Hello everyone. I'm new to this forum and PHP in general. I finally got the nerve to tackle a mySql Database on my website's server, added columns and a few values, although I cannot seem to find any online help to retrieve the values from the database table. Here is … | |
Script is executed in a long time in the end does not display results ? | |
Hello Before I show you my code I would just like to put forward to whoever is willing to help me, and I have spent the last 2 days looking at hundreds of different login scripts and my head is hurting as the more I look at them the more … | |
Hello I have been reasearching many sites regarding encryption, I am a bit lost. I can cryp() the password with $salt but when I go to login and compare the passwords it keeps taking me back to the login. I have taken out all the encryption code but below is … | |
ok so after some time i can do some simple reg exp but this one is confusing me. I currently am testing my reg exp on regexpal.com but php wants to work differently this is what im using [CODE] preg_match_all('/{(\w+)(([:]\w+)*)}/', $page_content, $matches, PREG_SET_ORDER); foreach($matches as $match) { $src = $match[1]; … | |
Right now i have 6 files: Main.php = The login page Info.php = The first page seen after login ForgetPass1.php = The first page for password recovery ForgetPass2.php = The first page for password recovery functions.php = Holds all the php functions used in all websites including: -logout() -confirmUser() -SQL_Connection() … | |
Hi I am very new to PHP I have two text boxes A and B when I open the web page A is already populated with a number if I input a number in B I want that number to be subtracted by A (A-B) and the answer should be … | |
Hi, I am developing a CMS based website which also has a flash gallery, the gallery accepts only xml data as input so i am using info from a database to output the required xml using php. I am setting the page that is currently being viewed using a session, … | |
hi i have a code that uploads an image...but it gives me an error when i upload a photo: Warning: move_uploaded_file(test/ssss.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\xampp\htdocs\test\add.php on line 21 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\xampp\tmp\php163.tmp' to 'test/ssss.jpg' in C:\xampp\htdocs\test\add.php on line 21 … | |
See this is the URL path to access my local server.. "http://localhost/CodeIgniter/" I need to change this URL and need to give my own URL..after adding my URL i need to access my local server using my own URL... How can i do that??please help me... |
The End.