39,393 Topics
![]() | |
On my MySQL search what I want to do is redirect a user to another page and show an error message if the search returned no results. But for some reason the user never gets redirected. Can you spot my problem? :| [code=php] $sql = "SELECT * FROM `list` WHERE … | |
Dear All, I have created a button using Google Toolbar. you can refer it on below link [url]http://toolbar.google.com/buttons/apis/howto_guide.html[/url] when we click on the button, it will grab the current URL that the user viewing in the broswer to my website and saves the URL for future reference of the User. … | |
my OS is Windows XP, i have installed apache server (2.0 X) .. i am writing a script to send an email via php mail function. [code=syntax] <?php $to = "myAddress@hotmail.com"; echo "1"; $subject = "Hi!"; echo "2"; $body = "Hi,\n\nHow are you?"; echo "3"; if (mail($to, $subject, $body)) { … | |
hi, i'm creating the admin section for a multi-level category search/navigation system. i mean like, when a visitor comes to the site and they are looking for data, first a list of categories appears. for example ..... states....departments......etc. so when a user clicks on states, he gets another list of … | |
Hi Please tell about these But First look at them. ####################################### com=whois.crsnic.net net=whois.crsnic.net org=whois.publicinterestregistry.net info=whois.afilias.net biz=whois.neulevel.biz us=whois.nic.us co.uk=whois.nic.uk org.uk=whois.nic.uk ltd.uk=whois.nic.uk ca=whois.cira.ca cc=whois.nic.cc edu=whois.crsnic.net com.au=whois.aunic.net net.au=whois.aunic.net de=whois.denic.de ws=whois.worldsite.ws sc=whois2.afilias-grs.net mobi=whois.dotmobiregistry.net pro=whois.registry.pro ################################## Just like them i want to know about the whois of the following?? .in .co.in .biz .info .name .tv … | |
Hi, all i have one project about doing pizza ordering system using PHP+XML So about the design website part i already have bunch of ideas. The part make me stuck is the XML part. The following is what required: [LIST] [*]. [/LIST]Spend some time thinking about how best to represent … | |
Im sure this has been discussed endless times but I can't find anything which will do it how I want to. I want to seemlessly execute some PHP onclick. It will just update a row in MySQL and I dont want the user to be aware of this happening. How … | |
Hii I want to design a contact form with multiple fields like title, firstname, lastname,country,email,address,pincode on one page at the bottom with next button and on other page want to add some more fields with checkbox and radio buttons .... please tell me how to design it and its coding … | |
[code]<script language="javascript"> function funAgree(){ document.form1.action=""; } function funDisagree(){ document.form1.action="2.php"; } </script><img src="images/detail.jpg" alt="" /></td> <td width="435"><form id="form1" name="form1" method="post" action="mail.php"> <span class="large">Title(eg.Mr,Mrs,Dr)<br /> </span> <input name="title" type="text" id="textfield" /> <br> </label> <br> <span class="large">First name *<br /> </span> <input name="name" type="text" id="textfield2" /> <span class="small"> </label> (required)</span><br> <br> <span class="large">Last … | |
[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. … | |
Hi People, I've created a couple of install pages for a client (install.php and install2.php) My question / problem is... In install2.php i want to unlink install.php and install2.php via a hyperlink or button and i was wondering how best, if it is possible, to achieve this. Can anyone help … | |
hi i have some file in my ftp.now i am saving my file in a folder.please tell me how to refer the file outside the folder. eg require_once('../common/dblayer.php'); the above is to refer a file inside a folder.how do the same for outside a folder | |
[QUOTE]I am haveing trouble with updating a row out of a table. If there is one row in the table the edit works ok. But if I have more then 1 row in the table it will only let me edit the last row can any body help on this. … | |
Hi frnds... I am new to Ajax..i know some minimum basics about ajax.. i know some what php and mysql... So, plz send me ajax login form and registration form....i am trying to learn ajax with database....plz anybody help me... Cheers.. | |
Im having trouble ending sessions for some reason :| Heres my code. Can anyone see what the problem is? [code] <?php include('includes/config.php'); unset($_SESSION['isLogged']); session_destroy(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> </HEAD> <BODY> <?php echo '<div class="nav">'.$navigation.'</div>'; ?> You have been logged out. </body> </html> [/code] | |
hi, I am trying to learn how to upload multiple Music files to server then save information about them in database e.g. albumname, filename, type and maybe url. i have few questions: 1. would i be able to write the albumname in database as the folder i am uploading to. … | |
Hi guys, this is a brainteaser for me and I'm wondering if you could help. Lets say I'm looping through these results from MySQL, and the result set is as follows: ID------Name 4------ Anthony 76------John 31------Andrew 98------Sonia If I was on the 2nd row (with an id of 76, name … | |
Can someone clarify me the difference between CHAR and VCHAR and which one is best to be default type in my all SQL queries? Is it VCHAR or CHAR? :D | |
can you include arrays[] in header urls? I have the following but it doesn't work so I am thinking it might not be possible. [code] $name = strtolower($_POST["name"]); $name = stripslashes(ucwords($name)); $email = strtolower($_POST["email"]); $emailx ="/^[a-z0-9]+([_.-][a-z0-9]+)*@([a-z0-9]+([.-][a-z0-9]+)*)+\\.[a-z]{2,4}$/"; $alphaspace ="/^[a-zA-Z]+((['\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/"; if ($name=="") { $error[] ="Name is a required field please … | |
does anyone know of any good resources for php regex for form validation. I am looking for good regex for name: (including -.' and no spaces in the first space no doubles of ..''-- phone: again no spaces at the start allowing + and - alpha: only lowercase letters no … | |
Hello all, first time working with PHP, had a question. Working on a friend's website, we thought we'd be wicked cool and add a dynamic photo gallery. I stunbles across this neat pile of code: [code=php] <?php $columns = 2; $thmb_width = 120; $thmb_height = 80; function resizeImage($originalImage,$toWidth,$toHeight){ // Get … |
The End.