39,326 Topics
| |
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 … | |
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. | |
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 … | |
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 … | |
| 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."');" |
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. | |
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? … | |
| 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 … |
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 … | |
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. … | |
$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 | |
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? | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
Hi... Is there any PHP rich text editor with mathematical functions? | |
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 … | |
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` … | |
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 | |
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 … | |
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' … | |
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"; } } | |
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 … |
The End.