39,323 Topics
| |
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. … | |
I have a page called projects.php to let the users submit their bid information via form. When the user is logged in, he can submit this form. But am not able to find out which user has applied to the job unless I specify a username field in the form … | |
Hello all i have some problem with update query. select query works all right but update qurey doesn't i have tried to to run that query in mysql directly from phpmyadmin and it runs fine ... can you check what i m missing here in code in update query and … | |
Usint PHP, I'm trying to add the username, used in a login form, to the MYSQL table of another form. Scenario: User "x" logs in (providing his username, "x", and a password). The username and password are stored in a MYSQL table called "users". Once "x" is logged in, he … | |
Hi everybody, I really should know this but I can't get it to work... :-O I'm just trying to call a page based on the username of the person who is logged in! <?php include ({$session->username}/file.php\); ?> Preparing to feeling stupid... Peace Adam | |
Hi all, I have a facebook page tab application that is hosted on my server. If I navigate to the FQD location the page will load as you would expect. What I would like to do is detect if the page is being loaded inside an iframe, ie. being displayed … | |
htaccess transform contact.php in contact? I have tried this to transform index.html to index but is not working RewriteRule ^index\.html$ http://localhost/Seaweb/index/ [R=301,L] any help apreciated | |
In addition to [my post in this thread](http://www.daniweb.com/web-development/php/threads/429740/php-best-practice#post1841569) I've decided to post an extended example, which also implements functions for inserts and updates. I hope the code is straightforward enough. If not, reply and let me know. The table structure I've used for my test is the following: CREATE TABLE … | |
<?php include_once('simple_html_dom.php'); function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://books.rediff.com/categories'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); $urlarray = array(); foreach($html->find('a') as $link) { $findme = 'http://'; if (strpos($link->href, 'http://') === … | |
I heard using php we can create web site. Is it true? if so then can any1 post link of simple learning material? please do help me. | |
There is a list urls like "http://books.rediff.com/categories/travel/general/2288" I wish to find out whether they start from "http:/" or are relative urls starting from "/", if true store them in an array ! ... if (strpos($html->href, 'http://') <= 0) { array_push($urlarray, $link->href); } ... This does not work .... How should … | |
Hi, We are to develop a social networking kind of web app for our and our clients' employees. The number of users can go high. My question is which platform would be better for this project, considering performance speed as the main criteria and faster development as the second criteria. … | |
Hello. I'm trying to upload a logo to my website. I have to replace <h1 id="logo"></h1> to <?php theme_logo(); ?> The code is: ?> <<?php echo $tag; ?> id="logo">> <a href="<?php echo get_option('home'); ?>/"><img src="<?php bloginfo('template_url'); ?>/images/logo.jpg" alt="<?php bloginfo('description'); ?>" /></a></<?php echo $tag; ?>> When I change it the code … | |
how to create a web form from key words typed b y users | |
Dear experties, I want to display data from Mysql by keyword but my code doesn't work. Maybe you have suggestion for this environment. please... | |
Hello, I am newb with php I got a strange message error, that is: [U]Notice: Use of undefined constant y - assumed 'y' in /home/www/healthforum.uib.no/htdocs/ohcsurvey/survey/sp1.php on line 139 [/U] I am making a survey where the user , by cliking radio buttons, can choose between yes or no to a … | |
I have a php web service returning json data. My problem is that when i call the json data from url returns nothing but when a call a local file with exactly the same data (copy from the url) works fine. The json data i receive are for example {"ResponseData":[{"Code":"91010001","Description":"ISADORA … | |
from a string that's pulled from a mysql database? i know stripping new lines is [code] $d = str_replace("\r\n","",$d);[/code] but what about tabs and extra spaces? | |
This may be a no brainer, I'm not sure, but just wondering if it is causing problems. Is it acceptable to use both GET and POST for transferring data in the same script? Here is what I have, and I seem to be getting eratic results, so trying to pinpoint … | |
once more again, here I am with questions. this query, dont let me update fields where I have leter's,but do the job with numbers... the output of the last test: *Unknown column 'sfas' in 'field list' UPDATE entrada SET codprod=13, lote= 123, val=sfas, designacao=tyr5rtdjbgyug, filtro=jghhjg, familiamarca=ghgjhfhf, quantguia=12, quantconf=12, atado=1, posicao=20a15 … | |
I need to, select data from a table and then make changes and update is the same tabele and another table. Right now my code is very simple and is giving some erros, right now, he just search the table. can you hepl me? <?php //conecção ao servidor mysql_connect("localhost", "root")or … | |
Hi, I would like to know how to create a dynamic xml playlist that is automatically updated as mp3 files are uploaded. I want the playlist for flabell29 flash mp3 player, which can be found at flabell.com. The playlist icludes album art location, artist name, track title, duration, album title … | |
Hello I m not clear about class. Can anybody help me. Actually what is different between class and function. When I will use functiona and when I will use function. | |
Hello everyone, I am trying to create dynamic dropdown of category and when a particular category is selected then it should show sub-category automatically from the database. I have used this using javascript in OOP PHP but having difficulty while using it with codeignitor. So please anyone, help me with … | |
<?php include_once('simple_html_dom.php'); function get_url_contents($url){ $crl = curl_init(); $timeout = 5; curl_setopt ($crl, CURLOPT_URL,$url); curl_setopt ($crl, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($crl, CURLOPT_CONNECTTIMEOUT, $timeout); $ret = curl_exec($crl); curl_close($crl); return $ret; } $url = 'http://books.rediff.com/categories/fiction-genres/2180204'; $outhtml = get_url_contents($url); $html= str_get_html($outhtml); foreach($html->find('a') as $link) { echo "<a href =".$link->href.">".$link->href."</a><br>"; } ?> This gives all the … |
The End.