619 Posted Topics
Re: Is this like a POLL? Check this link [URL="http://www.codeproject.com/KB/HTML/phpoll.aspx"]http://www.codeproject.com/KB/HTML/phpoll.aspx[/URL] Try to build some logic and start working on coding part. | |
Re: Why do you want two separate table? You can have only one table and use number of TD you want. Make loop proper for closing each TD & TR. | |
Re: Generally if form post some data on any page, better you do all db related operations or other php coding at top of page and then redirect user to some page using header. [CODE]header('Location:index.php');[/CODE] without header you may face problem. e.g. if user POST data and you have insert query … | |
Re: Why are you giving position? Try without [B]position: absolute;[/B] | |
Re: I think you need group by. check this [URL="http://vibhajadwani.wordpress.com/2011/08/03/left-join-with-limit/"]http://vibhajadwani.wordpress.com/2011/08/03/left-join-with-limit/[/URL] | |
Re: You can use base64_encode function to encode text or id. [CODE] echo "<a href='reject.php?name=".base64_encode($name)."&officerid=".base64_encode($pofficerid)."&officername=".base64_encode($pofficername)."&txt1=".base64_encode($ss)."'>Reject</a>"; [/CODE] On reject.php you can decode it back. [CODE]$name = base64_decode($_GET['name']);[/CODE] But i advice to pass only one id, and then on reject.php fetch rest data from database using id. | |
Re: You need php class which can do all database related stuff. check this link [URL="http://net.tutsplus.com/tutorials/php/real-world-oop-with-php-and-mysql/"]http://net.tutsplus.com/tutorials/php/real-world-oop-with-php-and-mysql/[/URL], it's nice tutorial you can go through it. | |
Re: There are lots of ready available script. Download files and try out demo. [URL="http://barcode-coder.com/en/barcode-php-class-203.html"]http://barcode-coder.com/en/barcode-php-class-203.html[/URL] [URL="http://www.createwebsite.info/generating-barcodes-with-php/"]http://www.createwebsite.info/generating-barcodes-with-php/[/URL] [URL="http://www.mribti.com/barcode/sample.php"]http://www.mribti.com/barcode/sample.php[/URL] | |
Re: Ohhh... you have same code 6 times..Is this code by you? for debugging echo sql query and run it directly in database and check if you are getting desired result. [CODE] echo $sql="SELECT * from generators WHERE convert(datetime,convert(char(10),TIMESTOMPX,101))= '$search'"; exit; [/CODE] | |
Re: [URL="http://www.qualitycodes.com/tutorial.php?articleid=20&title=How-to-create-bar-graph-in-PHP-with-dynamic-scaling"]http://www.qualitycodes.com/tutorial.php?articleid=20&title=How-to-create-bar-graph-in-PHP-with-dynamic-scaling[/URL] [URL="http://jpgraph.net/"]http://jpgraph.net/[/URL] | |
![]() | Re: what is html code of drop down boxes? you need to give value to option tag e.g. [CODE]<option value="2200">2200</option>[/CODE] |
Re: Try with quote. [CODE]SELECT * FROM `date` WHERE date BETWEEN '2011-01-01' AND '2011-12-31'[/CODE] | |
![]() | Re: Check if sessions are displaying on the same page or not? [CODE] <?php session_start(); $_SESSION['color']='red'; $_SESSION['size']='small'; $_SESSION['shape']='round'; echo '<pre>'; print_r($_SESSION); ?> [/CODE] |
Re: What about this code: [CODE] <? $isChecked = 1; // change it to 0 and then run ?> <script language="javascript"> function Toggle(id,chk) { if(chk) { document.getElementById(id).style.display = "block"; } else { document.getElementById(id).style.display = "none"; } } </script> <input type="checkbox" name="" <?=($isChecked == 1)?('checked'):('');?> onclick="Toggle('test01',this.checked)" /> Yellow Box<br /> <div id="test01" … | |
Re: Here is a link for dynamic password generator using JS. [URL="http://javascript.internet.com/passwords/random-password-generator.html"]http://javascript.internet.com/passwords/random-password-generator.html[/URL] | |
Re: Normally this error comes in pc if file you are trying to access is already used by some another app. You mean to say when you copy paste some html tag this error comes? ![]() | |
![]() | Re: [CODE] <? $links = array( array("url"=>"...first.php","label"=>"first"), array("url"=>"...second.php","label"=>"second"), array("url"=>"...third.php","label"=>"third"), array("url"=>"...fourth.php","label"=>"fourth") ); $link = $links[array_rand($links)]; echo "<ul>"; echo "<li><a href=\"{$link['url']}\">{$link['label']}</a></li>"; echo "</ul>"; ?> [/CODE] ![]() |
Re: check this [URL="http://www.w3schools.com/PHP/php_mysql_insert.asp"]http://www.w3schools.com/PHP/php_mysql_insert.asp[/URL] | |
Re: It may be because of un paired { or }. Post complete code. | |
Re: Try [CODE] $date = $_POST['date'];[/CODE] instead of [CODE] $date = var_dump($_POST['date']);[/CODE] And also make sure date should be in proper format i.e. 20011-08-20 | |
Re: for dot try below rule if it works. [CODE]RewriteRule ^([^_]*)$ ./profil.php?user=$1[/CODE] | |
Re: 1) Check spelling of table name. once you have "cek1a" and second is "cekla". 2) if spell is proper and still its not working then add below code on top of test2.php and post output. [CODE]echo '<pre>'; print_r($_POST['delete']); exit;[/CODE] | |
Re: Hi Newbie, Check this link [URL="http://www.daniweb.com/web-development/php/threads/369623/1588766#post1588766"]http://www.daniweb.com/web-development/php/threads/369623/1588766#post1588766[/URL] it will guide you how string concatenation works in php. | |
Re: You need SMTP server.. Even if you have live SMTP server's credentials you can send mail via that also. Check this phpmailer link. [URL="http://phpmailer.worxware.com/index.php?pg=examplebgmail"]http://phpmailer.worxware.com/index.php?pg=examplebgmail[/URL] | |
Re: [CODE] function validNumber(str) { var tomatch= /^[0-9]{10}$/ if(tomatch.test(str)) return true; else return false; } [/CODE] | |
Re: Firstly use CODE tags for posting ur code. What is working in ur code and what is not working?? Are you not able to generate xml? Here is a link to add markers using xml. [URL="http://econym.org.uk/gmap/basic3.htm"]http://econym.org.uk/gmap/basic3.htm[/URL] | |
Re: you can have one table for storing user_id and post_id. When user vote any post there will be entry in that table and if there is any entry vote up-down arrow will not be shown for that post. | |
Re: Check this post that how string concatenation works in PHP. [URL="http://www.daniweb.com/web-development/php/threads/369623/1588766#post1588766"]http://www.daniweb.com/web-development/php/threads/369623/1588766#post1588766[/URL] | |
Re: You need to refer some tutorial for file upload in PHP. These are good ones. [URL="http://www.w3schools.com/php/php_file_upload.asp"]http://www.w3schools.com/php/php_file_upload.asp[/URL] [URL="http://www.9lessons.info/2009/03/upload-and-resize-image-with-php.html"]http://www.9lessons.info/2009/03/upload-and-resize-image-with-php.html[/URL] | |
Re: I think you can not download multiple file at a once. You can zip all files in one zip file and then download that zip file. That is best solution. | |
Re: Didn't understand the logic of writing [B]echo "0__notice__Email is empty.";[/B] and expecting [B]Email is empty[/B] as output. Can u explain.. | |
Re: I have created some demo kind of code. Check this may be this will give you some info. [CODE] <? session_start(); $array = $_SESSION['array']; if (isset($_GET['id'])) { if (isset($_SESSION['array'])) { if(!array_key_exists($_GET['id'], $array)) { $array[$_GET['id']] = array( "name" =>'vibha' ); } } else { $addarray = array($_GET['id'] => array( "name" =>'vibha' … | |
Re: I think your $refnum is comming blank or invalid. Echo this query and run it in phpmyadmin. [CODE] echo $sql = "UPDATE `order` SET `receiver_tel` = '".$recetel."' WHERE `reference_num` = '".$refnum."'" ; exit mysql_query($sql); [/CODE] | |
Re: Debug all values. I think size[0] is zero or blank. [CODE] echo '<br />$size[1] ->'.$size[1]; echo '<br />$size[0] ->'.$size[0]; echo '<br />$width ->'.$width; exit; $h = number_format(($size[1] / $size[0]) * $width, 0, ',', ''); [/CODE] | |
Re: If you can post your complete code then anyone can test at their end. | |
Re: [URL="http://php.about.com/od/finishedphp1/ss/simple_poll_php.htm"]http://php.about.com/od/finishedphp1/ss/simple_poll_php.htm[/URL] [URL="http://www.qualitycodes.com/tutorial.php?articleid=20&title=How-to-create-bar-graph-in-PHP-with-dynamic-scaling"]http://www.qualitycodes.com/tutorial.php?articleid=20&title=How-to-create-bar-graph-in-PHP-with-dynamic-scaling[/URL] | |
Re: I am using phpmailer. [URL="http://phpmailer.worxware.com/"]http://phpmailer.worxware.com/[/URL] | |
Re: Below is logic which i am using. - there is one table having fead url along with last feed date. - second table is feeded data along with inserted date. So when you want to show feed data check last feed date in first date if it is today's date … | |
Re: Not sure but if you have written. [CODE] include(include_fns.php); [/CODE] then try below and check. [CODE] include('include_fns.php'); [/CODE] | |
Re: Below is query. [CODE] ALTER TABLE `tbl_name` AUTO_INCREMENT =1000 ; [/CODE] Once you run this query, next auto id in tbl_name will be 1000. | |
Re: Also its good practice to write 'header' after php logical code. So you can replace below code [CODE] echo "<script language='javascript' type='text/javascript'> location.href = 'cash_transactions.php?msg=".$message."'; </script>"; [/CODE] with [CODE] header("location:cash_transactions.php?msg=".$message); exit; [/CODE] | |
Re: Simplest way to debug is take your output query and run in phpmyadmin, you will get some idea of error. [CODE] $query = "INSERT INTO *********** (time, ad1) VALUES ('$FileName','$topnow')"; mysql_query($query) or die('Error, insert query failed.<br />Run this query in phpmyadmin:'.$query); [/CODE] | |
Re: You don't require : between date and time. i.e [B]$requested=date("d/m/y : H:i:s", time()); [/B] should be [B]$requested=date("d/m/y H:i:s", time()); [/B] | |
Re: [B]session_start();[/B] must be on top of page. i.e. there should not any echo ot HTML code above session_start(); function. And php code should be also at top and then html form, tables. Its not necessary but its a good practice. You forget to add [B]action="[/B] in form. | |
Re: Check also this: [CODE] RewriteCond %{REQUEST_URI} !/forum [/CODE] | |
Re: [CODE] <? if($row_rs_details['image_main'] == "") $src = 'propertyimages/dot.gif'; else $src = $row_rs_details['image_main']; ?> <img src="<?php echo $src ?>" width="240" height="160" border="0" /> [/CODE] | |
Re: Do some google:[URL="http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html"]http://roshanbh.com.np/2008/01/populate-triple-drop-down-list-change-options-value-from-database-using-ajax-and-php.html[/URL] | |
Re: Try this code. [CODE] $name = "vibha"; echo str_replace('$name',$name,$description); // $description is database value [/CODE] | |
Re: [B]Now I've to search the the biggest values of the array and replace them with a zero. How can I do it?[/B]?? Can you give one example with live values? | |
Re: You need to JOIN query for both table. Post your table structure. |
The End.