- Strength to Increase Rep
- +9
- Strength to Decrease Rep
- -2
- Upvotes Received
- 90
- Posts with Upvotes
- 79
- Upvoting Members
- 53
- Downvotes Received
- 8
- Posts with Downvotes
- 8
- Downvoting Members
- 7
Re: you are making 2 calls to call.php first has post variables: `xhr.send("amount=" + transferTotal + "&name=" + name);` second does not: `window.open('https://mydomain.com/con.php', '_blank'); ` | |
Re: $_SESSION gets set by session_start() before that is empty So: <?php session_start(); header("Content-Type: application/json"); header("Access-Control-Allow-Credentials: true"); header("Access-Control-Allow-Origin: null"); if (isset($_SESSION)) { $_SESSION["time"] = time(); if (isset($_SESSION["time"])) echo json_encode("Session exists:" .$_SESSION["time"]); } else { echo json_encode("Session does not exist!"); } | |
Re: should line 25 not be `header('Content-type: application/pdf');` ? | |
Re: Why not use [explode](https://www.php.net/manual/en/function.explode.php) | |
Re: if you already have the info you need in $_POST there is no reson to put it in a $_SESSION. $_POST is usaly obtaind from a <FORM> on the first page or by an AJAX-request. if you just want to send the image name to the 2 page why not … | |
Re: take a look at this: [URL="http://nl3.php.net/manual/en/function.md5.php"]http://nl3.php.net/manual/en/function.md5.php[/URL] | |
Re: remove the `style="display:none;"` from <ul id="playlist1" style="display:none;"> <?=$output?> </ul> | |
Re: use [google.maps.marker()](https://developers.google.com/maps/documentation/javascript/markers) the deprecated object google.maps.MarkerImage only defines the image. (the also an example on the same page what to use now) | |
Re: use [IN](https://dev.mysql.com/doc/refman/5.0/en/any-in-some-subqueries.html) UPDATE sho_term_relationships SET term_taxonomy_id = 2 WHERE object_id IN (SELECT `id` FROM `1876522_shoping`.`sho_posts` WHERE CONVERT(`post_title` USING utf8) LIKE '%Audio CD%') | |
Re: 2e part: $output =""; while($record = mysqli_fetch_assoc($query_confirm)) { $output .= "<tr>"; $output .= "<td>" . $record["p_date"] . "</td>"; $output .= "<td>" . $record["p_day"] . "</td>"; $output .= "<td>" . $record["timein"] . "</td>"; $output .= "<td>" . $record["timeout"] . "</td>"; $output .= "<td>" . "06:25:22" . "</td>"; $output .= "<td>" . … | |
Re: if (isset($_POST['chkNumberck'])) $returnArray=$_POST['chkNumberck']; else $chkNumberck= array(); $count=5; echo"<form action='test.php' method='post'>"; for ($sub_id=0 ;$sub_id < $count;$sub_id+=1) { echo "<input type='checkbox' name='chkNumberck[]' value=$sub_id "; if (in_array($sub_id,$chkNumberck)) echo"checked='checked'";> } echo "<input type='submit' /></form>"; | |
Re: is this what you want: $sql = "SELECT * FROM misscall WHERE did_no = ". $didno; or did I not understand your question? | |
Re: also: echo "<td><a id='more' href='http://www.niloofar3D.ir' onClick='return popup(this, \"mypopup\")'><button>»</button></a></td>"; | |
Re: silly question: Are you actually using a Apache server? | |
Re: maybe if you tell what isn't working | |
Re: according to the manual: [operators precedence](http://php.net/manual/en/language.operators.precedence.php) it has an 'Undefined order of evaluation' and may 'change between versions of PHP or depending on the surrounding code' | |
Re: html line 9 <input type="submit" name="y" value="submit my data" /> Your submit-button is called 'y' not submit either change that line or your php_handler.php line 3: if (isset($_POST['y'])){ | |
Re: [get values after decimal](http://stackoverflow.com/questions/8095199/php-get-values-after-decimal) | |
Re: N is the number of levels of subdirectory used. `"N;/temp"` makes no sence. `3; /temp` does, but is not necessary and not recommended, so do you reley need it? see [php#ini.session.save-path](http://nl1.php.net/manual/en/session.configuration.php#ini.session.save-path) | |
Re: Your database login and password are showing Change them now!! | |
Re: At line 12 $path and $img are not known yet, you declare them later. So move the php part (line 14 -41) to the top of your script | |
Re: What is stored in $image['image_file']? is that the binary-image-data or just a filename? | |
Re: What exactly do you need to do? you need to be a [registrar](http://en.wikipedia.org/wiki/Domain_name_registrar) to create a new domain yourself. (and have an dns-server). But you can create subdomains like somebody.yoursite.com | |
Re: make sure your browser points to `http://localhost/yourfile.php` and NOT `file://c:/wamp/htdocs/yourfile.php` | |
Re: it must be `$d= $_GET["d"];` not `$d= $GET["d"];` | |
Re: <?php session_start(); must be the at the very top of youre script. no html before it, not even a white-line; for actual error message: if just you run session1.php, $_POST will be empty. test: `var_dump($_POST);` the $_POST is filled bij the form only after you submit it but `action="session2.php" ` … | |
Re: It looks to me that your database is not structured properly. Take a look at [database normalization](http://www.studytonight.com/dbms/database-normalization.php) |