39,388 Topics
![]() | |
I have a bunch of drop down boxes, then after they are selected the the total amount automatically appears at the bottom.. the only problem is it appeears like this - <span id="resp">Total</span> How would I make this insert into the database? | |
Hi :) i have a question , i have a form on my webpage and i have sendform.php i want to send the form on the page with e-mail to my info e-mail. when i click the send button , i am receiving blank email :( can you help me … | |
Hello Guys In some part of my coding i want to obtain the width and height of an image in terms of PIXELs I tried the following //the rest above aren't important $path = $_SERVER[DOCUMENT_ROOT].'/images/'.$image; $imgdata = getimagesize($path); $imgdata[0] = $width; $imgdata[1] = $height; If ($width > 800 || $height … | |
Hi All, I am still trying to piece all of this together and any help would be apprciated. I have the code (see below) to retrieve data from my sql database. The data being pulled into the dropdown is the user name. There are two additional fields in the database … | |
Hi guys! I have worked on some php code on making my contact form work... I stumbled on a few questions: * I can't figure out why the contact form doesn't send me a notification email telling me someone submitted a form. * I don't know how to send a … | |
Hello, I am hoping someone can help me understand a piece of code i found. Since php is not my primary language, and what i googled returned vague results, i am unsure exactly how a number or integer value can be used directly as a boolean in a while operation. … | |
hi fellas, i just gonna ask if it is possible for example i have a site that has many entry of person and i want to put follow button from facebook,linkedin twit from twitter for each user profile then i click it it will do its task respective task(example follow … | |
Hi... Is there any PHP rich text editor with mathematical functions? | |
Is there a way to get the name of the category and the link to the category page separately [B]inside the wordpress loop[/B]. I don't have the id of the category either and I wanna display images instead of category names therefore the_category() doesn't work for me. Thanks Appreciate all … | |
mysql_query("UPDATE `member_info` SET `tel` = '33333339' WHERE id = '3'"); This above sql statement with php that can be update in database table. But when I change id to be a variable. That cannot update to database But I echo $update_id; $update_id can show be 3 mysql_query("UPDATE `member_info` SET `tel` … | |
Hi there, i was wondering if you can recomend a php class for google maps api v3. I statrted using this one today (http://code.google.com/p/php-google-map-api/) but i wanted to know if there is anything bettter out there... thanks | |
Hello. My registration system is complete, I made the activation function too. The activation link gets send to the email address, but when the user clicks the link, it says invalid code. However, I have set the code to random, and that random code should go to the email address … ![]() | |
When I run this script , I have a error : Warning: Invalid argument supplied for foreach() in C:\Apache\test.php on line 28 <?php $conn =OCILogon("xxxx", "yyyy", "localhost/xe"); $query = 'SELECT *FROM TEST'; $stid = OCIParse($conn, $query); print '</br>'; $stmt=OCIParse($conn,'SELECT *FROM TEST'); $ret=OCIExecute($stmt); $nrows=OCIFetch($stmt,$results); if ($nrows>0) { echo "<table border='1' align='left' … | |
this line of query run in php get the right result which is 4 but I use it in php will only get 1..how come? function totalrental(){ $result = mysql_query("SELECT SUM(Rent_time) FROM product") or die (mysql_error()); $count = mysql_num_rows($result); if ($count >= 1){ echo $count; }else{ echo "0"; } } | |
Hello , Can anybody tell me that is wrong in this statement `$data = mysql_query("SELECT Column1 FROM '$tbl_name' WHERE Column2 = '$image'");` I then tried `echo $data; ` - But no result Basically i want to retrieve the value of Column1 where the value of Column2 is equal to the … | |
![]() | i have been trying to submit form data from an html form into a php database and it returned an error that said unindexed value on line... Yet the code seemed perfect.can anyone help |
Hi all, m a .net programmer, fairly new to php can anyone explain me (m not asking to explain in detail) this php code. its in the index.php of an application. I am not gonna irritate you by posting the whole code. so here's the outline: <?php if(!extension_loaded('ionCube Loader')){ $__oc=strtolower(substr(php_uname(),0,3)); … | |
hi everybody i have this code for selecting data from my sql database but when i outpot it it it looses align ment,can someone help me ,pliz,thanks [code]<?php //The code is for selecting all patients records in the database //This selects the database and connects to the database require_once('Connections/Database.php'); mysql_select_db($database_Database, … | |
hello everybody, it's my first time to ask on forums with hope of your very useful support. I have difficulty to access the value of my variable which i set in other page of anchor tag. here the code is; echo '<li><a title="' . $row['hot_name'] . '" href="1hot.php"?pg= "2">' .$row['hot_name'] … | |
hi everyone i have to integrate 2co into a site, so ive read a lot of the documentation but it just seems to easy to be real??? paypal api is a nightmare when custom making it, but 2co seems to only include a form that you send to the right … | |
Help, I need a free hosting site! I have a website made of PHP that I need to upload to a web server and a VB.net application on my PC, I saw tutorials on how to connect my VB.net application to my database located in the web server with my … | |
I have a GoDaddy account and I want to connect dreamweaver to the mysql server... but I keep getting errors... no matter what I do... can someone assist me? I called GoDaddy, they couldn't answer me so they blamed Dreamweaver... | |
This is my code from frame.php <FRAMESET rows="20, 200" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0> <FRAME src="menu1.html"> <FRAME src="test1.php"> </FRAMESET> I am wondering if there's a way to block people from going to "test1.php" directly? I want people to stay on frame.php and if people try to go to " test1.php " directly, … | |
![]() | -What, how, why? Any things I need to be specifically aware of? Only pros answer please... |
Hello. I created a simple registeration code for my form but I seem to get this error. Parse error: syntax error, unexpected T_IF on line 130. I tried to change everything, double check it. But still I get the same error. if ($_POST['loginbtn']){ $user = $_POST['user']; $password = $_POST['password']; } … | |
![]() | I wanted to validate a string with preg_match but after a lot of struggle I just used if($str[0]!='x'.... but just out of curiosity I wonna know how to do this using preg_match I'm getting a string as an input- the 1st char in the string must be % the 2nd … ![]() |
i have got a very crazy! problem i am trying to erase an image from e web page iwrote this piece of code to show the image and the bullet for the uset to delete $dir2='../../random/images2/'; $files1 = scandir($dir2); foreach ($files1 as $value) { if ((substr($value, -3)==="jpg") or (substr($value, -3)==="JPG") … | |
Hello, I am trying to display various types of search results on a seperate page: Here is my PHP CODE for the form: --------------------------------------------------------------------------------------------------------------- <table width="75%" cellspacing="10" cellpadding="10"> <tr> <td width="22%" class="subtiwhite"><strong>Search by Name:</strong></td> <td width="74%"><form name="form1" method="get" action="searchname.php"> <input type="text" name="namelist" id="namelist"> <input type="submit" name="searchname" id="searchname" value="Submit"> </form></td> <td … | |
I can't seem to display the image.. Here is my code.. <?php $user='root'; $server='localhost'; $db='db_gamecube';//database name mysql_connect('localhost','root'); mysql_select_db($db); $pass=$_POST['password']; $uname=$_POST['uname']; $sql="select * from tb_register where username ='$uname' and password='$pass'"; $result= mysql_query ($sql) or die (mysql_error()); if(mysql_num_rows($result)==1) { session_start(); $_SESSION['guest']=$uname; echo "<form method ='post' action='login_edit.php'>"; $records=mysql_fetch_assoc($result); echo "<table border =10> <tr> … | |
Ok here is the code. ` mysql_query("UPDATE `special` SET `Counter` = `Counter` - 1"); $Counter = mysql_query("SELECT Counter FROM special where Id = 1"); if($Counter == 0) { echo "<meta http-equiv=\"refresh\" content=\"0;URL=winner.php\">"; mysql_query("UPDATE `special` SET `Counter` = `Counter` + 500"); } else { echo "<meta http-equiv=\"refresh\" content=\"0;URL=index.php\">"; } ?> im … ![]() |
The End.