39,326 Topics

Member Avatar for
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
606
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
920
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
269
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
245
Member Avatar for arcticM

I want to put my html in a php variable and use this variable in the .html() but it doesn't work as I expect it to..how can I do something like that? $var="<p>test</p>"; //this works $return['script'] = "jQuery('#form_pop_out').html('<p>test</p>');" //those don't work $return['script'] = "jQuery('#form_pop_out').html('$var');" $return['script'] = "jQuery('#form_pop_out').html('{$var}');" $return['script'] = "jQuery('#form_pop_out').html('".$var."');"

Member Avatar for arcticM
0
123
Member Avatar for saadi06

HI, I am have a string and I want to remove <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /> from this string.I have tried str_replace but of no use can any one help that how would I remove this problem from my string. Thanks in advance.

Member Avatar for ryantroop
0
168
Member Avatar for Danny159

Hey guys, I am currently learning wordpress and I am having some trouble with Custom Post Types... I have added all the code for custom post types in my theme functions.php file however the links to the single posts done seem to work... they just go to my 404 page? …

Member Avatar for brainfo
0
124
Member Avatar for LastMitch

Hi I having problems understand permission files. I actually took apart some cms platform that has a permission file. The issue is that how to write a simple permission file? So far base on the CMS, I took apart. This is always appears: if (!$_SESSION[""]) { die('You do not have …

Member Avatar for zexlover.deeppassions
0
216
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
271
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
249
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
218
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
118
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
315
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

The End.