39,316 Topics

Member Avatar for
Member Avatar for mir.jde

Hello there... i watch the Php Academy tutorial of contact forum the thing happening is when i create it in single file it work. **BUT** When I include it in a file it echo errors Cannot modify header information - headers already sent by (output started at /home/iconspor/public_html/contact.php:11) in /home/iconspor/public_html/contact.php …

Member Avatar for almostbob
0
270
Member Avatar for dyingatmidnight

Hi all, I'm having issues with PDO. I'm rather new at using it, I learned php in school and now I'm learning PDO in the work place. Not terribly difficult but I'm running into a looping issue. I have things set up this way. We have events, documents and usergroups. …

Member Avatar for dyingatmidnight
0
173
Member Avatar for PHPuss

$stmt=OCIParse($conn,'SELECT *FROM USERS where USER_NAME = "USER_1"); when I want to execute this stmt , I have problem with "32" , error: OCIStmtExecute: ORA-00904: "32": invalid identifier maybe somebody know how to replace "" to validate character apache 4 oracle 11

Member Avatar for cereal
0
144
Member Avatar for xbat

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?

Member Avatar for xbat
0
2K
Member Avatar for mcrbne

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 …

Member Avatar for broj1
0
244
Member Avatar for Khav

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 …

Member Avatar for Khav
0
181
Member Avatar for jkulp4

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 …

Member Avatar for jkulp4
0
127
Member Avatar for <M/>

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 …

Member Avatar for broj1
0
225
Member Avatar for trishtren

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. …

Member Avatar for pritaeas
0
217
Member Avatar for code739

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 …

Member Avatar for lock3t
0
116
Member Avatar for divyakrishnan
Member Avatar for web_master

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 …

Member Avatar for drewtav
0
2K
Member Avatar for erik216

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` …

Member Avatar for ryantroop
0
124
Member Avatar for extjac

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

Member Avatar for rotten69
0
91
Member Avatar for MrXortex

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 …

Member Avatar for Zagga
0
314
Member Avatar for PHPuss

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' …

Member Avatar for PHPuss
0
115
Member Avatar for devianleong

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"; } }

Member Avatar for JorgeM
0
96
Member Avatar for Khav

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 …

Member Avatar for Khav
0
124
Member Avatar for James singizi

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

Member Avatar for cereal
0
93
Member Avatar for ckchaudhary

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)); …

Member Avatar for ckchaudhary
0
288
Member Avatar for mbabaali

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, …

Member Avatar for gopinathan
0
160
Member Avatar for robanatilahun

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'] …

Member Avatar for robanatilahun
0
218
Member Avatar for shlokka

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 …

Member Avatar for <M/>
0
94
Member Avatar for Ctechnology24

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 …

Member Avatar for chrishea
0
192
Member Avatar for <M/>

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...

Member Avatar for <M/>
0
305
Member Avatar for jeffadrian

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, …

Member Avatar for shlokka
0
160
Member Avatar for iamthwee

-What, how, why? Any things I need to be specifically aware of? Only pros answer please...

Member Avatar for blocblue
0
112
Member Avatar for MrXortex

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']; } …

Member Avatar for MrXortex
0
340
Member Avatar for arcticM

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 …

Member Avatar for arcticM
0
152
Member Avatar for dourvas

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") …

Member Avatar for pritaeas
0
84

The End.