110 Posted Topics
Re: Working on mine here is a screen shot  | |
Re: if(!strpos('mysite.com',$_SERVER["HTTP_REFERER"])) header('Location: index.php') | |
Re: Paste your code here noone can help you this way.You have to do some thing yourself and then others can help you out. | |
Re: YOur code shall be like this are you using windows you need to download FFMpeg.exe because this code will work in Linux.If you are using Linux server, Use print phpinfo() function to check whether your hosting server has FFmpeg installed or you need it to be installed. $file = 'video_file'; … | |
Re: [Install] the "fake sendmail for windows". If you are not using XAMPP you can download it here:http://glob.com.au/sendmail/sendmail.zip [Modify] the php.ini file to use it (commented out the other lines): [mail function] ; For Win32 only. ; SMTP = smtp.gmail.com ; smtp_port = 25 ; For Win32 only. ; sendmail_from = … | |
Re: This will help you and i think this is as per your requirements. http://www.doitwithwp.com/pre-populate-fields-using-gravity-forms/ | |
Re: mod_rewrite turns your webserver into a super-server and frees it from the constraints of filenames. trick is to turn an error page into a search. For example, if someone tries to type in a wrong page say http://yourserver.com/pagethatdoesntexist.html you redirect it w/ mod_rewrite to http://yourserver.com/search.php?query=pagethatdoesntexist so that you come up … | |
Re: Php is what i married ten years back and M.V.C is my another wife i am about to marry.Just kidding.W3schools.com will answer your question bro. ![]() | |
Re: I think this article might help download the drive.info zip file run it show in this article. | |
Re: The easiest way to disable cache is by using SQL query: UPDATE `core_cache_option` SET value=0; And clear your cache folder just to be sure: rm -rf <YOUR SITE PATH HERE>/magento/var/cache/* In Magento Enterprise Edition you also have to clear the full_page_cache directory : rm -rf [YOUR SITE PATH HERE]/magento/var/full_page_cache/* | |
Re: we will give an unique name $filename=time().'.'.$extension; the new name will be containing the full path where will be stored (images folder) $newname="images/".$image_name; ![]() | |
Re: I made this one just for you by changing one of my programmes. Index <?php include "candy.php";?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.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'/> <title>Contact us</title> <link rel="STYLESHEET" type="text/css" href="style/fg_membersite.css" /> <script type='text/javascript' src='scripts/gen_validatorv31.js'></script> <link rel="STYLESHEET" type="text/css" href="style/pwdwidget.css" /> <script … | |
Re: just change msql to msqli where ever you find it.But you also can see online the structure of both commands and thier parameters and change accordingly.e.g mysql takes 2 parameters mysqli may take three so check it out online and change accordingly. | |
Re: <?php // Array of a $a = array("1" => 1, "2" => 4, "3" => 5, "4" => 10); $aArrayObject = new ArrayObject($a); $aArrayObject['pears'] = 4; // create a copy of the array $copy = $aArrayObject->getArrayCopy(); print_r($copy); ?> | |
i am missing something <?php $target = "images/dars/"; $target = $target . basename( $_FILES['uploaded']['name']) ; $ok=1; if (file_exists($_FILES['uploaded']['tmp_name'])) { echo "Sorry, file already exists."; $Ok = 0;} //This is our limit file type condition if ($target!=="image/jpg") { echo "You may only upload jpg files.<br>"; $ok=0; } //Here we check that … | |
(1)You have a PHP 1 dimensional array. Please write a PHP function that takes 1 array as its parameter and returns an array. The function must delete values in the input array that shows up 3 times or more? For example, if you give the function array(1, 3, 5, 2, … ![]() | |
Re: I think if you right click the image and select inspect element and see the code for the image that can help you . | |
Re: Putting in Divs would be a better option then you can manipulate things through CSS.I cant see scroll bar in your site. | |
Re: I think you are using global variables directly .And in last line i dont understand where from you are getting this echo `'<div id="updateimage"><img src="images/'.$data['newfilename'].'" height="250px"></updateimage>';` `</updateimage>` it should be `</div>` there | |
Re: here is how I would retrieve an image from an Access database. First I would create a function that turned the data from a byte format to a Bitmap format using the MemoryStream Class and pass it a byte array containing my image data Public Function GetImageFromDB(ByRef imageName As String) … | |
<?php include 'Classes/PHPExcel.php'; include 'Classes/PHPExcel/Writer/Excel2007.php'; include 'Classes/PHPExcel/IOFactory.php'; require_once 'Spreadsheet\Excel/Writer.php' ; require_once 'Spreadsheet\Excel\Writer/Workbook.php' ; //E:\Program Files\EasyPHP-DevServer-14.1VC11\data\localweb\generer\Spreadsheet\Excel\Writer try { echo date('H:i:s') . " Create new PHPExcel object\n"; echo "redderr " ; $data = new Spreadsheet_Excel_Reader("GenerationDesNoeuds.xls"); $data->dump($row_numbers=false,$col_letters=false,$sheet=0,$table_class='excel') $workbook = new Spreadsheet_Excel_Writer('GenerationDesNoeuds.xls'); $worksheet =& $workbook->addWorksheet('My first worksheet'); if (PEAR::isError($worksheet)) { die($worksheet->getMessage()); } $workbook->close(); exit … | |
Re: To upload an image (or any other file), you need to create a form with a file field, and set its method to POST. It's also recommended that you include a hidden field with the name MAX_FILE_SIZE, and set its value to the maximum permitted size (in bytes) of the … | |
![]() | Re: I think problem lies here have you defined all the variables $query = "UPDATE users SET password='$securepw' WHERE username='$username'"; Where is $username and $Securepw defined |
Re: Learning part you can do yourself locally or online best website to learn is w3schools.com and while learning if you feel you are stuck somewhere you can come back to Daniweb .You cant find persons to teach you hear but you can surly find many persons to assist you while … ![]() | |
Re: IT would have been better had you posted your problems here.rather than demanding free service.Anyways.food luck | |
Re: first one give msqli error name and second one gives error number . ![]() | |
Re: session_start(); shall be before html .use this above the html code.Rest i have not checked will be watching this article | |
Re: Try this index and connection.php i dont have database created so it wont work . <!DOCTYPE html> <html> <h1>Register</h1> <form method="POST"> <input type="text" name="user"><br /><br /> <input type="pass" name="pass"><br /><br /> <input type="submit"><br /> </form> <?php $host = "localhost"; $user = "user"; $pass = "pass"; if(isset($_POST['user'], $_POST['pass'])){ $zr++; $query = … | |
Re: I have mADE THIS ONE JUST FOR YOU .JUST COPY PAST THIS .DONT FORGET TO VOTE.IF YOU Have any problem again you can reply back Dim a As Integer Dim b As Integer Dim c As Integer Dim d As Integer Dim p As Integer Dim f As Integer Dim … | |
Re: [quote=cscgal;1326919]does the yahoo publisher network still exist? Try banner ad networks such as tribal fusion or burst! Media.[/quote] others are just playing around and adsence is non-scence 'cause it has got more sense than it should have. | |
Re: HI, Instead of page i would like you to integrate your website with facebook application and add facebook like there.In this way people will see your website. read what it offers and then like clicks will automatically increase if you dont know how to do this.then You can send me … | |
I have created three tables used dataset to generate fields when i enter data it does get stored but when i close application and then reopen data doesn't show. | |
I am trying to make a form in vb and connect that to database .First of all i created a databse and then opened new project and tried to connect that database to form. file new--->try____>project--->add new item---->Service based databse--dataset---->finish step2----->in databse explored right clicked on table and Add table … | |
The below mentioned code uses css3 to develop drop down menu .I am unable to solove a problem which crops up while i click sub2 h4 menu it disappeare below body text can anybody help .Thanks in advance. <style> body,,container,h1,navmenu,ul,sub1,sub2,darrow,rarrow,header,leftnav,rightnav,footer { margin:0px; padding:0px; } #container { position:absolute; background-color:#FFF; left: 136px; … | |
My customer wants to integrate his software with a website and whenever he updates offline store it shall reflect on website software.Is it possible if yes please reply. Thanks in Advance ![]() | |
Re: This problem is related to php.ini file settings.Nothing else | |
<label class='colwidth' for='selectc' >Select Courses*: </label> <form action="send.php" name="course" id="states"method="post"> <Select name="States" id="State" style="width:40px;" > <option value=></option> <option value="1">HTML 5</option> <option value="2">JQuery</option> <option value="android">American Samoa</option> <option value="flash">Flash</option> <option value="flex">Flex</option> <option value="javascript">Javascript</option> </Select> <input type='submit' name='course' value='Submit' /> </form> And my php file is this <?php //Place state array at the … | |
i have three entries in phpmyadmin id name and image i want to upload image from the form into database and display that back into the form where from i am uploading it.I get this error PHP Warning: mysql_insert_id() expects parameter 1 to be resource, null given in D:\path\to\sitename\httpdocs\sql\uploadimage.php on … | |
include_once 'PATH/TO/swift_required.php'; //put info into an array to send to the function $info = array( 'username' => $username, 'email' => $email, 'key' => $key ); //send the email if(send_email($info)){ //email sent $action['result'] = 'success'; array_push($text,'Thanks for signing up. Please check your email for confirmation!'); }else{ $action['result'] = 'error'; array_push($text,'Could not … | |
I want to make it create the upload folder by itself.right now it creates the thumbs and so but I want the script to create the folder automatically <?php function createThumbs($pathToImages, $pathToThumbs, $thumbWidth) { $dir = opendir($pathToImages); while(false !== ($fname = readdir($dir))) { $info = pathinfo($pathToImages . $fname); if( strtolower($info['extension']) … | |
Re: Hi , AleMontero Please tell me how to change this line according to your settings so thAT I CAN INSTALL IT ON ANOTHER COMPUTER .i TRIED TO INSTALL MY APPLICATION ON ANOTHER COMPUTER USING WINDOWS 7 64 BIT.tHE APPLICATION WORKS FINE ON MY COMPUTER USING 32 BIT VINDOWS 7 . … | |
Re: if you are getting this message you are lucky because .if you delete EXCEL.SAVE LINE.AND USE EXCEL.QUIT INSTEAD YOU WILL STILL GET A SAVE AS DILOGUE BOX .THE MESSAGE WONT COME BUT WHEN EVER YOU CLOSE YOUR PROJECT EXCEL WILL STILL BE HANGING IN MEMORRY.USING SAVEWORKSPACE BEFORE EXCEL.QUIT RELEASES EXCEL … | |
'the code is working properly only problem with this code is when the first line ends in excel and data is inserted in next Row "instead of inserting another row it copies the same content which is inseted last time in form " | |
I HAVE MS ACCESS DATABASE OF 'STUDENTS' containing Their roll no's, names, min marks and max marks. As like schools publish results on their webistes, there is a text box in which roll no. is entered and the command button for searching the whole record of roll no. entered in … | |
I want to know how M/S ACCESS database can be connected to html page hosted on local host | |
How to link MS Access Database with an HTML Page...? If both data base and webserver are on same server. |
The End.