39,323 Topics
| |
i got this problem when cron job work ***Parse error: syntax error, unexpected T_VARIABLE in /home/u574693502/public_html/bot.php on line 4*** and this is my full script <?php $bot['like'] = true // false untuk non aktifkan autolike $bot['ck_k'] = true // false untuk non aktifkan fungsi jika status mengandung kata maka di … | |
Hi Everyone, When I feed details in Enquiry Form and click on submit then, my email is not going. It displays error message as "Warning: mail() [function.mail]: SMTP server response: 530 SMTP authentication is required. in E:\HostingSpaces\flashprop\flash-properties.com\wwwroot\sell.php on line 39". Kindly, help. Thanks in advance. | |
Operating System: Windows 2003 Server Using XAMPP Now , I have to develop a Scheduler for these reports, For Example I have 3 Reports. These reports are PHP Files Report1.php Report2.php Report3.php I want to send them(Execute them) automatically as follows Report1.php on Monday 9AM Report2.php on Friday 9AM And … | |
My users arrive on the page, optionally with a query string. The query string data - if present - goes into a textarea element in a form, where it may be edited, then POSTed back to the page with the submit button. Now I have a bit of a mess … | |
i need to call a php program from another php program in middle and need to execute that php program like calling PHPA from PHPB program. after PHPA program execution completed and then PHPB program should resume its execution and need to complete its running | |
i create user submit form. before submit click preview button.show for preview. anybody.plz hlp me. this is my form <form action ="<?php echo url_for('@meetnewpeople_edit') ?>" id="meetnewpeople" method="post" enctype="multipart/form-data" > <span id="privacy_popup" class="button-white">Privacy</span> <div id="privacy_create" style="display:none;"> <input type="checkbox" id="privacy-only-plan-people" value="planpeople" name="privacy[]"> Only people in this plan can see <br> <div id="privacy-people"> … | |
Hello, I am having problem with contact form. Can anyone help me? contact.php <div id="contactform"> <?php require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $phone = str_replace(" ", "", strip_tags(@$_POST['phone'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$phone&&$message) { if (is_numeric($phone)) { $privatekey = "6LdRStUSAAAAABctjZq_iX249auG_kjaNvn_4vfN"; $resp = recaptcha_check_answer($privatekey, … | |
Hi, I have a lot URLs in my site that look like: http://localhost/DIRECTORY/FINAL/ref.php?id=category Now, I need a PHP function to search for = Sign and return all the text after that i.e. 'category' Is this possible, if so can anyone help | |
Hi Guys , i started experimenting a little bit with javascript . I want a javascript dialog that ask user to delete a file.Buttons should be yes or no.The javascript should load as soon as page load **No button is used**. Can you please post a sample code for it … | |
this is just a simple code.My problem here is that I can't get or display subject loads of a teacher. $sql = mysql_query("SELECT * FROM teachersubject WHERE teacherID ='$id'"); while($test = mysql_fetch_array($sql)) { $subjectid=$test['subjectID']; $getsubject=mysql_query("SELECT * FROM subject WHERE subjectID='$subjectid'") or die(mysql_error()); $getthis=mysql_fetch_array($getsubject); echo "<option value=".$getthis['subjectID'].">".$test['subjectCode']."</option>"; } mysql_close($conn); ?> This … | |
Hi there I have a huge difficulties with php checkbox inside do while loop. <?php do { ?> <p> </p> <div id="nazwa_firmy"> <form name="szczegoly_firmy" method="post" action="szczegoly.php"> <?php echo $row_wybieranie_firm['nazwa'];?> <input type="submit" name="firma_szczegoly" id="firma_szczegoly" value="Szczegóły" tabindex="1"> <input type="hidden" name="id_firmy" id="id_firmy" value="<?php echo $row_wybieranie_firm['id']?>"> </form> </div> <div id="adres_www"> <a href="http://<?php echo $row_wybieranie_firm['www']; … | |
This is not necesarily PHP, but algorithm question, I am just doing it in PHP. So don't know if its the best place to post. The problem is - I need to calculate maximum posible winning for a game, depending on bets. We are making dogs racing game, but the … | |
<html lang="en"> <head> <meta charset="utf-8"> <title>Date Picker</title> <link href="jquery-ui-1.8.24.custom/css/start/jquery-ui-1.8.24.custom.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="jquery-ui-1.8.24.custom/js/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="jquery-ui-1.8.24.custom/js/jquery-ui-1.8.24.custom.min.js"></script> <script type="text/javascript"> $("document").ready(function(){ $("#datepickerID").datepicker({ changeYear: true }) dateFormat:"%Y-%m-%d" }); </script> </head> <body> <form method="post" action="datePicker.php"> <label> <input type="text" name="datepickerID" id="datepickerID" value="<?php echo $datepickerID; ?>"><img src="../images/calendar-icon-vector-801455.jpg" width="21" height="21"> </label><br/><br/> <input type="submit" name="Submit"/> </form> … | |
I wrote a php contact form but I can't figure out how to redirect a user to a different page... Here is my code: <?php if($_POST){ $name = $_POST['name']; //gets the entered name $email = $_POST['email']; //gets the entered email address $subject = $_POST['subject']; //gets the subject $message = $_POST['message']; … | |
How do i store valid form inputs in a csv file? I am not sure how to start, but I know that php and mysql is involved. | |
hi, if anyone could guide me on how to add a pagination script on this code? Thanks <?php error_reporting(0); include("config.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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>MySQL table search</title> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> … | |
I'm presently using nicEdit, small simple and inadequate for what I need, I aware of tinyMCE FCKEditor and such my problem is I need to make it a one time switch, I do not want to get my users through a series of trial and error, my demographic is older … | |
I'm trying to make my first gallery with PHP and I'm having some problems i can't solve. My code looks like this: <?php include_once('config.php'); //Script der uploader og omdøber billeder if(isset($_FILES['billede'])){ $errors = array(); $allowed_ext = array('jpg','jpeg','gif','png', 'bmp'); $file_navn = $_FILES['billede']['name']; $file_ext = strtolower(end(explode('.', $file_navn))); $file_tmp = $_FILES['billede']['tmp_name']; $file_size = … | |
I have this PHP program: <?php echo 'Start of Soap Request<br />'; $client = new SoapClient("http://192.168.201.67:10010/web/services/getItemDesc?wsdl"); print_r($client); echo '<br />Start of Var_Dump<br />'; var_dump($client); echo '<br />Result Print<br />'; $result = $client->testws(array("PEITEM" => "1020000000", "PEMSG" =>" ")); print_r($result); ?> That access a web service on my iSeries. I can get … | |
I want to store my array into my database using jQuery. Here is my code i'm using serialize(); function. Its storing correctly but when i unserialize(); nothing happening. Please help here is my code. <script> $(document).ready(function(){ $("#save-skills").click(function(){ var skills = $('input[name="skills[]"]').serialize(); console.log(skills); $('#loading').css('display', 'block'); var queryString = "skills=" + skills … | |
Hi, PHP 5.2.17 (cli) (built: Sep 1 2011 17:22:41) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies [root@ip-10-130-243-182 mnt]# yum install php-pecl-memcached-2.1.0-1.el6.remi.x86_64.rpm Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the … | |
Hi All, I have the following mobile re direct script working on one website, but not another, For some reason I am getting the error - Can not modify headers information - header already sent - etc etc On line 20 Any ideas why this would work for one website … | |
Ok so now I am stuck, I looked at the http://www.daniweb.com/web-development/php/threads/326436/php-read-text-file-and-save-into-databse page and understand some of it, Yet it is not what i require, substring does not count like I thought it would, like the left, right mid commands in excel. I want to count to the data I want … | |
I have a email script that sends out information from the mysql database with the following code, but it only sends out one name and ID, but in the email it should send all 20 names and IDs. My question how can I get this fix and working right. Thanks … | |
hai everyone..i have run this file in my server.the following error is display Notice: Undefined index: name in F:\wamp\www\examples1\register.php on line 8 Notice: Undefined index: username in F:\wamp\www\examples1\register.php on line 9 Notice: Undefined index: emailid in F:\wamp\www\examples1\register.php on line 10 Notice: Undefined index: password in F:\wamp\www\examples1\register.php on line 11 Notice: … | |
Hi, im wondering how i get this to work? <?php $client = new SoapClient("http://localhost:8731/phpwcf/?wsdl"); var_dump($client->KundLandKodAlternativ()); $response = $client->KundLandKodAlternativ(); $array1 = $response->KundLandKodAlternativResult->WCFString1; $array2 = $response->KundLandKodAlternativResult->WCFReturnString; echo count($array1); echo count($array2); ?> the line `var_dump($client->KundLandKodAlternativ());` gives object(stdClass)[2] public 'KundLandKodAlternativResult' => object(stdClass)[3] public 'WCFReturnString' => object(stdClass)[4] public 'string' => array (size=4) ... public 'WCFString1' … | |
$construct .="keywords LIKE '%$search_each%'"; $run = mysql_query($construct); $foundnum = mysql_num_rows($run); i wont to know what display $construct?? i wont to know what is the function of mysql_query and what mean this ($construct); i wont to know what is the function of mysql_num_rows what can it do | |
Why this code doesn't redirect to profile page? i need help.. <?php include('connectvars.php'); if(isset($_POST['login'])) { $con = mysqli_connect(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); $user_username = mysqli_real_escape_string($con,trim($_POST['username'])); $user_password = mysqli_real_escape_string($con,trim($_POST['password'])); if(!empty($user_username) && !empty($user_password)) { $query = "SELECT * from Account where Username = '$user_username'"; $data = mysqli_query($con,$query); if(mysqli_num_rows($data) == 1) { $row = mysqli_fetch_array($data); $_SESSION['user_id'] = … | |
I have seen a couple solutions to this problem but none have worked so far. here is the error. [B]Fatal error[/B]: Call to undefined function mysql_connect() in [B]C:\wamp\www\login.php[/B] on line [B]12 [/B]and the code [PHP]<?php // connect to the mysql server $link = mysql_connect(localhost, root, admin) or die ("Could not … |
The End.