39,320 Topics

Member Avatar for
Member Avatar for DaveyMoyes

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 ?

Member Avatar for <M/>
0
89
Member Avatar for fafa.gagga

**# 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 = …

Member Avatar for cigoL..:)
0
184
Member Avatar for Sunday1290

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

Member Avatar for blocblue
0
107
Member Avatar for Threza

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 …

Member Avatar for blocblue
0
288
Member Avatar for yousaf1214

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 …

Member Avatar for devianleong
0
213
Member Avatar for mgt

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 …

Member Avatar for Threza
0
115
Member Avatar for adishardis

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

Member Avatar for adishardis
0
122
Member Avatar for DaveyMoyes

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 …

Member Avatar for DaveyMoyes
0
4K
Member Avatar for dany12

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

Member Avatar for dany12
0
77
Member Avatar for pritaeas

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 …

Member Avatar for extjac
4
451
Member Avatar for apanimesh061

<?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://') === …

Member Avatar for Traevel
0
810
Member Avatar for presly

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.

Member Avatar for presly
0
148
Member Avatar for apanimesh061

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 …

Member Avatar for apanimesh061
0
156
Member Avatar for ravz414

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

Member Avatar for pritaeas
0
59
Member Avatar for salii

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 …

Member Avatar for salii
0
196
Member Avatar for Raakesh399
Member Avatar for HasNor

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

Member Avatar for ryantroop
0
169
Member Avatar for laetitia--

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 …

Member Avatar for ryantroop
0
1K
Member Avatar for phanisk

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 …

Member Avatar for ko ko
0
284
Member Avatar for Geonith

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?

Member Avatar for mnelson4
0
6K
Member Avatar for showman13

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 …

Member Avatar for showman13
0
104
Member Avatar for Stardemos

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 …

Member Avatar for Stardemos
0
164
Member Avatar for Stardemos

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 …

Member Avatar for Stardemos
0
505
Member Avatar for sniga.mareka

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 …

Member Avatar for cereal
0
605
Member Avatar for arctushar

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.

Member Avatar for fpaquin
0
1K
Member Avatar for reibi

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 …

Member Avatar for cereal
0
3K
Member Avatar for apanimesh061

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

Member Avatar for apanimesh061
0
1K
Member Avatar for devilhacker

Is there any way that i could get my computer geographical location from php of from another language? I would like help and suggestions if you could help me! Thank you.

Member Avatar for almostbob
0
916
Member Avatar for newbie26

hey..can somebody help me. how can i display the days based on the workweek inputted by the user? example..i have a textbox and user will input what work week he wants to view. and on click event of a submit button, the days will be displayed in a table starting …

Member Avatar for blocblue
0
256
Member Avatar for brainfo

hi. I successfully created a portfolio section in wordpress with quicksand with the help of http://wp.tutsplus.com/tutorials/theme-development/create-a-quicksand-portfolio-with-wordpress/ site. And now am having problem that when ever i click any view detail page it shows " This is somewhat embarrassing, isn’t it? It seems we can’t find what you’re looking for. Perhaps …

Member Avatar for blocblue
0
244

The End.