39,320 Topics
| |
Hello Guy, I have coded a successful log of accounts in localhost but when i uploaded this to webhost. These set of codes dont work anymore. Please help these are the codes. Student_login_handler.php include_once 'Connect.php'; $flag = ""; $learner_id = mysql_real_escape_string(htmlentities($_POST['learner_id'])); $student_password = mysql_real_escape_string(htmlentities($_POST['student_password'])); $student_id = htmlentities($_GET['id'], ENT_QUOTES); $student_id = … | |
I have news pages generated dynamically using page news.php taking data that is input into a MySql table and would like to have the page title to be the same as the news headline of each page. I'm searching internet and although there is lots of info on this subject … | |
I have this table that i have been modifiying and working with for some time now, its for displaying lots of data both condensed and expandle for each row but also searchable and sortable. Here is my problem, my table used to have perfect sorting and searching before i added … | |
Is it possible to integrate Openbiblio with other free and subscription based libraries like openlibrary etc | |
Hi Everyone, I am looking for the best way to create a PHP MYSQL Query to help me output a complete list of categories from my db. The categories are football team names & I would like to display everyone who supports each football team. For Instance: I have 44 … | |
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 … |
The End.