39,320 Topics

Member Avatar for
Member Avatar for Giovanne

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 = …

Member Avatar for hanspeare_1
0
199
Member Avatar for AllanSS

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 …

Member Avatar for diafol
0
2K
Member Avatar for berserk

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 …

0
156
Member Avatar for Prince_9

Is it possible to integrate Openbiblio with other free and subscription based libraries like openlibrary etc

Member Avatar for Prince_9
0
108
Member Avatar for lloyd.farrell.7

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 …

Member Avatar for pritaeas
0
288
Member Avatar for fireburner29

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 = …

Member Avatar for fireburner29
0
464
Member Avatar for london-G

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 = …

Member Avatar for DaveAmour
0
193
Member Avatar for anmol.raghuvanshi1

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 …

Member Avatar for broj1
0
303
Member Avatar for padma525
Member Avatar for sankartomogo
1
3K
Member Avatar for UK-1991

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 …

Member Avatar for diafol
0
6K
Member Avatar for Helder_1

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 …

Member Avatar for lps
0
762
Member Avatar for rpv_sen

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" …

Member Avatar for rpv_sen
0
2K
Member Avatar for fireburner29

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.

Member Avatar for fireburner29
0
453
Member Avatar for Geekmonir

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 …

Member Avatar for broj1
0
196
Member Avatar for mattyd

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 …

Member Avatar for broj1
0
245
Member Avatar for Stefce

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 …

Member Avatar for Stefce
0
231
Member Avatar for davy_yg

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?

Member Avatar for davy_yg
0
245
Member Avatar for fireburner29
Member Avatar for fireburner29
0
864
Member Avatar for spud91

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 …

Member Avatar for hericles
0
215
Member Avatar for Geekmonir

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 . …

Member Avatar for broj1
0
176
Member Avatar for christos312

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 …

Member Avatar for DaveAmour
0
803
Member Avatar for rkara924

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 …

Member Avatar for rkara924
0
319
Member Avatar for stokie-rich

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 …

Member Avatar for stokie-rich
0
7K
Member Avatar for ramsiva

$min=7500; $hours=$min%60; but it is not working. I am facing convert minutes to hours. please help me

Member Avatar for diafol
0
124
Member Avatar for Jaklins

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: …

Member Avatar for diafol
0
441
Member Avatar for mattyd

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 …

Member Avatar for diafol
0
261
Member Avatar for enterdani
Member Avatar for singhsd2005

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", …

Member Avatar for diafol
0
451
Member Avatar for annya

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 …

Member Avatar for annya
0
470
Member Avatar for london-G

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 …

Member Avatar for almostbob
0
3K

The End.