-
Replied To a Post in Pass POST parameter to other file
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'); ` -
Began Watching Pass POST parameter to other file
I am having a problem passing a `$_POST[]` parameter to another file via the URL. Look at the line 34 and 138. The line 34 is getting the URL parameter … -
Replied To a Post in session_start doesnt stick in ajax call
$_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"]); … -
Began Watching session_start doesnt stick in ajax call
im trying to get PHP operate well with javascript. I have looked on internet and put all the solution inside at once but none work. I want to create a … -
Replied To a Post in How to get IP from text area that contains multiple IPs and their CIDR?
Why not use [explode](https://www.php.net/manual/en/function.explode.php) -
Began Watching How to get IP from text area that contains multiple IPs and their CIDR?
My question is simple: I have a text area that is filled with IP/CIDR's and I want to know how I can retrieve an IP from there and then check … -
Replied To a Post in PHP store variables in MySQL
code ? -
Began Watching PHP store variables in MySQL
Hi guys, I'm busy testing storing PHP variables in a MySQL table but I'm having difficulties using them as variables when pulling them from MySQL. When I pull the variables … -
Began Watching how to reset textbox values
I have two radio button. by clicking first radio button it will show one text box, the count of typed values will display in another text box which is default. … -
Replied To a Post in how to reset textbox values
please show your code -
Began Watching pls i need help, music playlist is not display (blank)
please i need your help , there is audio playlist im working on and im try to get music from mydql database and i can get the music file to … -
Replied To a Post in pls i need help, music playlist is not display (blank)
remove the `style="display:none;"` from <ul id="playlist1" style="display:none;"> <?=$output?> </ul> -
Began Watching run php script in Javascript
Hope this is the correct forum to place this question. How would i run a php script in a javascript file? I have a php script named connection.php, it accesses … -
Replied To a Post in run php script in Javascript
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) -
Began Watching How to update table with select from other table
I am trying to update for some products their category in Database. But I get an error and and I dont understand where my statement is wrong. Please help me. … -
Replied To a Post in How to update table with select from other table
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%') -
Began Watching how to apply readonly mode inside for loop. only checked values readonly
How to apply readonly inside forloop in checkbox or disabled checked values in checkbox ramaining empty values will be active any body help me <input type="checkbox" class="chkNumberck" value="<?php echo $sub_id; … -
Replied To a Post in how to apply readonly mode inside for loop. only checked values readonly
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>"; -
Began Watching Mysqli error
function view_report($dateval1, $dateval2, $id) { global $connection; $query_get = "SELECT * FROM presence WHERE p_date BETWEEN {$dateval1} AND {$dateval2} ORDER BY DATE"; $query_confirm = mysqli_query($connection, $query_get); if(isset($_POST["show"])) { while($record = … -
Replied To a Post in Mysqli error
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"] … -
Began Watching this line doesn't work in the php part with using ( ' ) instead of ( " )
Hello. This is a part of my script: <table id="table-5"> <thead> <th>ID</th> <th>URL</th> <th>Editor</th> <td>More....</td> </thead> <tbody> <?php include('connection.php'); try { $sql = "SELECT * FROM Data ORDER BY ID … -
Replied To a Post in this line doesn't work in the php part with using ( ' ) instead of ( " )
also: echo "<td><a id='more' href='http://www.niloofar3D.ir' onClick='return popup(this, \"mypopup\")'><button>»</button></a></td>"; -
Began Watching pdo - how to put where clause in while loop
how to put `where clause variable $didno` in following code: $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * FROM misscall WHERE did_no = ?"; $q = $pdo->query($sql); $mobile1 = … -
Replied To a Post in pdo - how to put where clause in while loop
is this what you want: $sql = "SELECT * FROM misscall WHERE did_no = ". $didno; or did I not understand your question? -
Began Watching Displaying database values in .html file.
Hi is it possible to display database values in a .html form using php. This is my .html form and I want to display values from mysql in the form … -
Replied To a Post in Displaying database values in .html file.
silly question: Are you actually using a Apache server? -
Began Watching my print prescription function is not working ...i need help you guys...
<?php $edit_data = $this->db->get_where('prescription', array('prescription_id' => $param2))->result_array(); foreach ($edit_data as $row): $patient_info = $this->db->get_where('patient' , array('patient_id' => $row['patient_id'] ))->result_array(); ?> <div id="prescription_print"> <table width="100%" border="0"> <tr> <td align="left" valign="top"> <?php … -
Replied To a Post in my print prescription function is not working ...i need help you guys...
maybe if you tell what isn't working -
Began Watching How statement is evaluating ?
$x=1; echo $x + $x++ + $x++ + $x; -
Replied To a Post in How statement is evaluating ?
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' -
Began Watching PHP Not Connecting to MYSQL Databse
While it is not showing any errors that I can see, my input from an HTML form is not working. I copied part of the script from Visual QuickPro Guide … -
Replied To a Post in PHP Not Connecting to MYSQL Databse
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'])){ -
Began Watching How to get round value after decimal
I am facing problem for getting the value of after decimal <?php $a=5.4243423; $c = round($a,1); echo $c; ?> Out put is 5.4 How to get 4 value? Any body … -
Replied To a Post in How to get round value after decimal
[get values after decimal](http://stackoverflow.com/questions/8095199/php-get-values-after-decimal) -
Replied To a Post in An index.php Question
something is wrong at around line 228 if (isset($_POST['type'])) { if ($_POST['type'] == "login") } change to if (isset($_POST['type'])) { if ($_POST['type'] == "login") { // do something // like … -
Began Watching An index.php Question
I am working on a project and have been doing some research. One thing I have noticed are tutorials calling for saving the index file in .php. I tried this … -
Replied To a Post in An index.php Question
Your database login and password are showing Change them now!! -
Began Watching how to solve this error
<?php require_once '_includes/_coo.php'; $id =$_post['user_id']; //error here -> line 4 // sending query mysql_query("DELETE FROM example WHERE BookID = '$id'") or die(mysql_error()); header("Location: index.php"); ?> error in line 4 -
Replied To a Post in how to solve this error
$id =$_POST['user_id']; -
Began Watching PHP code not displaying image
Hi All, I was wondering if anyone could have a look at this code and explain why the page doesn't display an image? Basically I have a camer taking pictures … -
Replied To a Post in PHP code not displaying image
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 -
Began Watching XMLHTTP request
Hi can anyone help me find what am i doing wrong. i have an xml request that check data on db and return the result. and base on that result … -
Replied To a Post in XMLHTTP request
it must be `$d= $_GET["d"];` not `$d= $GET["d"];` -
Began Watching PHP code not being interpreted by DW and appearing as text on webpage
PHP code not being interpreted by DW and appearing as text on webpage. My Php code is below, this code is bolted into a html site(PHP file). However the code … -
Replied To a Post in PHP code not being interpreted by DW and appearing as text on webpage
make sure your browser points to `http://localhost/yourfile.php` and NOT `file://c:/wamp/htdocs/yourfile.php` -
Began Watching PHP session
Dear friends, I want to transfer data from one page to other via SESSION variables my code of session1.php page is below <!DOCTYPE html> <html> <head> <title>Hello!</title> </head> <body> <form … -
Replied To a Post in PHP session
<?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 … -
Began Watching Validating domain and publish/reserve IP for custom domain
Hi All, I am doing a project whereby I can create and publish websites/landing page to custom domains. However I am a newbie at publishing. Can someone please guide as … -
Replied To a Post in Validating domain and publish/reserve IP for custom domain
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 -
Began Watching Insert multiple records one query
I'm trying to solve a problem which I've now for 2days. But with any kind of success I want to create something where people can track their progress, so if …
The End.