39,323 Topics
| |
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 … | |
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 --> … | |
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 … | |
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 … |
The End.