38,023 Topics

Member Avatar for
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
205
Member Avatar for shhh

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

Member Avatar for LastMitch
0
72
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
244
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
106
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
161
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
176
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
319
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
372
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
272
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
174
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
231
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
502
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
339
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
118
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
225
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
294
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
232
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
Member Avatar for shhh

I want to echo "the select statent to output the total working hours" <?php error_reporting(0); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ms", $con); $id = $_REQUEST['id']; $result = mysql_query("SELECT id , SEC_TO_TIME(SUM(TIME_TO_SEC(out_time) -TIME_TO_SEC(in_time))) AS working_hours FROM timetable GROUP BY id;"); echo "<center><table cellspacing='6'> …

Member Avatar for LastMitch
0
133
Member Avatar for shhh

I want to echo "the select statent to output the total working hours" <?php error_reporting(0); $con = mysql_connect("localhost","root",""); if %

Member Avatar for LastMitch
0
77
Member Avatar for xbat

Say I have two drop down boxes, and I have two columns then after I select the two columns that pulls from the stock tables to give me a total.. Whats the best way or does anyone have an example? Ex Boxes - Yellow box - Red box = All …

Member Avatar for xbat
0
3K
Member Avatar for cussel

> hey guys, how to bold or strong value (string) array 2 D below?? Array ( [0] => Array ( [0] => <b>abcd<b/> [1] => <b>efgh<b/> ) [1] => Array ( [18] => <b>ijkl<b/> [19] => <b>mnop<b/> ) [2] => Array ( [28] => <b>qrst<b/> [29] => <b>uvwx<b/> ) )

Member Avatar for diafol
0
241
Member Avatar for mtho

Hi guys. I picked up a search script on the net but can't get it to paginate at all. Please have a look and help me out. <?php // Get the search variable from URL $var = @$_GET['q'] ; $trimmed = trim($var); //trim whitespace from the stored variable // rows …

Member Avatar for diafol
0
254
Member Avatar for narendra pratap

Dear all, how i can fetch image path in input field. when i update form the image path has lost their path so it is not updated so please do some help. thanks

Member Avatar for diafol
0
233
Member Avatar for pcvrx660

I'm trying to set up a mail server using gmail. So far after modifying code in C:\wamp\bin\apache\apache2.2.22\bin\php.ini. It hangs the page and just loads the browser. I have read that it has to be used with PHPmailer but I don't know how to. Please help me how to set up …

Member Avatar for LastMitch
0
339

The End.