- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 35
- Posts with Upvotes
- 30
- Upvoting Members
- 20
- Downvotes Received
- 36
- Posts with Downvotes
- 28
- Downvoting Members
- 10
- Interests
- Reading,Listening to music, singing, programming etc.
- PC Specs
- MS SQL, LAMP,Ajax,jQuery,HTML,CSS,javascript.JAVA,C++OS: - Windows XP/2007, Linux
373 Posted Topics
Re: to store the elements in the binary tree form is not much difficult. Create table with fields 1)element 2)level 3)parent_id in it | |
Re: Have you tried to updaten it to the latest version? Also try ckEditor js code at the end of the html | |
Re: You have written very confusing statements. You want to reset the timer for each question or questions continue to have same timer running. Share your relevant code to spot the correction required | |
Re: Try ` $a=$jsn->{$i}; ` in the place of ` $a=$jsn[$i]->Pic; `. let me know what happens. Also can you echo the output of json_decode() | |
Re: you have done creating the first drop down box so far properly and I think on selecting from this drop down you expect to change the contents of second (sub-category) drop down box. To achieve this you will need to call another script which will load the sub category combo-box … ![]() | |
I have a Premium SEO Pack – Wordpress Plugin installed and with its Facebook planner, we are supposed to authorize app after providing the initial settings. I have provided all the settings correctly. Provided app id, app secret, app domain, site url (through add platform), settings->advanced->enabled browser OAuth login, provided … | |
Re: did you try removing an extra space in the query below - $sql="SELECT * FROM schoolentry WHERE classs =".$q." and division =' ".$k."'"; should have been - $sql="SELECT * FROM schoolentry WHERE classs =".$q." and division ='".$k."'"; ![]() | |
Re: $query = "INSERT INTO booking (firstname, address1, days, months, bookingtime, address2, lastname, cdays, cmonths, duration, datefrom, dteCallTimeTo, meettype, county, cnumber', fee, pcode, comments, user_id ) values ('$firstname', '$address1', '$days', '$months', '$bookingtime', '$address2', '$lastname', '$cdays', '$cmonths', '$duration', '$datefrom', '$dteCallTimeTo', '$meettype', '$county', '$cnumber', '$fee', '$pcode', '$comments', '$userid')"; you were mixing insert and … ![]() | |
Re: [QUOTE=ayesha789;1050144]I can clarify my problem Please give me some hint how to print PDF DOcument using PDF.[/QUOTE] look for some javascript - [CODE]window.print()[/CODE] | |
Hi, I have created a test procedure (for the sake of example to get this working) called test_proc like below - DELIMITER $$ CREATE DEFINER=`tloken`@`%` PROCEDURE `test_proc`(In user_id varchar(100), OUT message varchar(1000)) BEGIN set message ='OK'; END and calling it from php test page like below - $sso = $_GET['sso']; … | |
Re: If we hav any other web server running apart from apache(installed through XAMPP in ur case) the apache wont work. First check for any other server installed. | |
There's trouble in using font awesome icons as they suggest, so I am using them as below - <i class="nimg nicon-ico_help_rnd_lg" style='color: #FFFFFF !important;' alt="Info" title="Color code information" onclick="info()"></i> and style below - .nimg { height: 37px; width: 37px; float: left; /*display: table-cell;*/ display: block; text-indent: -9999px; vertical-align: middle; /*border:1px … | |
Re: you can try to do that by executing below query first - `SET foreign_key_checks = 0;` | |
Re: I would suggest to check the file permissions on the target upload directory and make it writable. | |
Re: you could hide all these notices by modifying the error reporting parameter as below, just for the current executing script, or directly on the server php.ini file `error_reporting(E_ALL ^ E_NOTICE);` | |
Re: try this - [CODE] <?php echo "<a href='http:////digg.com//submit?phase=2&url='$_POST['url']'&title='$_POST['title']' target='_blank'><img src='http:////www.virtualdolphintherapy.com//images//digg.png' alt='Digg' width='64' height='63' border='0' //><//a>"; ?> [/CODE] | |
Re: I guess there is no such inbuilt function in PHP, so you have to do it manually by creating a custom function of your choice. something like below - $arr_find = array('!', '?'); $arr_replace = arrray('', ''); $processed_str = str_replace($arr_find, $arr_replace, $target_str); ![]() | |
Re: can you put `if(mysql_num_rows($result) > 0)` before the `while()` | |
Re: There's a typo in your first line. Also you are passing the parameter but not using it. Which is not a problem, but just to keep it clean, we can remove it too. Find the corrections below - function checkIBAN() { var iban = document.getElementById('IBAN').value.length; if (iban != 24) { … | |
Hello All, I need to modify the default settings for the filesMatch in the apache httpd.conf file from - <FilesMatch "^\.ht"> Order allow,deny Deny from all Satisfy All </FilesMatch> so that to also include - <FilesMatch ".(eot|ttf|otf|woff)"> Header set Access-Control-Allow-Origin "*" </FilesMatch> I would appreciate the suggestions, somehow the combination … | |
Hi, I have come across another programming challenge again and hopefully I wont close the thread myself this time. I am expecting good suggestions or examples from you to do this. I want to build a (scrollable) nested list, from which children of two parents could get swapped after some … | |
Re: [QUOTE=Ouwgel;1045199]<p>How to show pdf file in web page? ex: www.scribd.com</p>[/QUOTE] [CODE]<iframe id="myFrame" style="display:none" width="500" height="300"></iframe> <input type="button" value="Open PDF" onclick = "openPdf()"/> <script type="text/javascript"> function openPdf() { var omyFrame = document.getElementById("myFrame"); omyFrame.style.display="block"; omyFrame.src = "test.pdf"; } </script>[/CODE] | |
Hello, I am installed php 5.3.28 with apache 2.2 and mysql 5.5.38 on windows 64 bit machine, despite configuring php correctly with apache and also enabled the extensions, its not able to recognise the mysql extension loaded. The connection attempt through adodb throws the error "call to undefined function mysql_connect() … | |
Hello, I have an event ('show' & 'click') bounded to the element to make it scrollable using the jquery '.on' method but when I try to bind another event on click like below the alert does not show up - `$('.elem').on('show', function(){//some code here}).on('click', function(){alert($(this).text())});` what I am actually trying … | |
Re: I think good example to use triggers! | |
Hello, I am trying to configure PHP 5.3 on already installed Apache 2.0 on windows machine, using the guidelines mentioned on - http://www.thesitewizard.com/php/install-php-5-apache-windows.shtml So far I have done - LoadModule php5_module "C:/PHP/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/PHP" All these at the right spots in httpd.conf file. I have apache in … | |
Hi All, I have a ajax call in script like below - function testMe() { $.ajax({ type: "POST", url: "http://3.84.46.104/tloken/test/testAjax.php", // data: "ajax=1&elem=" + elem+"&clicker="+clicker, data: "ajax=1", method: "POST", success: function (html) { alert(html+' >>'); return false; // var response = html.split('@'); // document.getElementById(elem).innerHTML = ""; document.getElementById('cmbxCategory').innerHTML = ""; document.getElementById('cmbxType').innerHTML … | |
Hello, I have installed apache 2.2 but when I try to make it listen to 80, I can browse the target page and access denied error is displayed. But when I change the listening port to say 8080, I could browse using this port. I have already tried to check … | |
Re: if the checkboxes are not checked they wont appear in the $_POST superglobal. Try to print your post data like print_r($_POST) and you would know the reason. | |
Re: you could use a blanket and a small popup at the center saying 'Please wait..' while the code is in progress. Alternatively you could create a small heading like div with jquery with a timeout option. it should load till the rest of the html in the page loads and … | |
Re: there are some excel parsers available online , read this, it might help you, instead of posting me the similar thing again - [url]http://amiworks.co.in/talk/readingparsing-excel-spreadsheet-using-php/[/url] | |
Re: $this is used to refer the envoking object inside the class definition. every envoked object would have seperate copy of data members, in order to refer to the envoking object's data member you specify $this | |
Re: make sure to share the relevant code and you have to start the session on each page with session_start() if session_autostart directive in php.ini is not enabled.. | |
Re: you can do so using .htaccess with url rewriting if on apache. on IIS yo have to prepare iirf.ini for the similar reason. A typical rewrite rule in .htaccess file would look like this - RewriteRule ^index.php?username=(.*)$ account_$1/welcome.php | |
Re: when you using [CODE]<input type ="image" src="myfile.jpeg" name="submit" value="Submit"> [/CODE] use [CODE]if(isset($_POST['submit_x']) && $_POST['submit_x'] !='' ){ [/CODE] instead of - [CODE]if(isset($_POST['submit_x'])){ [/CODE] ![]() | |
Re: I am sure the entire code to upload is not inside the post check of submit button like - [CODE] session_start(); require("connection.php"); if(isset($_POST['submit_btn_name']) && $_POST['submit_btn_name']!='') { //put your remaining code (what you posted above) here } [/CODE] and that's the reason you getting the blank rows in the database.. ![]() | |
Re: You already did echoed the uploaded file path on the server. you just need to show the same as a innerHTML of the textbox. | |
Re: what you trying to do actually is you want to validate your inputs like email id etc before sending the mail.the page you linked up here , shows the use of regular expressions to do that in php. Now which is your other form, from two forms you mean to … | |
Re: no absolutely not, mysqli is just the improved extension of mysql set of functions.It should not make any harms. Also post your code dbconn.php for others to see, maybe it needs some improvements. | |
Hi, I am planning to create location tracing based on IP and presenting the relevant contents to the user as par his country, similar to msdn website. I have installed the php_geoip.dll and change the ini file too, to include this dll The dll shows enabled in IIS as well, … ![]() | |
Re: your query is failing for sure, echo the query and post it here. or else execute the query directly inside the mysql and post ,if any error you got there | |
Re: see if this is useful for you - [CODE]<?php echo "<img src="http://thumbnails.alexa.com/image_server.cgi?size=large&url=$siteurl">"; ?> [/CODE] | |
Hi, Needs to construct the tables with the meta info retrived by another stored procedure I wrote, given the table id or name. There could be some flaws in the logic, not sure. The flow is - - iterate through one table which stores tbl name, id info - pass … | |
Re: [QUOTE=meko22;1037879]Hi there, I would like to make an email form that would select all the emails from a MySQL db and then send that message to all addresses. I got this script but was unable to get it working. Any help would be great. [code] <?php //Connect to database mysql_connect("localhost","user","password") … | |
Re: Its going to be hell like complicate than the script above.The script above is producing the blank page because there is nothing to show up in the page ,inside the table it produces. I will advice you to go step by step as below - step 1 - Lets just … | |
what;s wrong with this mysql trigger logically?? [CODE] DELIMITER | CREATE TRIGGER comment_count AFTER INSERT ON comments FOR EACH ROW BEGIN UPDATE sub_sections as t1 SET t1.published_comment_count = (select count(id) as cnt from comments where article_id=t1.id and published=0 and status=0) WHERE id= (select article_id from comments order by date_modified desc … | |
Hi to all experts in the forum. I know scripts can be executed through the command prompt,but what are other ways to execute it, if the file is on remote server. Please specify if any clarification is needed. | |
Re: Even I get the sorted result on windows as Nettsite suggests, but would like to suppress the possible warnings on closedir() and readdir() while in attempt to read files as directories, as @closedir() etc | |
Re: in short what all others are trying to explain you is '==' only checks the contents of both the operands for equality and '===' compares for types (of both operands) too. |
The End.