39,402 Topics
![]() | |
Hi Frendz, I have placed my custom marker on google map in my application. But it displays default marker. Whats going wrong with this code? [CODE=javascript] var icon = new GIcon(); icon.iconAnchor = new GPoint(6, 20); icon.infoWindowAnchor = new GPoint(5, 1); icon.image = 'images/car_blue.png'; var marker = new GMarker(point, icon); … | |
I have do mysql query, i want to export the result data form mysql in term of csv files. What is the code in php? Thanks! | |
Can anyone help me ? What might be the problem ? Parse error: syntax error, unexpected '>', expecting T_STRING or T_VARIABLE or '$' in C:\AppServ\www\wordpress\wp-content\themes\platform\footer.php on line 36 .. [CODE]<?php /* FOOTER This file controls the ending HTML </body></html> and common graphical elements in your site footer. You can control … | |
A user submits values in a form. On the action page I want to check if there is a table on the page whose id matches any values submitted via $_POST. I've seen examples using file_get_html(), but this it not listed as a function on php function list. What is/are … | |
Ok guys, I'm going to start a user generated content site using wordpress. Please suggest me a wordpress plugin. Here are the features i need. Registration/Login User content submit form upon login. User can post the content. A moderator have to approve the content. Once published disable the edit option … | |
Hello! i didnt know where to put this post but i know the PHP section is stuffed with cyber animals who loves to help ;) I need to find a web host that does not police the file copyrights, that allows flash stream from website. I am not interested in … | |
hey m a newbie in php i would love some help on this one i have a section of jokes in my page the problem is i want the two columns 'name' and 'content' to be extracted from database and automatically put in a table where name is a title … ![]() | |
Please correct my syntax: im including a file with the following constants [CODE] define('IPADDRESS', $_SERVER['REMOTE_ADDR'] ); define('BROWSER', @$HTTP_USER_AGENT ); define('REFERER', @$HTTP_REFERER ); [/CODE] if i echo IPADDRESS; i get the ip address (127.0.2) so the include is fine. My mysql instruction is as follows: [CODE] $update = mysql_query("UPDATE login_errors SET … | |
I am having problems loading images from my database. I think it's something with the variable...i am new to PHP and have a project i need to finish by Tuesday. Your help is appreciated. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> … | |
Hi Friends, I am having one contact-us php script. Here i have used php mail function to send email to admin. Even-though i have also used captcha coding, admin is still continuously getting spam (dummy texts) contact us emails. Actually I am not sure how spammers do such activity. If … | |
Hello I want to make through .htaccess (or any other way) to display whenever the user gets a 403 error a 404 error. I don't want it to be done with ErrorDocument because on the header it will still be error 403 and not 404. Reply PLZ! | |
Hello guys! i got a small problem here.. [CODE]<script type="text/javascript" src="jwplayer.js"></script> <script type="text/javascript"> jwplayer("mediaplayer").setup({ flashplayer: "player.swf", file: "data/vid/CHANGETHISNAME.flv", image: "preview.jpg" }); </script> [/CODE] I need to change the file name in this code by a PHP variable gotten from [CODE]$row['movietitle'];[/CODE]. I have no clue, please give me something.. Cheers, Sorcher | |
I'm sorry. The correct URL for the demo upload is here: [url]http://demo.joomlatools.eu/[/url] I can't find the edit post button. Thanks, Rachel [QUOTE=msrache;1548777]Hi, This issue specifically has to do with the CMS Joomla, particularly the component Docman. Since the only available option I have for posting this was under the category … | |
Hi all thanx in advance I want to make a job portal like naukri.com in Php , I have tried many free CMS and scripts but not got too much of it , please do help me with something its urgent....... Thank you | |
I'm trying to determine number of days difference between the due duedate and current date and really need help. [CODE]<?php mysql_connect("localhost", "root", ""); mysql_select_db(numbersdb) or die("Unable to select database"); $query = "SELECT taxrate FROM numbdata" ; $result = mysql_fetch_assoc(mysql_query($query)); $taxrate = $result['taxrate']; mysql_connect("localhost", "root", ""); mysql_select_db(oodb) or die("Unable to select … | |
What is the reglalr eperssion of [CODE]http://www.adexmart.com/product.php?id_product=[B][U]14[/U][/B]&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link[/CODE] in JavaScript. Underlined and bold marked text will vary ?? | |
So I've been doing some reading on what the model view controller is and from what I understand, it is pretty much a way to structure your application but I'm still not that sure and I need some help knowing if I understand the concept correctly. If I start making … ![]() | |
hi, there is a script or something that can read this file? [url]http://ical.imac.com/ical/portuguese32holidays.ics[/url] the ideia is to save all days and holidays for a mysql and then update time to time. thanks for your help :) | |
hey people, i have the following problem, i'm setting up a webshop with over 2k items and every 6months the prices are changing(wines) so i was wondering how to import an xml file into a mysql database without having to go in phpmyadmin. this because i don't want the people … | |
HI! I have a php page. There are music names (they are in array). I want to make a search script. This script must find what someone writes. But if user made mistake while writing, it must find similar music names. Is this possible, or I must use mysql? | |
When i do refresh in php, the data in iframe become blank. How i still get the search results in iframe after press "refresh" button? Thanks! In the iframe, it just like the search information php [CODE] <iframe width="650" height="400" frameborder="0" scrolling="yes" copyhistory="yes" name="Shopping" src="http://localhost/search.php" ></iframe> [/CODE] | |
Hi all.. I am working on a website which require me to handle the image uploading and retrieval. This website is some kind like an image gallery. Straight to the point, i am having trouble in retrieving the last image to be displayed on my view.Clearly to be said, i … | |
Hi, I am new at php so please I beg of you to go easy on me., I have looked on the site and read many tutorials but I am trying to understand the following: When I call session_start() at the beginning of a page a file gets saved to … ![]() | |
Greetings ! I am trying to develop a website, much like hotornot.com, but a little simpler. The idea is: - The visitor comes to my site and selects a category, then he is presented with various images which he can rate. He can rate the images without leaving the same … ![]() | |
![]() | Hi, I'm currently looking at password hashing and from what I've read so far, it seems pretty pointless. I read this [URL="http://phpsec.org/articles/2005/password-hashing.html"]article[/URL] which recommends using MD5 or SHA-1, however I Googled for decrypters and found them witin the first 3 results on Google. I don't quite understand the purpose of … ![]() |
I have a PHP script running in the background that's in the cron to perform specific tasks on a daily basis. When it's completed it's daily tasks, I want to be able to start a 2nd PHP script, but not exactly sure how to go about it. This 2nd script … | |
I'm trying to read the [b]taxrate[/b] from the database table and use it with values from another table. the database and table are correct as is the field (taxrate) from the table, value is 0.06. Then I'm trying to multiply that value by the value of a field from another … | |
wordpress template is good working on localhost but not working Online why? | |
Hello! Quick question, i got a file uploader that can do huge files, so if i want someone to upload 1GB, what do i set the max_execution_time in php.ini to? ![]() | |
Hello everyone. I am trying to write a quiz for a site. Questions are in multiple choice, true/false, fill in the blank etc. The example questions i have can be seen below. I'm trying to plan how am I going to code this. I was thinking of having a table … ![]() | |
Hi experts., I am back again... Now i am working in a Joomla project. Here i have a big trouble for sending mail. Once, i send a mail with entries in Contact module, it says "Could not instantiate mail function" with "Thank you for your mail". But i didn't receive … | |
guys i'm usiung mysql Server version 5.1.36 and i wanted to use this stuff ' , ),{ in my input , but its always coming out an SQL Error for me when i use String Type also still got the error , i used text Type got SQL errors, i … | |
hello guys , i have a table created in php and within this table there's a liked word that will lead to it's topic , and this topic would be stored in the database. then when it's clicked it will show a page and display what has being stored in … | |
Hi Friends I have pasted the code below which i was used in my project. But i am getting mysql_fetch_array() error. For your more information i have attached the screen shot of the error Pls give me solution [CODE]<?php // Inialize session session_start(); include("../config.php"); // Check, if username session is … | |
I want to show some description of my blog post at home page and a read more link when user will click that link it will redirect to post detail page. I am using the_content('Read More...') function. Now how can i give character limit that how many character i want … | |
Hello, I want to learn PHP as I'm interested in designing Wordpress blogs.But I do not know about PHP or CSS.Don't even know the IDEs one has to work on.How should I begin?Please help. Regards | |
Is there any way to list *.css from directories/subdirectories recursively? I want to make a css selector... The following script lists nonrecursively... But i need a recursive list... themeselect.php : [CODE] <?php if (ini_get('display_errors')) { ini_set('display_errors', 1); } date_default_timezone_set('UTC'); if ($_POST['currentcss']){ setcookie('currentcss', $_POST['currentcss']); } require_once('getcss.php'); function right($value, $count){ return substr($value, … | |
Hi frnds .... I am trying to create a contact form in PHP , MySql .... In my form i have two 3 input fields n a Submit Button ..... 1. Name 2. email 3. SecurityCode ( here user have to enter the captcha code ) I am collecting all … | |
In many job vacancies about software engineers,i have seen programming with PHP is a qualification.But as i know PHP is a server side scripting language.Therefore i want to know why they are looking about PHP as other programming languages like c,c++,java & etc.Please explain me...... | |
I am developing an application where I am uploading a file and then it is uploaded to a temporary folder and I see the preview of that image through an ajax call without refreshing the current page.Then after clicking "Save" it saves the file to original directory. The file I … | |
I want to do a picture search engine. I use `simple_html_dom` and `preg_match_all` to get all the image, then use `getimagesize` get all the image size. Here is one part of my code. [CODE]<?php header('Content-type:text/html; charset=utf-8'); require_once 'simple_html_dom.php'; $v = 'http://www.jqueryimage.com/'; $html = file_get_html($v); foreach($html->find('img') as $element) { if( preg_match('#^http:\/\/(.*)\.(jpg|gif|png)$#i',$element->src)){ … | |
I am confused about &reference operator. here i dont understand the call_user_array_func() and referense operator why used here? but can you explain it on my code original source is [URL="http://net.tutsplus.com/tutorials/php/the-problem-with-phps-prepared-statements/"]http://net.tutsplus.com/tutorials/ph...ed-statements/[/URL] i tested it. i want to know what happens there i know this & reference operator but for what reason … | |
I need help! Here's script: [CODE] <?php date_default_timezone_set('Europe/Paris'); $time="1303889758"; echo $time."<br>"; $convert=date("G:i:s d. n. Y. ",$time); //convert $time to our date: output is 9:35:58 27. 4. 2011. echo $convert."<br>"; $con2=mktime($convert); //convert converted time to unix: doesn't work echo $con2; ?> [/CODE] I have two script. One script write the time … | |
hi all, I am new web developer. I don't know the difference between template and theme. explain about template and themes and difference. | |
Hi, I have the following code in test.php file <form name=f1 method=get action="test.php"> <textarea name="question"></textarea> <input type="submit" value="Submit"> </form> If I enter "sample text" its working fine with [url]http://www.example.com/test.php?question=sample+text[/url] But if I enter "Create a view that does not contain the" its throwing the following error message with [url]http://www.example.com/test.php?question=Create+a+view+that+does+not+contain+the[/url] [B]Internal … | |
Hi all, Can anyone help me to solve my problem? I m doing one PHP project in which i maximum used Javascript and Ajax.Now client require that when he close browser session have to automatically cleared means when he open next time that browser he must have to login first. … | |
hey guys, I have a site where users can upload photos, what i want is when they upload photos, then automatically, my site name should be labeled on image so that when some one download that image a watermark of "mysite.com" is printed on that image. any idea how to … | |
Hello, I was wondering if anyone could help me. At the moment, I have some quizzes on a site which store the result in to a database. there are 6 quizzes in total and the the fields in the database are. Quizresult1, Quizresult2 Quizresult3 Quizresult4 Quizresult5 ,Quizresult6. What I would … | |
Hi, I am fetching data from the database.but I want to fetch it in proper format on PHP page. Suppose i insert some data like. 1)chair 2)bed 3)sofa n when i fetch it comes like that 1)chair2)bed3)sofa But i want to do in proper format. 1)chair 2)bed 3)sofa Need suggestion? | |
I am reading from a file, upon certain condition I want to insert rows into a Excel file. This is to be done on a regular basis. The current will be replaced with old one. |
The End.