39,323 Topics
| |
[code=php]<style> body { background-color: #eeeeee; } border:0 valign="top" </style> <?php require_once("VatsimPHPgenerator.php"); $VatsimPHP=new VatsimPHP; $pilotlist=$VatsimPHP->pilots(); $flag=0; $found = false; foreach ($p in $pilotlist) { $m = substr($p[11],0,4)."|".substr($p[13],0,4); if (preg_match("/TTCP|TGPY|TBPB/", $m)) { printf("<tr><th>%s</th><td>%s</td><td>-%s</td></tr>", $p[0], $p[11], $p[13]); $found = true; } } if (!$found) print("<tr><td>There are currently no ongoing flights within the Piarco … | |
Hello, I made a page that allows users to login, if id and password are correct than it sets up a cookie and says 'Hi'. Now i can access any page on the site after logging in(Which was restricted if you arent logged) Now this works fine in firefox and … | |
Hello everybody I am in search of free PHP script to add calendar in my forum, can anybody help me in this regard, thanks in advance | |
I'm getting the above error for the following code. Can anyone see what it is? Is my date formatting off? [code] $get_topics_sql = "SELECT topic_id, topic_title, DATE_FORMAT(topic_create_time, '%b %e %Y at %r') AS fmt_topic_create_time, topic_owner FROM forum_topics ORDER BY topic_create_time DESC"; echo $get_topics_sql; $get_topics_res = mysql_query($connection, $get_topics_sql) or die(mysql_error($connection)); [/code] … | |
Hi everyone, I am facing such type of warning is coming in php file.How it can be resolved . I have also used session_start() function in php file as a first line in php code. I have used it just prior to sending output to browser.But still warning is coming. … | |
Hi, I need to set a text feild value unchangable after a user enter first time. I dont want to use it's "readOnly" attribute as it let's the user to select the text. Thanks Regards, | |
i'm trying to modify dirLIST script to show the folder icon instead of having some files in directory which enable the folder icon otherwise the folder icon will not appear.. [URL="http://dir-list.sourceforge.net/"][U]link[/U][/URL] could somebody help me? Steve | |
I found 2 new scripts, here they are: [url]http://hot.ee/antsman333/scripts/script1.zip[/url] and [url]http://hot.ee/antsman333/scripts/script2.zip[/url] The script1 is more stylish than the script2, but it displays the directory files with the same icon.. How could I combine these scripts together that the script1 shows the icon according to filetype like script2? how script1 looks … | |
hi i have problem , rhe code is working properly on local machine but when i upload it on net then it give the warning [COLOR="Red"][B]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home7/wyzerpmc/public_html/wyzer/survey/survey.php on line 22[/B][/COLOR] [code]<html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> … | |
OSCommerce: On the delivery options page in osCommerce, we would like to add an option called UPS. I guess we will need a UPS module added to the osCommerce cart. Please propose a solution for the above mentioned details at the earliest. Thanks in adavance Regards | |
Hi everyone I have a list box called tc_id I have populated this list box with values from teh database. Now i want to fetch values from the database into two text boxes based on the selection made in the listbox. | |
Sorry been out of commision for a few months. Got a newbe question. What value is returned from an sql query that returns no rows? Example: [code=php] $a = "SELECT * FROM a WHERE b = c"; $b = my_sql_query($a); [/code] Note: Table Name - a Table Field - b … | |
hi frnds.. [CODE]var headline = document.getElementById("headline"); var content = document.getElementById("content"); var data = "headline=" + headline + "&content=" + content; xmlhttp.open("POST","newspost.php",true); xmlhttp.onreadystatechange = handleServerResponse; xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send(data); [/CODE] i post data in this way... n the next page i need to retrieve data .. [CODE]$d=$_post['data']; echo $d;[/CODE] output is combination … | |
can i include this [code] <? require('inc_rate.php'); getComments("1"); submitComments("1","$PHP_SELF"); ?> [/code] in a php file but display at certain location at the html file. i tried it to paste the way it was but gave me an error so i did like this [code] require('inc_rate.php'); getComments("1"); submitComments("1","$PHP_SELF");[/code] it worked but … | |
Hi friends, I done my website menu with javascript.here problem is that its not working with IE7 but working properly with IE5. In IE5,when i place mouse on services it is displayed like below submenus will shown.it is fine home services products contact how it works private banks why it … | |
Hello, I got the following code from someone and have tailored it to fit my needs but I have a problem. The first menu populates from my MySQL database. However, when the first menu is selected, the second menu will not populate with the correct information. Zero is the only … | |
Hi, In PHP page, Code below always returns TRUE even no record is updated. How can i solve this problem? Thanks [code] $q="UPDATE login SET password=SHA1('$newPassword') WHERE id='$loginID' AND password=SHA1('$oldPassword')"; $run=mysql_query($q); if ($run===TRUE) { echo "SUCCESSFUL"; } else { echo "ERROR: Old password is wrong. Please try again."; } [/code] | |
Is there a way one could automate daily maintenance task on the website? The maintenance task could include a number of things: cleaning up database, updating the website and so on... | |
php code for sending emails to an account in email server | |
Hi,i done a menu with mouseover using javascript.In IE5 it is coming as hai ramu in IE7 it is hai.downside ramu is coming | |
Ive got a MySQL search, which searches an index of urls. The search parameter searches titles. What I want to do is have something like Google. So, if someone searches: [CODE]site:example.com something to search[/CODE] It would look for example.com in one column then from those results it would look for … | |
hi my interface has spry tabbed panels each in its own form, my problem is whenever i submit data on any of the panels in a form, my page reloads with focus on the first panel(index 0). I've tried a number of javascript methods on the form onSubmit but it … | |
[code=php]<?php define("ContactEmail", "highwebgeeta@gmail.com"); $error_msg = 'The following fields were left empty or contain invalid information:<ul>'; $error = false; $submit = $_POST['submit']; if (empty($submit)) $form_submitted = false; else $form_submitted = true; if ($form_submitted) { $title = $_POST['title']; $name = $_POST['name']; $lname = $_POST['lname']; $address = $_POST['address']; $pin = $_POST['pin']; $country = … | |
Hi, Code below always returns only 1 record therefore i don't need while. How can i get result without while loop? Thanks [code] $q="SELECT id FROM login WHERE username='$username'"; $sql=mysql_query($q); if (@mysql_num_rows($sql)==1) { while ($arr=mysql_fetch_array($sql)) { $id=$arr["id"]; } } [/code] | |
Hi frnds.... I need payment gateways code... i have just basic idea about paypal...i dont know abt code for gateways..here my requirement is it should access all creditcards payments with secure..... i dont know the code is in php or any other way...plz give me some idea abt this...i need … | |
Hello... Good Morning All... How to hide all query strings in my url and here i can't use hidden variables for these all because in all times i couldn't send them with form submission..And my page is having four query strings to be sent... If any body have any clues … | |
hi.. I have encrypted a file in C# using [URL="http://www.codeproject.com/KB/security/DotNetCrypto.aspx"]this[/URL] code .. i will upload the encrypted file to my server.. Now i want to write an Equivalent PHP encrip/decript to use the file.. Can i use mcrypt_cbc() to do the job or is there anything special i need to … | |
hi i'm designing an online evaluation application using php. i was asked to add a feature that enables a user if unable to finish anwering questions can save his/her progress and continue when he/her next logs in. basically i have no idea how to even start. thnx | |
i need to include this file in some other php file if i add a plain text where i want it to display it works but when i include this file it just displays the form and the comments on top of the page rather then where i want it. … |
The End.