39,326 Topics

Member Avatar for
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
161
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
221
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
95
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
194
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
306
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
Member Avatar for spacehans

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 …

Member Avatar for hericles
0
319
Member Avatar for HometownHero

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

Member Avatar for HometownHero
0
204
Member Avatar for azgold

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 …

Member Avatar for Zagga
0
166
Member Avatar for adishardis

Hi, I tried to figure this out but i'm shooting in the dark :) What I want to do is compare two values, either value1 against value2 or if value2 is empty then value1 against value3. add to that, that I want to echo different images depending on the result. …

Member Avatar for adishardis
0
116
Member Avatar for hayatuzair

Hey guys, I want to make or download a script that would allow my users to creat social networks or blogs of their own. I have the social network ready, but i cant seem to get the main site up. I want someting that would give me the following features: …

Member Avatar for <M/>
0
212
Member Avatar for GerryL417

Hi, Over the last few weeks I've been getting e-mails to my e-mail address, not spam, and the subject matter is blank. Usually, I avoid things like this, but being a tech for 15 yrs., my curiosity got the best of me, because I new these people.When I opened the …

Member Avatar for <M/>
-1
129
Member Avatar for vizz
Member Avatar for ryantroop
0
124
Member Avatar for laura301019

Hi I have an array $months which holds the months of the year. I have a funcion echoArray($theArray) which contains a for loop to print out the months as month 1 is January, month 2 is February etc. I now have to create another function reverseArray which will output the …

Member Avatar for blocblue
0
191
Member Avatar for MrXortex

Hello. I am trying to create a registeration system on my website using PHP and MySQL. BUt whenever I put <?php ?> tags and start coding and test it, I get this error Parse error: syntax error, unexpected T_STRING on line 39 Here is my code: <?php $form = "<form …

Member Avatar for Squidge
0
274
Member Avatar for unnamedpersona

Im new to cakePHP and the whole table relations concept is very confusing! I have 2 tables, competencies and competenceRatings. competencies stores a list of names with ids. competencies ------------ id name And users can select various competencies from this table and rate them and their ratings are stored into …

Member Avatar for iamthwee
0
106
Member Avatar for extjac

Hello, I would like my customers to be able to add fields to a form, with differnt values, etc.. Basicly, i would like them to be able to add any type of fields and customize their forms; like google forms for instance. And of course, i need the databse to …

Member Avatar for iamthwee
0
83
Member Avatar for PHPuss

I have two problems... Here is code : <?php // Create connection to Oracle $conn = oci_connect("root", "admin", "//127.0.0.1/xe"); $query = 'select * from TEST_RESULTS'; $stid = oci_parse($conn, $query); $r = oci_execute($stid); print '</br>'; // Fetch each row in an associative array print '<b> MONITORING SRODOWISK TESTOWYCH </br>'; print '</br>'; …

Member Avatar for Squidge
0
1K
Member Avatar for laura301019

Hi so i have a table created and it is to display the users age in column one, then in the second column half of the age and the last column is to display double the age. I know how to do this part, however the next part is to …

Member Avatar for laura301019
0
107
Member Avatar for akuvidz

i have problem with my code, it didn't say any error but it wont receive a data from the textfield.. is there something wrong with my code? here is the code.. <?php include('config.php'); $email=$_REQUEST['email']; $sql ="SELECT * from employee where emp_work_email = '$email'"; $hasil=mysql_query($sql) or die("E-mail is invalid".mysql_error()); $data=mysql_fetch_array($hasil); $sql1 …

Member Avatar for jayan.bee
0
146
Member Avatar for CarterLangley

Hi again guys, I am getting information from a table that I would dearly love to format using my css styles in an external css sheet. Now I am calling the sheet in the header correctly, tested that to make sure. Here is the code I am using. This generates …

Member Avatar for CarterLangley
0
417
Member Avatar for gk1993

$u = mysql_real_escape_string($_POST["username"]); $p = sha1($_POST["passwd"]); $q = "SELECT * FROM profile WHERE email=`$u` AND passwd=`$p`"; $run = mysql_query($q); if(!$run){ echo mysql_error(); } this creates *Unknown column 'mymail@gmail.com' in 'where clause'* error. This code is from a tutorial and a piece of a submit-new-post php page.

Member Avatar for gk1993
0
160
Member Avatar for thomasjc

This may already be out there in the forums, but I really don't know what to search for to find it. What I'm looking for is a way to have a dropdown filled with values, and have it select a value from the database and display it. For example. On …

Member Avatar for almostbob
0
924
Member Avatar for <M/>

I am building a contact form, and I made it out of html and css, but I can't apply php to it in order to make it functional... I wanted it to have the abilities to notify me if someone submits form, the ability to only apply valid information, and …

Member Avatar for <M/>
0
264

The End.