39,402 Topics
![]() | |
I tried to insert data using the following code, but I really I don't know how can I get result and what is the problem in my code, I tried to build firstly my form then I write the insert query and send it to a new form , any … | |
hai, everybody, I have multiple checkbox fileds. how to add images in each fields this is my templete my plan type field is 10 types. user select plan type 1 add image1 plantype2 ->addimage2.png <div><span class="field-label">plantype: <img width="20"src="images/layout/image1.png " /> <?php echo str_replace(',','<br/>',$meetnewpeople['plantype']) ?></span></div></br> $this->widgetSchema['plantype'] = new sfWidgetFormChoice(array('multiple' => true,'expanded'=>true, … | |
Hello i can not figure out how to take images from my database to jQuery gallery. User uploaded images in the data base. Images are sorted by date. And how I can do, what all imges goe's in the jQuery gallery, besause now i can get all imges in one … | |
can you help me with my code, kindly give me or take a look at my codes in embedding a captcha pls...thanks...asap! <?php $submit = $_POST['register']; //form data $first = strip_tags($_POST['first']); $middle = strip_tags($_POST['middle']); $last = strip_tags($_POST['last']); $username = strip_tags($_POST['username']); $password = strip_tags($_POST['password']); $repeatpassword = strip_tags($_POST['repeatpassword']); $email = strip_tags($_POST['email']); $street … | |
Oracle : 11.2.0.1.0 Apache 2.0 Handler PHP Version 4.4.9 Windows XP I have problem to connect with Oracle 11g. Log apache : PHP Warning: Unknown(): Unable to load dynamic library 'C:\\Program Files\\Apache Group\\Apache2\\php\\extensions\\php_oracle.dll' - The specified module could not be found.\r\n in Unknown on li when I open phpinfo : … | |
Hi There, I'm busy developing a PHP / MySQL billing system for our company but can't seem to get the following working for me. I need to have 1 page that will display the extensions billing period / month for local, national and international calls and it needs to be … | |
Hi Everyone I have a problem regarding PHP Array here is the code: $array_of_arrays = array( array[0] = value1, value2, value3; array[1] = value4, value5, value6; array[2] = value7, value8, value8; ); Well i want to skip array[0] in loop. i just want to start the process of loop from … | |
Hi there, Can anyone help? Why is the following code displaying "P1P2P3..." etc, instead of "P1 , P2, P3 ,.." etc. ? Thanks Paul <!--Conect to database--> <?php include "connects/patientconn.php"; ?> <?php $query = "SELECT `Patient I.D.` FROM `patient`"; $result = mysql_query($query); while($patient = mysql_fetch_assoc($result)) { $pt = implode(" , … | |
Hi. I am new in coding and sufferin from some basic issues. I've been trying to write and searching codes for writting into xls file for 3 days but could not find a suitable one. The problem is:  I created a page with textareas and submit/reset button like … | |
How to Bookmark website without informing user(visitor) of website? And How to set as browsers homepage without informing user? | |
Hi all, I am retrieving information from a database and need to have that information put onto a new line (<br>) depending on the location of the comma which seperates the different areas of the information. Here is what is being retrieved *2.25 L 75 hp (56 kW) I4 petrol … | |
Hi everyone, I am looking for an editor or plugin for Komodo or Eclipse that provides me with the CakePHP function autocompletion and syntax correction as well. Thank you all. | |
Hello world, I am stumped, someone please help me with some code. I have created a purl, example: www.mydomain.com/purl However, I want people to first go to www.mydomain.com. On the homepage, I want people to enter their phonenumber (which is the purl) in a textbox. I am looking for a … | |
pls lead me ... i want to create a web app like gmail | |
<?php $con = mysql_connect("localhost","ourinter_admin",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("ourinter_database", $con); $sql="INSERT INTO donation( firstname, lastname, gender, country, fulladdress, phone, emailaddress, donate, total, creditcard) VALUES ('$_POST[firstname]', '$_POST[lastname]', '$_POST[gender]', '$_POST[country]', '$_POST[fulladdress]', '$_POST[phone]', '$_POST[emailaddress]', '$_POST[donate]', '$_POST[total]', '$_POST[creditcard]' )"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo … | |
A newbie here I am having an error with this code. If I logged in with correct username and password the "Sorry please log in" is appearing not the home page :( I am having a hard time to check if the user has log in or not when opening … ![]() | |
Hi guys, I read about this problem but can't figure what should I change. Can you please help? Here's my code: <?php // Title: Contact Form - Dolce Forno GB // Updated: 9/8/2012 // Author: Veronika Horvathova //Validation code if (empty($_POST) === false) { $errors = array(); //variables $name = … | |
i want to have a space between a div <div class="img"><a href="#"><img src="2.jpg"></a></div> <div class="img"><a href="#"><img src="3.jpg"/></a></div> | |
Hi guys. I want to insert an advert after the first article on my blog. It's not a wordpress or other generic blog. I have an idea on how i should do it but it just doesn't work when i try. I use a do-while loop to call the articles. … | |
I keep getting this error message when I try to 'login' to my php member system that I'm creating. Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\acrd\includes\header.php:24) in C:\xampp\htdocs\acrd\login.php on line 21 Here is line 21 header('Location: index.php'); Here is my code. Please help! … | |
Hey guys, Having an issue with a webpage I am building. I can get it to save the name of the image, however when I echo it out and im trying to include it as an img src tag it tells me I have a syntax error. I think this … | |
Hi Everyone, I am a beginner in PHP and would need your help with this. I get this problem: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in database.php on line 207 Here is my code: include("constants.php"); class MySQLDB { var $connection; //The MySQL database connection var … | |
I've been getting this error after I insert the require_once('login.php') I've checked both files and I don't have any empty lines after the php closing tags as is usually the case with this error This is the code [CODE]<html> <head> <title>Home</title> </head> <body> <link rel="stylesheet" type="text/css" href="style.css"/> <?php require_once('login.php'); require_once('appvars.php'); … | |
I'm trying to get a flot graph to show my jsonencoded array seen below: [["aa",71],["ab",69],["ac",66],["ad",61],["ae",79],["af",78]] In the array the first is what i want on the xaxis and the second is the corresponding value. Right now my flot graph outputs an empty chart and I'm thinking that the array need … | |
Hi all - I have the following variable in my code $url=urlencode(''.$token.''); How can I add &app_data=any_string_here to the above variable, everytime I add it, I get an error saying unexpected | |
I'm trying to make multiplication in web shop that will show real price: **discount * tax * product price * 1 piece= real price** But I just don't know how to do it, I try 1 million things, spend about 48h just to make it, but, without success, no matter … | |
function returnnotify(){ $result = mysql_query("SELECT * FROM rentcustomer WHERE Expiredtime = CURDATE()"); $count = mysql_num_rows($result); if ($count >= 1){ echo $count; }else{ echo "0"; } } now when I run the code above ,it will prompt out this error: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in … | |
i want to create a folder on server using php and make it writable so tht i can upload files to it using form... can someone help me with script on making folder and making it writeable on server. thanx | |
I've been having a bit of problems with a file. Here is the script that I'm having issues with and the exact error is as follows: Parse error: syntax error, unexpected $end in /hermes/bosweb/web168/b1683/ipg.xoizocom/pba/login/index.php on line 239 <?PHP require_once("globals.php"); $INFO = array(); $ipsclass = new ipsclass(); $ipsclass->vars = $INFO; $script … | |
I am trying to get into php object oriented programming. <?php class myClass{ public $myVar="this is demo"; public function myTextdemo(){ echo $myVar; } } $obj= new myClass; echo $obj->$myVar; ?> It says > Fatal error: Cannot access empty property on line 11 What's wrong with my code? | |
<?php $title=$_POST["title"]; $theme=$_POST["theme"]; $con=mysql_connect($dbserver,$dbusername,$dbpassword); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db($dbname, $con); $query=mysql_query("SELECT * FROM setup WHERE id=".$_SESSION['id']); $result = mysql_query($query); $num_rows = mysql_num_rows($result); if ($num_rows > 0) { while($row = mysql_fetch_array($result)) { $_SESSION['id'] = $row['id']; $_SESSION['title']=$title['title']; $_SESSION['theme']=$theme['theme']; } { mysql_query("UPDATE setup SET title='".$title."' , theme='".$theme."'WHERE … | |
Hello, I want to display the fields that were updated. When a user edits their information, example; "FIRST NAME:John LAST NAME: Stih Update to:UPDATE users SET firstname = '$firstname', lastname = '$lastname' FIRST NAME: John LAST NAME: Smith I would want it to print "You updated your Last name" | |
Tons of errors. Keep getting parse errors....line 45, 59...every time I get one, more pop up...please help. <?php session_start(); //ini_set( "memory_limit", "128M" ); //error_reporting(5); // added in by jaime to insure they are logged into the admin if(!$_SESSION["loginOK"]){ $err=1; $message="You must log in first"; exit; } if($_REQUEST["button"]=="Return to Main Menu"){ … | |
I am trying to make a forum and still thinking what language to use ASP.net or PHP. Can any one tell me the Pros and Cons of each language ? | |
Hello, The following script writes to a file include.php <?php $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start=""; $Fnm = "./include.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file != 'index.htm')) { $result="{\nlevels: [\n{ file: \"$path2$file\" }\n],\n\ntitle: \"$file\"\n},\n"; fwrite($inF,$result); } … | |
Ok, I am very new at php coding but I thought I would give it a shot. I am building a site for a friend of mine for his video game team. The problem I am having is they want an application form so I made the form but I … | |
![]() | OK I've got another interview! Thanks to pritaes for the links etc. Never thought I might be doing a programming job but hey, it's a laugh I guess. I have a few questions I may want to ask about OOP in version 5, but also codeigniter and joomola... So learning … |
Hello, I created a site where you have to log in and it begins a session. I wanted to make a stay logged in feature so I started using cookies. I made it so if there was no session then check for cookies. My site also sends out emails with … | |
Hi all, I am working on a generic form validation class. However I have hit a stubling block. Form fields will never be the same from user to user. Is there a work around for this? Would it be easier to use numerical values for field names and use multiple … | |
I have a configuration table with one row per configuration item (id,category,name,value,description,comment). My objective is to create a single edit page that shows all, or a subset, of these values and allows me to edit them. I could probably create a page with a separate form and submit button for … | |
Dear members, I'm in serious problem. I need a tool which can get all content information of a website and at the end these information will produce a CSV. That CSV will be imported in another database...can anyone help me regarding this issue.. | |
I on my drop down boxes it keeps on selecting more than one option I just want it to select out of one row... for some reason this won't work nothing shows - $query["cost1"] = "SELECT ourprice as text, ourprice as value FROM `fruitinventory` WHERE seeddescription='%s' AND fruitdescription='%s'"; Something shows … | |
Hey guyz...help me! I have a live site which is working perfect. I have migrated the whole site to localhost and the DB too but some links (url) are not working...Error 404..i don't know from where links(url) for articles can be edited. | |
I have calendar in php and two veriable : date3 , data4 When i run a statement <input type="button" name="button2" id="button2" value="Date" onClick="javascript:alert('from date : '+this.form.date3.value+' ,to date: :'+this.form.date4.value);"> I have in response two dates I need to use this dates in query to oracle to filtr result from db. … | |
hi.. I build vb.net server application/net remoting (desktop) base on ORM (nhibernate) with output web service (soap). My public function used Iset type (iesi.collections from nhibernate) as parameter such as : function save (byval s as Iset) as boolean then,I build client using PHP to call that function via webservice … | |
we have a new team in odesk and we are web developer team but we are confused about our team web site developmet. please see our [site](http://www.teamworkerpm.com) and give us a suggetions about our site. and you can see our odesk profile team. [odesk profile](https://www.odesk.com/users/~~927d1abd625ccb19) thanks all | |
Hi all, is it possible to add ?variable=value to the end of a facebook application url ? for example: facebook.com/pagename/app_abcdefghij/phppage.php?variable=value then use a _Get to query a mysql database ? | |
**# How to insert it to another table of database using the submit to approved?? #** **my error is below in the submit to approved..anyhelp guys** **Select is working but inserting to another table got error** <table border="1"> <?php include("db.php"); $result=mysql_query("SELECT * FROM reserve"); echo "<tr><td>Reserve ID</td><td>Month</td><td>Day</td><td>Year</td><td>Event</td><td>Name</td><td>Address</td><td>Phone Number</td><td>Email</td></tr>"; while($test = … | |
Hey Guys, I build an array, which pulls its information from a database. Here is the code: $querygrp = "SELECT DISTINCT RTRIM(GRP)as GRP FROM TABLE WHERE END_DATE = '".$daterange."'"; $ORIGRP = odbc_exec($db, $querygrp); while (odbc_fetch_row($ORIGRP)) { $filtergrp[] = (string)(trim(odbc_result($ORIGRP, "GRP"))); } This works perfectly and reads in the correct values. … |
The End.