39,323 Topics

Member Avatar for
Member Avatar for mark103

Hi guys, I need your help, I want to close a page when a button is pressed. I'm using the script `add_address.php` to output a list of email addresses from the `message` box and I want to output the email addresses to the `text` box in the `send.php` script Here …

Member Avatar for edbr
0
222
Member Avatar for Makara

Hello. I have displayed data from SQL Table in the HTML form and I want to use this same form to update COMMENT field in the sql. I have already coded my page as follows; <?php // Connect to server and select databse. $con=mysql_connect("localhost", "root", "")or die("cannot connect"); mysql_select_db("ison",$con)or die("cannot …

Member Avatar for Makara
0
2K
Member Avatar for TMLAH

Hello, I have a script that allows user to upload a file to a mysql 5 database. That is working OK. The File size is accurate. However, my download script is for some reason downloading the files without any content - 0KB. The files are OK when I open them …

Member Avatar for abhisheklnt
0
6K
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
289
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
306
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
767
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
246
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
867
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
216
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
804
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
442
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

The End.