39,326 Topics
| |
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? |
The End.