619 Posted Topics

Member Avatar for jenberden

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.

Member Avatar for pritaeas
0
116
Member Avatar for jacksantho

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.

Member Avatar for jacksantho
0
2K
Member Avatar for sarithak

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 …

Member Avatar for sarithak
0
141
Member Avatar for terrymold

Why are you giving position? Try without [B]position: absolute;[/B]

Member Avatar for ko ko
0
148
Member Avatar for joeidee

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]

Member Avatar for joeidee
0
83
Member Avatar for jacksantho

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.

Member Avatar for fusedreality
0
263
Member Avatar for vampshay

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.

Member Avatar for vibhaJ
0
116
Member Avatar for rpv_sen

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]

Member Avatar for rpv_sen
0
312
Member Avatar for uselessninja

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]

Member Avatar for uselessninja
0
293
Member Avatar for jenberden

[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]

Member Avatar for 54uydf
0
106
Member Avatar for ghost_from_sa

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]

Member Avatar for vibhaJ
0
253
Member Avatar for lloydsbackyard

Try with quote. [CODE]SELECT * FROM `date` WHERE date BETWEEN '2011-01-01' AND '2011-12-31'[/CODE]

Member Avatar for lloydsbackyard
0
75
Member Avatar for stephen_UK

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]

Member Avatar for Rhamises
0
143
Member Avatar for johnnycho

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

Member Avatar for vibhaJ
0
2K
Member Avatar for geekme

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]

Member Avatar for vibhaJ
0
69
Member Avatar for davy_yg

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?

Member Avatar for diafol
-2
136
Member Avatar for Who me?

[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]

Member Avatar for Who me?
0
122
Member Avatar for binu_ds

check this [URL="http://www.w3schools.com/PHP/php_mysql_insert.asp"]http://www.w3schools.com/PHP/php_mysql_insert.asp[/URL]

Member Avatar for vibhaJ
0
131
Member Avatar for rom.
Member Avatar for rom.
0
340
Member Avatar for heshanm

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

Member Avatar for heshanm
0
185
Member Avatar for cipcip

for dot try below rule if it works. [CODE]RewriteRule ^([^_]*)$ ./profil.php?user=$1[/CODE]

Member Avatar for vibhaJ
0
119
Member Avatar for lalaka90

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]

Member Avatar for vibhaJ
0
316
Member Avatar for newbie14

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.

Member Avatar for vibhaJ
1
99
Member Avatar for vanpersie

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]

Member Avatar for vanpersie
0
361
Member Avatar for heshanm

[CODE] function validNumber(str) { var tomatch= /^[0-9]{10}$/ if(tomatch.test(str)) return true; else return false; } [/CODE]

Member Avatar for heshanm
0
335
Member Avatar for mualanj

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]

Member Avatar for vibhaJ
0
186
Member Avatar for Smudly

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.

Member Avatar for coolest_987
0
280
Member Avatar for PixelatedKarma

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]

Member Avatar for vibhaJ
0
94
Member Avatar for brandon beasley

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]

Member Avatar for vibhaJ
0
810
Member Avatar for clems31

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.

Member Avatar for clems31
0
120
Member Avatar for decade

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

Member Avatar for decade
0
139
Member Avatar for jj.amonit

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

Member Avatar for jj.amonit
0
97
Member Avatar for erik216

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]

Member Avatar for faroukmuhammad
0
221
Member Avatar for gonidelux

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]

Member Avatar for vibhaJ
0
87
Member Avatar for doitnow1147
Member Avatar for vibhaJ
0
69
Member Avatar for jorjah
Re: php

[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]

Member Avatar for vibhaJ
0
95
Member Avatar for kamalbasha.v

I am using phpmailer. [URL="http://phpmailer.worxware.com/"]http://phpmailer.worxware.com/[/URL]

Member Avatar for vibhaJ
0
37
Member Avatar for gunnarflax

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 …

Member Avatar for vibhaJ
0
116
Member Avatar for surjeetk27

Not sure but if you have written. [CODE] include(include_fns.php); [/CODE] then try below and check. [CODE] include('include_fns.php'); [/CODE]

Member Avatar for vibhaJ
0
124
Member Avatar for mwenyenia07

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.

Member Avatar for vibhaJ
0
119
Member Avatar for heshanm

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]

Member Avatar for heshanm
0
160
Member Avatar for hardinguse

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]

Member Avatar for hardinguse
0
846
Member Avatar for jacksantho

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]

Member Avatar for vibhaJ
0
295
Member Avatar for KBL

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

Member Avatar for vibhaJ
0
245
Member Avatar for minitauros
Member Avatar for vibhaJ
0
137
Member Avatar for ebanbury

[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]

Member Avatar for ebanbury
0
93
Member Avatar for felix001

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]

Member Avatar for felix001
0
142
Member Avatar for abhi10kumar

Try this code. [CODE] $name = "vibha"; echo str_replace('$name',$name,$description); // $description is database value [/CODE]

Member Avatar for vibhaJ
0
171
Member Avatar for makimbo

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

Member Avatar for Hani1991
0
256
Member Avatar for heshanm

The End.