39,326 Topics

Member Avatar for
Member Avatar for PriteshP23

I would like to know the best way to manage the two drop down menu on the PHP page. 1st menu : Select Type of House (House1, House2, ) 2nd menu : Select Number of Rooms (1,2 .. 12) The system should be displayed price based on selected items. Need …

Member Avatar for PriteshP23
0
292
Member Avatar for andreas.rew

Hello, could you help me please? I have the code below. There is a form at form.php and sends some information (name, email, age) at insert.php where is the code below. In insert.php there is also another form for addinional information but I want data from the first form and …

Member Avatar for pritaeas
0
137
Member Avatar for dbalas

Hi! I need to insert data in to two tables in a same database at the same time. One will be editable where i will remove stock but one will be history where all data stays intacted. Is it possible to do it?

Member Avatar for dbalas
0
138
Member Avatar for nCODE

Hello, I need to obfuscate a file that communicates with my server. This is to prevent (or make it harder for) the nullers. Is there any good FREE PHP obfuscator? Thanks!

Member Avatar for pritaeas
0
266
Member Avatar for keltik

I found this script which generates a row in a table. I additionally want it to alter the name-field of the row it generates, because the data of each newly generated row is needed to be saved into a database later. However clicking only creates a row without renaming the …

Member Avatar for cguan_77
0
205
Member Avatar for rotten69

Hey everyone, I have just uploaded my php files onto a free hosting server and tried to access the website. I got this error " mysql_fetch_array() expects a resource in parameter 1" or something like that. By the way, the files did work on my local machine. What is the …

Member Avatar for paulinetaylor85
0
191
Member Avatar for wackyal

I am having trouble trying to update my comment, well I also don't know why my table isn't displaying on my updatecomment.php page. How do you delete a comment too. If you see any other errors please feel free to fix it. Thanks in advance <!-- start dbconfig.inc.php page --> …

Member Avatar for LastMitch
0
801
Member Avatar for geneh23

Hey everyone, So I'm doing a project just for the heck of it. However, I'm stuck on an issue. I want to query the database to select the last comment in the answers table so I can display it on the main forum page under the specified topic. How do …

Member Avatar for LastMitch
0
206
Member Avatar for shhh

echo "<script type='text/javascript'>alert('. $row['working_hours'] .');</script>";

Member Avatar for LastMitch
0
73
Member Avatar for Vingklippt

**Okay, first of all, I'm quite new to programming at this level. I have managed to create a dynamic administrationpanel for updating the current menues of a restaurants homepage.** ISSUE - The more posts in the table, the longer the space between the page top and the databasetable gets. I’ve …

Member Avatar for Vingklippt
0
246
Member Avatar for <M/>

How do I generate numbers in php that display (for example) Lead Number... To picture this... It'look like this (phone numbers are random): Lead # Name Phone 1 Bob 911 2 Jack 119 3 Joey 191 4 Ashley 9110 5 Michael 0119 So how do I create that column on …

Member Avatar for <M/>
0
116
Member Avatar for rotten69

Hey everyone, I haven't recently done my research on this yet. I can recall from memory that I did some short research on storing images in a database and also had some questions answered in the forum about it. Additionally, I was told it is not a good practice to …

Member Avatar for diafol
0
162
Member Avatar for mmcdonald

Hi all, I have a very nasty issue here where SQL values are changing but I haven't been hacked because the changes are just too abnormal. People vote for their servers and every so often the top few servers values roll back. For example at 03:00 a server has 66 …

Member Avatar for diafol
0
177
Member Avatar for eburlea

Hello. The code below returns an error. Please advise what is wrong with it. Thank you. class Login { private var $good_username; private var $good_password; public function Authentification () { private $this->good_username = "myusername"; private $this->good_password = "mypassword"; } }

Member Avatar for eburlea
0
324
Member Avatar for minitauros

I just started wondering.. I have a bass class, let's say a class called Framework. This class contains a lot of functions and sets a couple of variables that are used inside other classes. What would be the most efficient way to access these variables from inside other classes? Should …

Member Avatar for jkon
0
382
Member Avatar for navi18

I have a folder which consists of .doc and .xls files..i want to search a particular file from a folder and display the contents using php code.how to do it?i am new to php

Member Avatar for navi18
0
2K
Member Avatar for engiman

Hello I want to count online users in my website. The way which I found in most of the websites is that to insert a new row in a table containing user's IP and visit time and consider an idle time for example 3 minutes and in each visit delete …

Member Avatar for diafol
0
206
Member Avatar for Gerbiler

I have recently been working on a job with a client who gets their data from county data. The county data is contained in .dbf files. Every year the data is updated and my client will get a CD/DVD from someone containing the county data in .dbf format. Now the …

Member Avatar for Ujube
0
319
Member Avatar for ismael ahm@d

Hi Friends, I am trying to send a file via email and upload on a server as well, but unfortunately the file uploaded successfully while attachment sent to email there when i preview or download so it contained error, below following code is: <?php if(isset($_POST["Submit"])) { $to = "abc@gmail.com"; $subject= …

Member Avatar for urtrivedi
0
175
Member Avatar for rakibtg

I am using PHP Simple HTML DOM Parser * [Manual] to fetch data from websites. Now what i wanna do is to remove first three words from all span which has `class="yeah"` from the fetched content So i have implement this code but it has a problem: foreach($html->find('span.yeah') as $xdat) …

Member Avatar for rakibtg
0
232
Member Avatar for lilly_adam

Hi when i submit a form the session id changes in a page (and stick the same in single tab for other pages) but it is different in different tabs. how to fix that ? thanks in advance

Member Avatar for Zagga
0
511
Member Avatar for rotten69

Hey everyone, I'm having a trouble with the navigation bar when redirecting users to other pages. For example, if a user logs in, then they will be redirected to the main page (mysite/index.php) but the url displays as mysite/login.php which is the pure PHP script that doesn't contain any HTML …

Member Avatar for rotten69
0
227
Member Avatar for Clanstrom

Hi all. I have a site with articles and members and since the url ends for both like.. site.com/articles.php?id=232 or site.com/ref.php?user=3232 I costumised this script I found online to costumize the url. I did for the profiles which is working, but I can't add for the articles: RewriteEngine On RewriteCond …

Member Avatar for mbhanley
0
150
Member Avatar for dancks

I am making a basic craigslist type website with a search function. There is a field where you can enter what you think the name of the product might be and my search function is supposed to find names of products that match. so for example a user can enter: …

Member Avatar for diafol
0
350
Member Avatar for shhh

How to calculate the total working hours of an employee from a set or records? I have a table named timetable. it contains id,in_time,out_time. id varchar(20) att_date date in_time timestamp out_time timestamp the sample details are id date in_time out_time C001 2009-10-31 2009-10-31 11:30:00 2009-10-31 12:00:00 C001 2009-10-31 2009-10-31 12:30:00 …

Member Avatar for diafol
0
119
Member Avatar for Riu 2009

Please Help!! i have been trying to get some help on displaying data from mysql in a sequence (like a course). basically i want my student to view and learn the couurse that has been saved in mysql database in learningmaterial table, the table contains images, audio files, online documents …

Member Avatar for Riu 2009
0
226
Member Avatar for webline

Would apreciate if someone can help with below solution. I need to put customer registration details to the third party database via api requests using Get variables. I have the folowing information. https://www.thirdparty.com/API/Request.ashx?command=createcustomer&username=_&password=_&customer=_&customerpassword= Variable Value Description command createcustomer username X..140 the username of the reseller password X..100 the password of …

Member Avatar for diafol
0
182
Member Avatar for bradly.spicer

Hey guys! So I've been working on a plugin which allows people to add an iframe depending on the input fields and then that is displayed when a shortcode is created. However It isn't making it a shortcode. <?php /* Plugin Name: Minepress Minecraft Dynmap Plugin Plugin URI: http://minepress.co.uk Description: …

Member Avatar for bradly.spicer
0
295
Member Avatar for HunainHafeez

i want that by pressing the one button ,the input data should be send on my both following domains.but by this coding the data just send to the 2nd domain.. `Inline Code Example Here` <form name="Form1" method="post"> <strong><span style="font-size: small;">Username:</span></strong><input name="username" type="text" /><br /> <strong><span style="font-size: small;">Password:</span></strong> <input name="password" type="password" …

Member Avatar for minitauros
0
233
Member Avatar for cussel

> hey guys, how to get all word in first index in array below and next index get last word in array 2 D??,.. example: $arr = array( array( '7'=>'repsol kawasaki honda ktm', '8'=>'kawasaki honda ktm bmw', '9'=>'honda ktm bmw ducati', '10'=>'ktm bmw ducati yamaha' ) , array( '23'=>'lamborghi ferarri …

Member Avatar for cereal
0
326

The End.