39,316 Topics
| |
how to retain when update files in php? My Script is here: <?php if($_POST['updatesitesettings']) { $target = "uploads/2015/"; $target = $target . basename($_FILES['profile']['name']); $ok=1; move_uploaded_file($_FILES['profile']['tmp_name'], $target); if($target == "stored/") { $target = "Attachment is Empty"; } $site_name = $_POST['site_name']; $site_description = $_POST['site_description']; $site_tag_line = $_POST['site_tag_line']; $contact_email_address = $_POST['contact_email_address']; $contact_phone_number = … | |
Hi Guys, I have this piece of code that should basically retrieve the priduct ID and display the producton a different page when clicked. I must be doing something wrong because I keep getting "nothing selected" even though the product ID is selected(also displayed on the url(www....../productview.php?prodid=1) <?php $product_id = … | |
| hello every one i have one small doubt i have the following code i want the user to enter the coupon code which has been randomly generated and saved in database now i want that when user enter the coupon code it is cross checked from database i.e entered coupon … |
Hello Sir I want the php code to import the excel data into mysql . pls hel me Thanks | |
Hello I have created a small form for users that they can easily preview then submit the form so like 1st phase user fills the form and click on preview then on preview page thier submitted information will be shown up and at the bottom of the page they will … | |
I am posting this doubt already as a last resort. I want to insert 0 or 1 into the Boolean / TINYINT. I used var_dump and I see that html always passes as False (0). I will post part of the code of html, php and mysql. Any help will … | |
Hi I collected the code from internet. i am trying to use dependent dropdown in the popup screen. i can able to display first dropdown in a popup but i am unable to display the second dropdown. can any please help me to fix that issue. **test.php** <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.0/themes/base/jquery-ui.css" … | |
Hi there, I am developing shopping cart website using php pdo. what i want, stock quantity has to decrease when an order is placed. Give me some idea guys. | |
I tried to get some data from my function but I couldn't, Can any one help me I have some data in functions file, from this page into my index page public function selectData($table, $where = null, $wheree = null, $where1 = null, $wheree1 = null) { $QUERY = mysql_query("SELECT … | |
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 … | |
Hello i want to make to show adds but on every 10th ticket i have tried with for loop but its adding too much adds here is the code: if($is_active == 1 && $is_shared == 1) { for($i=0; $i <= 1; $i++) { echo "<table id='t01' style='margin: 5px;'><tr><th colspan='2'>Publisher: $publisher … | |
Hello, In my htdocs/ I have two folders: folder1 & folder2: I am trying to redirect : folder1/index.php ------> www.contoh1.com folder2/index2.php -------> www.contoh2.com how to code it? Someone told me to utilize this: http://php.net/manual/en/reserved.variables.server.php but how to code it? | |
Hi there, Please help How to add dynamic textbox (row) and save to database using PHP PDO? | |
I have the following code: <?php session_start(); include_once("config.php"); $query = "SELECT Category FROM books"; $result = mysqli_query ($mysqli, $query); echo '<select name="dropdown" value=""><option value="">Dropdown</option>'; while($row = mysqli_fetch_array($result)) { echo '<option value="' . $row['Category'] . '">' . $row['Category'] . '</option>'; } echo "</select>"; ?> the values of the drop down box … | |
is there any way to access the variables of this function outside ? public function selectData($table, $where = null, $wheree = null, $where1 = null, $wheree1 = null) { $QUERY = mysql_query("SELECT * FROM " . $table . " WHERE '" . $where . "' = '" . $wheree . … | |
Hello to everyone. First of all let me say that I know that there are TONS of threads with the same subject. BUT the other threads are dealing with PHP vs ASP question in general and I have a specific question. :) So, I have to choose between PHP and … | |
I am having an issue at with the browser refresh button. For some reason when I go to a page and click refresh it takes me back to wherever I started. For instance if the user goes to the Home page first then goes to Projects and then clicks refresh … | |
Morning people hope you're all well. I really need some advice from yourselfs. As you might know I'm in the middle of creating my own website. The site will let users register and to log in. I want to create a quiz I have found some code from this site … | |
$min=7500; $hours=$min%60; but it is not working. I am facing convert minutes to hours. please help me | |
TLDR: When large amounts of files (array values) are in the array, the loop will iterate through all the values but only execute part of the foreach statement for some of them. When that happens, it will always affect the same files (in file order, not file name). Detailed version: … | |
I have been cleaning up my server of useless files - I double-checked each file to make sure it was definitely unneeded, so nothing I removed is causing this issue. This is the bug; It involves a form: * I filled out a form and submitted it to the DB … | |
why this code give error like "Warning: json_decode() expects parameter 1 to be string, array given in <b>E:\wamp\www\datefun\show_cart_update.php</b> on line". Please help me. I am new in php and json <html> <head> <title>Untitled Document</title> <script src="js/jquery-1.9.1.min.js"></script> </head> <body> <script> function update_cart_detail() { var aData = new Array(); aData[0]={ "session_id":"64qu9ng2o8o996s21bjt9321h1", "order_id":"26", … | |
Hello Iam getting an error in the pagniation page "Warning: mysql_real_escape_string(): Access denied for user 'username'@'localhost' (using password: NO) in /home/livehuqu/public_html/abcd.com/pptindex.php on line 19 " Warning: mysql_real_escape_string(): A link to the server could not be established in /home/livehuqu/public_html/abcd.com/pptindex.php on line 19 Iam using the same code in other website and … | |
Hi Guys, I have been trying to display the images from the database with the code below. Images are not displayed. <?php while($product_data = mysqli_fetch_array($query_product_result)) { $num_rows_products = $num_rows_products - 1; Print "<div class='image_panel'><a href = 'products.php?prodid=" . $product_data["ID"] . "'><img src='data:image/jpeg;base64," . base64_encode($row['image']) . "' alt='' /></a></div>"; Print "<h2><a … | |
Hi everyone. I want to store greek letters in mysql table my table collaction is utf8_general_ci and i'm calling this function after database connection mysqli_query($connection, "SET NAMES 'utf8'"); mysqli_query($connection,"SET CHARACTER SET 'utf8'"); but all greek letters in database are like "??????? ???" Question mark how to resolve this ??? I … | |
Hi Guys! I have the following code: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>View shopping cart</title> <link href="style/style.css" rel="stylesheet" type="text/css"></head> <body> <br> <div id="books-wrapper"> <!-- #content to center the menu --> <div id="content"> <!-- This is the actual menu --> <ul id="darkmenu"> <li><a … | |
I need to change this script to c# as i am writing an MVC 5 website or any suggestions on how I can write it in C# it basically takes the post data from a rfid reader and pushes it to a web url. Thanks if you can help at … | |
Hello, I am still having problem with this basic stuff in CI: viewlatihanci.php <button type="button" onClick="parent.location='cadd_latihan/'">Add Latihan</button><br><br> routes.php $route['default_controller'] = "latihanci"; $route['cadd_latihan'] = "cadd_latihan"; $route['scaffolding_trigger'] = ""; cadd_latihan.php <?php class Cadd_latihan extends Controller { function index() { $this->load->model('modellatihanci'); $data['records'] = $this->modellatihanci->tangkapdb(); $this->load->view('viewlatihanci', $data); } } ?> I wonder why when … | |
Hi guys, creating a log in script so my users can login to my website. This is the code so far <!DOCTYPE html> <html> <head> <title>Richard Hemmings </title> <meta name="viewpoint" content="width=device-width, intail-scale=1.0"> <link href = "css/bootstrap.min.css"rel = "stylesheet"> <link href = "css/stylesheet.css" rel = "stlesheet"> </head> <body> <div class = … |
The End.