- 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
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 in a POST and line 138 should pass that same parameter value to the other file, but i get an … |
|
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 cross-site AJAX request but i cant seem to be able to have session_start() stick. I have this PHP code on … |
|
i want to display the stored image in fdpf. |
|
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 the IP as used. The text area (which is implemented in plugin's page configuration and I can edit the configuration … |
|
guys! Im new in PHP and im developing a small website wherein there's many images on the page and when i click one of the image it must be shown into another page with full details.. but the problem when i click one of the image it shown's nothing! I … |
|
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 is displayed as a normal string and I'm not able to use them as a variable. Is it possible to … |
|
Hi, I need to have passwords encrypted whenever a user signs up. How can I attain that? Any ideas? Thanx in advance. |
|
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. If weclick next radio button it will show two text boxes, the count of typed values in that two text … |
|
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 play but playlist is blank. this is my code html code: <ul id="playlist1" style="display:none;"> <li data_path="assets/mp3/music1.mp3" data-thumbpath="assets/thumbnail/img.jpg" data-downloadable="yes" > <p><span … |
|
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 a mysql database and runs queries. I would like to run the php script from a javascript file named initializeMap.js. … |
|
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. I want to find products that have in their name a specific word and after that I want to update … |
|
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 = mysqli_fetch_assoc($query_confirm)) { $output = "<tr>"; $output .= "<td>" . $record["p_date"] . "</td>"; $output .= "<td>" . $record["p_day"] . "</td>"; $output … |
|
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; ?>" <?php for($i=0;$i<$count1;$i++) { if($sub_id1[$i]==$sub_id){ echo "checked"; } } ?> /> |
|
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 = array(); while ($mobi1 = $q->fetchColumn()) { $mobile1[] = $mobi1; } $mobile1list = join(",", $mobile1); Database::disconnect(); thanks in advance |
|
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 DESC"; $result = $conn->query($sql); foreach($result as $key => $row) { echo "<tr>"; echo "<td>" . $row['ID'] . "</td>"; echo "<td>" … |
|
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 fields. <!DOCTYPE html> <html> <head> <title>Bursary application</title> </head> <body> <form action="config.php" method="post"> <div> <p></p> <label for="surname">Surname:</label><input id="surname" type="text" name="surname" value="<?php … |
|
<?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 foreach ($patient_info as $row2){ ?> <?php echo 'Patient Name: '.$row2['name']; ?><br> <?php echo 'Age: '.$row2['age']; ?><br> <?php echo 'Sex: '.$row2['sex']; … |
|
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 book on PHP 6 and MYSQL 5. I only had one input , so I modified the script for my … |
|
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 help me to get after decimal value |
|
Sessions wont work on ipage, I know there are post like this all over internet but i did try all the answers and nothing seems to work i tried this.. session_save_path("your home directory path"/cgi-bin/tmp); session_start(); tried changing the value of session.save_path from php.ini session.save_path = "N;/path" To this session.save_path = … |
|
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 and when loading the file, the result is a blank page. I do not understand why people are suggesting this … |
|
<?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 |
|
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 very few minutes and I want to display the latest one. <!DOCTYPE html> <html> <head> <title>Picture</title> </head> <body> <a href="index.html">Return … |
|
<?php session_start(); if (isset($_SESSION['username'])) { include("database.php"); $username = $_SESSION['username']; $query = "SELECT * FROM tblpatient_pass p, tblpatient_info i WHERE p.RelationMR_no = i.MR_no AND p.username='$username'"; $result = mysql_query($query) or die(mysql_error()); $patient = mysql_num_rows($result); if ($patient!=0) { while ($row = mysql_fetch_array($result)) { $dMR_no = $row[0]; $dusername = $row[1]; $dpassword = $row[2]; $demail … |
|
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 to how I can take user input for custom domain where site is to be published at, verify that the … |
|
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 is not being executed and it is appearing as text on the webpage. Any help would be really appreciated. <?php … |
|
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 it will clear or highlight a textbox. its working fine using the original function but when i add another xml … |
|
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 action="session2.php" method="post"> <input type="text" name="text" /> <input type="submit" name="submit" /> </form> <?php session_start(); $text=$_POST['text']; $_SESSION['stext']=$text; echo("session is set"); ?> </body> … |
|
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 somebody 'creates a progress' certain information need to be selected from the DB and inserted into other table. for now … |