389 Posted Topics
Re: Why do you want to know? Or do you want to know the connection speed? | |
Re: You have to pay zenatdesign.com $40 to be able to use that software. Gess they are happy to answer your questions. | |
Re: in your function you use `loginsell` but your form is called `loginform` ![]() | |
Re: You can find many tutorials about that on the web. [Here is one](http://stackoverflow.com/questions/22728170/retrieve-data-into-ajax-dropdown-menu-using-php-mysql-jquery) | |
Re: [sleep](http://www.php.net/manual/en/function.sleep.php) also check out [set-time-limit](http://www.php.net/manual/en/function.set-time-limit.php) | |
Re: go to your dashboard goto settings->read select the page you want to be you startpage | |
Re: // always do this: require "connection.php"; $add = mysql_query("INSERT INTO contacts VALUES('$name','$house')"); $add2=NULL; // so we can do: if ($add2) do stuff $add3=NULL; // wheder we have a child or not, if spouse add it if($spouse == "Yes") { $add2 = mysql_query("INSERT INTO dependents VALUES('$spousename','$spousehouse')"); } // wheder we have … | |
Re: works the result is in the htmlResponse var <form> Select Project:* <select name="project_id" id="project_id" > <option value="0">Select Project</option> <option value="1">a</option> <option value="2">b</option> <option value="3">c</option> </select> Select Week*: <select name="week" id="week_id"> <option value="0">Select Week</option> <option value="1">This Week</option> <option value="2">Last Week</option> <option value="3">2 Weeks back</option> </select> </form> <div>return:<span id="returnValue"></span></div> <script type="text/javascript" src="js/jquery-latest.js"></script> … | |
Re: checkout database normalisation. [this one](http://www.databasedev.co.uk/database_normalization_basics.html) has some nice examples on the 2e halve of the page | |
![]() | Re: works: $keys = array('key1', 'key2', 'key3'); $value = 'some value'; $string='$md'; foreach($keys as $index => $key) { $string.="['$key']"; } $string.= '=$value;'; eval($string); var_dump($md); but: > If eval() is the answer, you're almost certainly asking the wrong question. -- Rasmus Lerdorf, BDFL of PHP |
Re: You have to use [base64_encode](http://us3.php.net/manual/en/function.base64-encode.php) There is even an example there by Cristiano Calligaro | |
Re: [http://www.phpro.org/tutorials/Basic-Login-Authentication-with-PHP-and-MySQL.html](http://www.phpro.org/tutorials/Basic-Login-Authentication-with-PHP-and-MySQL.html) | |
Re: to create a custum botton in google maps see [https://developers.google.com/maps/documentation/javascript/controls](https://developers.google.com/maps/documentation/javascript/controls) a little over halfway down | |
Re: you might want to take a look at [$_SESSION](http://www.w3schools.com/php/php_sessions.asp) | |
Re: first change your password on your remote server. Don't post it again! 2e you forget to select the databaseon the remote, you do on localhost 3e mysql is deprecated. check out [MySQLi](http://www.php.net/manual/en/book.mysqli.php) or [PDO_MySQL](http://www.php.net/manual/en/ref.pdo-mysql.php) ![]() | |
Re: Best start with html. php is mostly used to create html pages dynamically. | |
Re: Look like a copy/passed erros arround line 21. You mix mysql statments with pdo objects. how to [use pdo corectly see this](http://www.php.net/manual/en/pdo.prepare.php) something simular at line 38 | |
Re: if you call your script like `yourfile.php?id=1234` $id will be 1234 | |
Re: $headers = 'From: webmaster@example.com' . "\r\n"; $sen=mail($to, 'My Subject', $message,$headers); | |
Re: You can use [$_SESSION](http://www.php.net/manual/en/function.session-start.php) or $_POST <input type="text" value="<?php echo $row['id'];?>" readonly> | |
Re: $gateway_url = $url."?ORDERID=".$orderid."&SESSIONID=".$sessionid; ?> <iframe src="<?php echo $gateway_url; ?>" style="border:0px #FFFFFF none;" name="manframe" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="60px" width="468px"></iframe> ![]() | |
Re: You have "Width" in your form but uses $_POST["width"] ![]() | |
Re: there can be no output , or even empty lines outside <?php ?> before session_start(); so do as veedeoo tells you and put it at the top of the page <?php session_start(); ?> <!DOCTYPE html> <html> ![]() | |
Re: - install xampp - install wordpress - install same plugins as on your hosted wp - export data frorm hosted wp (admin/extra) - import data on local wp and you have a copy of your website on local host | |
Re: I don't think ` or die(mysql_error()` works here because you access the mysql not though php but though the shell. to get te result back from the shell exec('command', $result); var_dump($result); | |
Re: your html <p><label for="img1">صورة 1</label> <input type="file" name="img[]" id="fileField1" /> <input type="text" name="label[]" id="Limage1" placeholder="Add label"> </p> your php ... $tmp_name = $_FILES["img"]["tmp_name"][$key]; $name = $_FILES["img"]["name"][$key]; $label = $_POST['label'][$key]; .... // change your query to save $label in your db if($result){ // header('Location:includes/pan/projects/google/face.php?propid='.$p); // cant redirect, have to do 4 … | |
Re: is that from the query from line 88? cant, there is no query at line 88, but there must be one. | |
Re: vars inside ' ' are treated as plain text vars inside " " are treated as var so should work echo "<img src='libchart-1.3\libchart\demo\generated\demo25_$email.gif'>"; also posible echo '<img src="libchart-1.3\libchart\demo\generated\demo25_'.$email.'.gif">'; | |
Re: what version of php are you using it's not default part of php before 5.3 See [http://www.php.net/manual/en/fileinfo.installation.php](http://www.php.net/manual/en/fileinfo.installation.php) | |
Re: can you post the (part of) xml-file? | |
Re: look to me that `company/vision-mission.html` get redirected to `company.php?pageSlug=vision-mission` in company the vision-mision page is fechted for the data base: wdsQuery("SELECT pages_ID, pages_title, pages_description, pages_content, pages_slug FROM " . $dbtable['pages'] . " WHERE pages_slug = '" . slugs($_GET['pageSlug']) . "'"); and echoed: echo $r['pages_content']; | |
Re: change the ` (back tick) in the query value part to ' (single qoute) stings are surounde by a single qoute. Colomnames by a back tick | |
Re: sender must be an emailadress $sender = "markii-designs@yoursever.com"; | |
![]() | Re: Your $_POST values are lost because the redirect in form-check.php You can also put the code from form-check.php into the index.php file. And than have your form action point to index.php. ![]() |
Re: just do the same for the pdf as you did for the rar. you will need a different fileatt_type (just google that) don't forget the `--{$mime_boundary}\n` | |
Re: no. php runs on the server. Then the html & javaschript output is sent to the browser. The browser runs the javascript. to get the javascript valus back to the server you can use [ajax](http://www.w3schools.com/php/php_ajax_database.asp). [jQuey makes it easyer](https://api.jquery.com/jQuery.ajax/) ![]() | |
Re: your sendbutten is just a link to send_email.php to actualy send your form :`<input type="submit" value="send eamail">` before the </form> also change `<form name="form2" method="post" action="send_email.php" class="search_form">` or use javascript | |
Re: The html form date type is in most cases just a text. If you want te curent time justuse the php [date function](http://nl3.php.net/manual/en/function.date.php). if you want another date I recoment diverent fields for day, month and year. Also: mysql is deprecated use [mysqli](http://nl3.php.net/manual/en/book.mysqli.php). Also 2: check out [mysql_real_escape_string](http://nl3.php.net/manual/en/function.mysql-real-escape-string.php) (or even … ![]() | |
Re: Your function sends the tilte to the theme. The theme add the link (or not) frorm the defalt 2013 theme: `<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>` | |
Re: wordpress has it own opload tools for images and other 'media'. But it uses ftp when you do an update. What is not working for you? | |
Re: foreach( $array as $index => $value) { echo "$index , $value"; } 0 , first 1 , second 2 , third | |
Re: 1. You move te uploaded file before you check it exist. 2. you rename the already remaned file creating something like: image_0_1_2.jpg | |
Re: first create te code in html to make sure you get what you want. Then create that html-code using javascript with [document.createElement](http://www.w3schools.com/jsref/met_document_createelement.asp) | |
Re: [array sorting](http://www.php.net/manual/en/array.sorting.php) | |
Re: maybe a subquery see [Click Here](http://dev.mysql.com/doc/refman/5.0/en/from-clause-subqueries.html) SELECT user_liked_by FROM ( SELECT COUNT(user_liked_by) AS total, id, user_liked_by FROM whatilike WHERE whats_liked LIKE '%$thing_liked%' && user_liked_by !='$user' ORDER BY COUNT(user_liked_by) DESC ) as names GROUP BY user_liked_by; not sure what this will do to the ORDER BY part | |
Re: > I have something like it The devil is in the details. Don't see any thing here that is either a class or require jquery. Post your exact code. | |
Re: line 5 if($email == $row1['email']) and what are you trying to do on line 4? |
The End.