39,320 Topics
| |
echo "<script type='text/javascript'>alert('. $row['working_hours'] .');</script>"; | |
**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 … | |
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 … | |
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 … | |
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 … | |
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"; } } | |
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 … | |
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 | |
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 … | |
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 … | |
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= … | |
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) … | |
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 | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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: … | |
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" … | |
> 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 … | |
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'> … | |
I want to echo "the select statent to output the total working hours" <?php error_reporting(0); $con = mysql_connect("localhost","root",""); if % | |
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 … | |
> 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/> ) ) | |
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 … | |
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 | |
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 … | |
Hi all, I am having this problem, which I cant seem to find out why is happening. I have an onchange function on one select list, which returns another select list just under, with values to choose from. But when the form is submitted, PHP gives me an error: Undefined … |
The End.