39,323 Topics
| |
Alright, I'm working on my own signature rotator. At the moment the image only updates when the page is refreshed, which I'm fine with for now. However, is it possible to force the script to grab a new image after X minutes if the page hasn't already been reloaded? I'd … | |
This code works fine if I replace the $s variable in the value being assigned to the $query variable with a valid site. The echo at the beginning of the foreach statement works correctly. Looking at the apache error log I see the following: [Mon Oct 26 16:16:36 2009] [error] … | |
Now i extract data from mysql database, and echo them in a table. In the last column of each row, i made a link. It link to the corresponding page according to the value of first column in the row. Now i can't get the solution and have some errors. … | |
hi all, i am not able to print the message which i taken in session variable $_SESSION['msg'] ="* Property details saved successfully" i am posting all the values on the same page and redirected the header to get all the updated values back. but when i use unset($_SESSION['msg']) after echoing … | |
i want to sort qtitle by numbers. anyone can help me with tat.. i tried to modify the code below, but i couldn't find the solution. please help me.. [CODE]<?php $query1 = "SELECT * FROM table1"; $result1 = mysql_query($query1); $i=1; $num_row=mysql_num_rows(result1;) while ($row1 = mysql_fetch_array($result1)) { $qid = $row1['qid']; $qtitle … | |
Hello everyone, I've searched a lot of time today for a solution, but not succeed! I want to insert value from the radio button and checkbox into mysql database. Here is my code: insert.php [CODE] <div id="form"> <form method="post" action="process.php"> <h1>BESOIN </h1> <br><br> <label>Sujet:</label><input type="text" name="sujet" /> <label>Date: </label><input type="text" … | |
Please, what does "(!$var)" mean? I think it might mean "is $var null". Also, what's the PHP reference? Thanks. | |
i am new in this thread..i like to know all of yours.. i am really need help to use chekbox with retrieved data from database..i dont know how...like inbox in our mail.. | |
Hi, I would like some search result to appear on each of my blog page (below my post article) based on certain pre-specified keywords. Say for example, I have a pre-specified keyword "term" for a particular post in my blog. Now when anyone load this post, I would like to … | |
Hi, I got the syntax error in my following php code: unexpected T_STRING in /net/home/z6zhou/public_html/signup.php on line 1. Who can help it out? my php code is as follows: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>Publication DB</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta … | |
Hi. I am developing a system by using php. Problem I'm facing is that when the resolution of computer is changed, the interfaces of my system is effected. The resolution used while developing the system is 1440X900 while I just being told that resolution used for computers in the company … | |
hi all, i am creating a session variable on the property_detail.php page where after updating all the values i redirected the use to the same page with the value in the session to be printed on the same page as "Property details saved successfully". but the problem is when i … | |
name database : db_shop table_user : uid_user, name_user table_shop : uid_user, date table_question :uid_user, date Help me.... if user wants to accessing to page question, script php will check formerly will what him buy or not yet in certain, has user answered what not yet in certain? if buy so … | |
Hey, I was wondering how to obtain a hash value and pass it to php. URL: [CODE]http://www.mydomain.com/#id=110[/CODE] All I want to grab is just the "110". This is my javascript code: [CODE] <script> function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('&'); for(var i = … | |
l want to upload images into mysql as blob type data using php | |
Recently I found a way to upload an image path into a MySQL db while uploading the actual image to the server. This works fine, except sometimes I don't have an image to upload with the story. So - my question: If I don't have an image how do I … | |
Alright, I found this code online which basically solved my issues. [code]<?php header ('Content-type:image/gif'); include('GIFEncoder.class.php'); $text = "Hello World"; // Open the first source image and add the text. $image = imagecreatefrompng('source01.png'); $text_color = imagecolorallocate($image, 200, 200, 200); imagestring($image, 5, 5, 5, $text, $text_color); // Generate GIF from the $image … | |
| Hi, I have 4 menus with a submit button posting to a results page with 4 recordsets getting correct data from data base and displaying it with an if, elseif, else clause. It works - well almost! If a row exists that has all the criteria a user has selected … |
Hello Everyone. I want to make query with php combo box items. When the user click on the items of combo box, the following table will generate correspondent data. Now i can display data in one table, but i don't know how to use it with combo box. Does there … | |
| Hi, I have created a statement using IF, ELSE IFs, ELSE, and it brings up PARSE ERROR UNEXPECTED T_ELSEIF in line... On checking for the solution to this error it often seems that a } has been included or missed, i´ve doubled checked my code and don´t think that this … |
Hi all ive had some syntax errors and have managed to correct 2 lines using advice on this forum but now it has came up with this error Parse error: syntax error, unexpected T_STRING in /home/nebbmhc1/public_html/send_form_email.php on line 18 ive corrected lines 15 and 16 and wonder how many more … | |
PHP scripts can be run using the php-cgi.exe command line interface. However, a web server is a must if you want to have full functionality of the script. "Viewer for PHP" is an open source app that can be used to run scripts in an embedded browser control. It makes … | |
Hi! I need some help... i searched a lot.. but dind't found or worked any code.. so i need help please.. i just need a simple thing... i want to show on a combobox, a list of the things that i have (inserted before on my database-postgreSQL) on a collumn … | |
Hi i am installing joomla ,virtuemart. I have some queries about shipping costs.. 1> sell the product from 5 cites. customer choose product add to cart How to customer to get product in lowest shipping cost Or cart be able to calculate shipping from the nearest city. 2> Customer can … | |
my api parsing script has dynamic url, like scriptname.php?limit=100 here this last 100 will change;varying from 0 to the number of lines from the file returned by first cron. And i want to this script to execute as a cron job, but how this parameter 'limit' i should handle. any … | |
Hi. I need to capture and store the time in database whenever there is application or approval is submitted. (in 24 hours time format) I've tried time() to capture time and strftime("%H:%M", $timenow) to retrieve and dispaly the time. However, the hour for the time is incorrect. Some questions I … | |
sry i'm not really familiar with $_FILES. but i have a quick question. why isnt this uploading? here's my code: [CODE]<?php $file = rand(10,100) . $_FILES["file"]["name"]; if ((($_FILES["file"]["type"] == "application/octet-stream")) && ($_FILES["file"]["size"] < 400000)) { if ($_FILES["file"]["error"] > 0) { echo "Return Code: " . $_FILES["file"]["error"] . "<br />"; } … | |
Hello everyone, i have a little problem with variable variables if the variable is an multidimensional array and the indexes are not fix so, they are dynamic. I need something like this: [code=php] $varName = "data"; $varIndex = "[1]['items'][4]['items'][]"; ${varName.$varIndex} = 'xyz' ; // this does not work as php … | |
Hi everyone Don't know if someone can help me with my problem. I'm trying to get a total from a loop variable name($cost), I'm running a for loop, thats getting values from mysql, all that i need is for the $cost value to be added up. Code example: [code=PHP]$sql="select * … |
The End.