39,320 Topics
| |
Please help me on this file upload. [CODE] <form id="form_2" action="files_upload.php" method="post" enctype="multipart/form-data"> <input type="hidden" name="MAX_FILE_SIZE" value="50000000"> File:<input type="file" name="file" class="input" maxlength="350"" /><br /> <input type="submit" name="submit" value="Upload File"> </form> [/CODE] [CODE]<?php if(isset($_POST['submit']) && $_FILES['file']['size'] > 0) { $fileName = $_FILES['file']['name']; $tmpName = $_FILES['file']['tmp_name']; $fileSize = $_FILES['file']['size']; $fileType = $_FILES['file']['type']; … | |
I recently changed scripts on a price comparison site, and the structure is completely different. Under the old script there would be a page with a url like this [CODE]http://www.my-site.com/product/1/22/the-product.html[/CODE] But under the new script the url would be [CODE]http://www.my-site.com/index.php?search=the product[/CODE] A lot of pages are index in google, and … | |
I'm having a little trouble writing an if statement to update a couple of database fields based on matching a student ID between 2 tables. This is a form where I pass the initial Student and Class IDs to the SQL statement (this works just fine, but when I try … | |
i have a following paragraph. [CODE] ++ a xxx xxxx ++ b yyy yyyy yyyyy ++ c zz zzz [/CODE] i need to delete this line. ++ b yyy yyyy yyyyy What is the regular expression i want to use? | |
how to graph data from sql using open flash chart or other chart engine? I did some research but it uses array that has a value already like this one ... [CODE]<? # ------- The graph values in the form of associative array $values=array( "Jan" => 110, "Feb" => 130, … | |
Hi! I believe you can help me... I need a code that can check user information. e.g. user fillout the input field with his idnum. Once the user goes to the next field, information from mysql db will appear showing the name of the person. In that way, the idnum … | |
[CODE]<?php mysql_connect("localhost","root",""); mysql_select_db("database_name") ?> <form name="search" action=""> Search: <input name="q" type="text" /><input name="search" type="submit" value="Search" /> </form> <?php if(isset($_GET['q'])){ // include database connection $sql = "SELECT * FROM article WHERE title LIKE '".$_GET['q']."' "; $exe = mysql_query($sql); while($row = mysql_fetch_array($exe)){ } ?> <table> <tr> <td> <a href="article_detail.php?id=<?php echo $row['id'];?>" class="header_menu"> … | |
Hi All I would be greatfull if somebody could help me out with this one. ive been scratching my head all day in trying to find a solution. I have a order confirmation page which displays the entire order on a shopping cart. this page inserts a row into table … | |
i am trying to submit a form in jquery without refreshing it. for my jquery code i have this: [CODE] $(function() { $(".submitbuttonsend").click(function() { var dataString = 'reqtoid=<?php echo $uid; ?>&reqfromid=<?php echo $id; ?>'; $.ajax({ type: "POST", url: "proccess.php", data: dataString, success: function() { $('#freekk').html("<div id='message' style='color: #4f4f4f; font-size: 12px; … | |
| |
Hello, I am having the same problem. getting the message: Parse error: syntax error, unexpected $end in C:\wamp\www\World_Database.php on line 79 I am an absolute beginner. Could someone please help me sort this? thanks a ton in advance. Here is my code. [CODE]<html><head><title>World Database</title></head> <body> <?php include"file:///D|/PHPMySQL/connect_info.php"; $linkID1 = mysql_connect($dbhost, … | |
After query, there are 100 results . I want to just show 20 results in page 1, other 20 results in page 2 .... I want to show the results just like the forum. What is the code? | |
Hi, I want to capture snapshot of a URL. User enters URL, hits Capture button and sees the captured image of that website. I have done some google-ing but not real solution it. Does anyone know any example in PHP and only on Linux? Not interested 3rd party websites though. … | |
Greetings all, I have a great website up and running that lets people take a quiz. Everything is working perfectly, this is more of a aesthetics issue, and its very simple but I can't find the answer. When they leave a field blank, I have a die command that stops … | |
I'll get straight to the point, here's how I've coded my mailform: [CODE] <html> <body> <?php $email = $_REQUEST['email']; $subject = "Contact Us Query"; $message = $_REQUEST['message']; $message = stripslashes($message); mail("myemail@msn.com", "$subject", $message, "From:" . $email); header("Location:success.php"); ?> </body> </html> [/CODE] My problem is that although the emails get sent, … | |
Greetings all. Trying to use PEAR mail to mail some results of a quiz I have designed for students, when I get the following message: "Warning:require_once(Mail.php)[function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\results.php on line 81" followed by "Fatal error:require_once(function.require]: Failed opening required 'Mail.php'(include_path='.;C:\xampp\php\PEAR')in C:\xampp\htdocs\results.php on … | |
Quite having a problem here... I have an array of student numbers put in a variable. And this variable will be use to an sql query. e.g. sql = "SELECT class FROM tbl_class WHERE studnum = '[COLOR="Red"]$array_studnum[/COLOR]'"; How can I get that specific student number inside an array for me … | |
Hi :) Is there any way, using PHP, to display a mini-version of an external website ? What I'm trying to achieve is when my users enter a link, then it should automatically try to display the link's contents - but within a given height / width. Appriciate any feedback … | |
I am talking about Social engine 4(SE4) ([url]http://www.socialengine.net/[/url]) which is written in Zend. I can go up to the IndexAction of IndexConroller in Core Module. But then I am at a loss. Which models are used there to build the homepage? I think when I can learn about the models … | |
| I am attempting to install ffmpeg-php on my Dreamhost VPS. It runs Debian. I am under the impression that it is quite easy using 'sudo apt-get install php5-ffmpeg' I have tried this, it appears to install fine. My problem is, I'm not sure where it installs and how I get … |
Hello Friends Thanks in advanced. I have small problem. i want to reorder top links in magento from My Account | My Wishlist | My Cart | Checkout | Log In to Log In | My Account | My Cart | Checkout | My Wishlist I was able to use … | |
Hi, can anyone guide me in the right direction with the following: I want to start a hosting reseller service, didnt find a relative category to post in but my question is related to php so... I want to develop a site where users can query available domain names, the … | |
Hallo good people, am looking for a nice code that i can wright or someone to guide me through to create notifications within my site. On top of the notifications to be displayed within my site when an event occurs within the db and therefore i would need the necessary … | |
Hi Guys, I am doing online Gift website by using os commerce.. I need to add Delivery time with Shipping Address/Delivery Address.. What are the changes i need to do and where? Can u guys plz give me some suggestions regarding this. | |
Hi All, Im trying to get my mail to display like the following From: Paul "paul@paul.com" Reply to Customer Services // with the email only showing when clicking reply my current headers are set to [code] $headers .= "To: " . $dsv_to . " <" . $dsv_to . ">\r\n"; $headers … | |
Guys, sorry if I intended to put this concern here. I know it's a wrong place, but I am desperate to find a right solution to this problem. WHY IS FACEBOOK TEXT-ONLY? I have seen forums in the Internet regarding this but none of them has ever solved my problem. … | |
how to generate id with character in php-mysql eg: LAKS01 LAKS02 LAKS03 | |
Hi all, pretty new to sql. have made code already for showing, adding and deleting data from database but can't seem to make the update work. any help is much appreciated. here's what I have: [CODE]<html><body><form action="update.php" method="post"> <label>Person ID:<br></label> <input type="text" name="personID" size="40" value="" maxlength="150" /> <label>Customer Name:<br></label> <input … | |
<?php $id=$result; $res=@mysql_query("Select * from t_stores where user_id='$id'"); print "<label>Select Company/Store </label>"; print "<select name=\"store_id\">\n"; print "<option value=''>\n"; while($row=mysql_fetch_assoc($res)){ $store_id=$row; $store_name=$row; print "<option value='$store_id'>$store_name\n"; $store=$_GET; // a noob way that above to get store_id but it wont work--> } ?> //how do i get the $store_id in the print above … | |
Hi All, I am using phpexcel to open a excel worksheet to insert some data. But I have some validation in this worksheet. I want to continue to use all validation. How can I do? |
The End.