619 Posted Topics

Member Avatar for heshanm

Ohh man... Big code. Try to minimize your question thread. You will get more answers.Its bit tidy to read all your code.

Member Avatar for diafol
0
461
Member Avatar for jacob21

[I]suppose a user check the checkbox & there is some validation error while submiting,[/I] Are you validating form in PHP side?

Member Avatar for urtrivedi
0
88
Member Avatar for RisTar

You need cronjob dear. In cronjob you can set php file name and time interval that will execute that php file. e.g. you have sendnewsletter.php and set time 'every night 12am'. Server will call that file daily at 12am, thats it.. all is done. Cronjob setting is in server's hosting …

Member Avatar for vibhaJ
0
526
Member Avatar for public-image

Just a random hour have nothing to do with time function. [CODE] <? echo rand(1, 12); ?> [/CODE] OR do you want random date?

Member Avatar for edwinhermann
0
8K
Member Avatar for sim_pack

better to use BCC. It may because of execution time. Use below function for overcoming time limit. [CODE] set_time_limit(0); [/CODE]

Member Avatar for asimshahiddIT
0
711
Member Avatar for vibhaJ

Hi all, I have seen below icon in thread listing. [URL="http://images.daniweb.com/vbulletin/statusicon/thread_hot.gif"]http://images.daniweb.com/vbulletin/statusicon/thread_hot.gif[/URL] I think it will be described on dani but did't find it. Just want to ask what does it means? Thanks.

Member Avatar for vibhaJ
0
125
Member Avatar for dudzkie
Member Avatar for branding4you

so final code is: [CODE] <?php $totala ="0"; $numrows ="10"; //QUERY $extract = mysql_query("SELECT * FROM invoicedata WHERE invnum='$invnumber' limit 0,10"); //FIND DATA AND ASSIGN while ($row = mysql_fetch_assoc($extract)) { $items = $row['item_description']; $prices = $row['item_price']; $quant = $row['item_quantity']; $itemvat = $row['item_vat']; $subanswer = $prices * $quant; $totala = $totala …

Member Avatar for branding4you
0
177
Member Avatar for GigsD4X
Member Avatar for GigsD4X
0
121
Member Avatar for Dragonbaki

Check this jquery file upload, it may help you. [URL="http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples"]http://www.fyneworks.com/jquery/multiple-file-upload/#tab-Examples[/URL]

Member Avatar for diafol
0
149
Member Avatar for doctorphp

Just add one new hidden field with quantity name. [CODE]<input type='hidden' name='quantity' value='3'>[/CODE] Above will show 3 quantity on paypal page.

Member Avatar for vibhaJ
0
435
Member Avatar for vibhaJ

Hi All, I have win7 and we have some computers in LAN. Now i want to remotely access my friend's computer.We are developers and want remotely help each other without moving here and there. I know these two option.Windows remote assistance, remote desktop connection. When i connect using remote desktop …

Member Avatar for steven woodman
0
186
Member Avatar for DarkBerzerk

Why you want type casting? I mean if want to insert posted data in database you can directly insert it without casting.

Member Avatar for vibhaJ
0
97
Member Avatar for PixelatedKarma

I have changed a bit. [CODE] <html> <head> <title>Title Here</title> <link rel="stylesheet" href="/offline/maintenance.css" type="text/css" /> </head> <body> <?php // Make a MySQL Connection mysql_connect('localhost', 'dbuser', "dbpass") or die(mysql_error()); mysql_select_db('dbname') or die(mysql_error()); // Retrieve all the data from the "example" table $result = mysql_query('SELECT * FROM sitesettings') or die(mysql_error()); $row = …

Member Avatar for vibhaJ
0
158
Member Avatar for pbcomput

Check this. [CODE] <? echo $strDate = substr('Wed Jun 15 2011 00:00:00 GMT 0530',4,11); echo '<br />'.date('m/d/Y', strtotime($strDate)); ?> [/CODE]

Member Avatar for almostbob
0
4K
Member Avatar for jrotunda85

You have changed old database credentials to new. Check your new database's credentials proper.I think it should not be username:root for host:localhost. Something went wrong with credentials only.

Member Avatar for diafol
0
370
Member Avatar for bangla

If you are fetching records from database you can directly get values using mysql_fetch_assoc. [URL="http://in.php.net/manual/en/function.mysql-fetch-assoc.php#example-1472"]example link[/URL]

Member Avatar for pbcomput
0
116
Member Avatar for saadi06

It is possible with JS, not sure for PHP. What is your exact requirement? If flash is not installed then what you want to do?

Member Avatar for diafol
0
300
Member Avatar for Jiaxin

Try below code. And post output you are getting. [CODE] <? $insertQuery = "ALTER TABLE atable ADD `".$example."` INT"; $result = mysql_query($insertQuery); if (!$result) { die('Invalid query: ' . mysql_error()); } else { echo 'Successfully executed'; } ?> [/CODE]

Member Avatar for almostbob
0
92
Member Avatar for navi17

This paypal standard blog is cool. May be help you. [URL="http://leepeng.blogspot.com/2006/04/standard-paypal-php-integration.html"]http://leepeng.blogspot.com/2006/04/standard-paypal-php-integration.html[/URL]

Member Avatar for vibhaJ
0
162
Member Avatar for Sorcher

Because you haven't provided header after your logic. Lets your page name is 'page.php'. [CODE] <? if(condition) { // your // message // sending // code [COLOR="Red"]header("location:page.php"); exit;[/COLOR] } ?> [/CODE]

Member Avatar for vibhaJ
0
107
Member Avatar for fadliraihana

You can also use ternary operator for minimizing code. [CODE] <tr> <td ><span class="style2">1</span></td> <td >PERAK IP-F002</td> <td style="background-color:<?=($a1==1)?('#00FF00'):('#FF0000');?>">&nbsp;</td> <td style="background-color:<?=($a2==1)?('#FF0000'):('#00FF00');?>">&nbsp;</td> <td style="background-color:<?=($a3==1)?('#00FF00'):('#FF0000');?>">&nbsp;</td> </tr> [/CODE]

Member Avatar for vibhaJ
0
212
Member Avatar for jacob21

If you just want proper date format. check this [URL="http://jqueryui.com/demos/datepicker/default.html"]http://jqueryui.com/demos/datepicker/default.html[/URL] And if you want ajax any how then see here [URL="http://api.jquery.com/jQuery.ajax/"]http://api.jquery.com/jQuery.ajax/[/URL]. Check how ajax work and then you can implement your logic.

Member Avatar for vibhaJ
0
83
Member Avatar for yongj

You forget two commas in field selection after qTodaysLow and qCurrentPERatio shown in red color. Give space after qQuoteDateTime. [CODE] $query = "SELECT symSymbol, symName, symMarketCap, qSymbol, qQuoteDateTime, qLastSalePrice, qNetChangePrice, qNetChangePct, qTodaysHight, qTodaysLow[COLOR="Red"], [/COLOR]" ."qShareVolumeQty, qPreviousClosePrice, qBidPrice, qAskPrice, q52WeekHigh, q52WeekLow, qCashDividendAmount, qEarningsPerShare, qCurrentPERatio[COLOR="Red"], [/COLOR]" ."qCurrentYieldPct, qTotalOutstandings FROM symbols LEFT JOIN …

Member Avatar for vibhaJ
0
156
Member Avatar for Spyzker

There is one extra brace before break. [CODE] echo '<meta http-equiv="refresh" content="0;URL=yazi.php?id='.$id.'">'; } [COLOR="red"][B]}[/B][/COLOR] break; } ?> [/CODE]

Member Avatar for diafol
0
124
Member Avatar for lokodomain

Here is a bit change in login code. [CODE] $results = mysql_query($login) or die(mysql_error()); if(mysql_num_rows($results) == 0) { echo "Invalid login"; exit; } else { echo "Successfull Login"; exit; } [/CODE]

Member Avatar for jogesh_p
0
196
Member Avatar for altarek

There are linux commands for it. But better to go with hosting panel e.g. cpanel link [URL="http://www.siteground.com/tutorials/cpanel/cron_jobs.htm"]http://www.siteground.com/tutorials/cpanel/cron_jobs.htm[/URL]

Member Avatar for vibhaJ
0
51
Member Avatar for MoreBloodWine

You have to create one mysql table where you can store which user have which image. Then on delete link you can delete from table.

Member Avatar for diafol
0
102
Member Avatar for Loved

Yes you have to add every input to a session variable on page 2. Post your code with CODE tag for more detail.

Member Avatar for vibhaJ
0
96
Member Avatar for mangel.murti

Check this demo. [URL="http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html"]http://gmaps-samples.googlecode.com/svn/trunk/poly/mymapstoolbar.html[/URL]

Member Avatar for mangel.murti
0
171
Member Avatar for geoamins2

For adding data in mysql: html_entities(mysql_real_escape_string($variable)); For echoing: html_entity_decode(stripslashes($variable));

Member Avatar for vibhaJ
0
213
Member Avatar for Tenaciousmug

Check this.. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" src="http://code.jquery.com/jquery-1.6.1.min.js"></script> <script> function chooseGender() { var selectGender = $('input[name=gender]:checked', '#submitgender').val(); if(selectGender) { $.ajax( { type: "POST", url: "ajax.php", data: "gender="+ selectGender, success: function() { $("#submitgender").hide(); $("#rest").show(); } …

Member Avatar for vibhaJ
0
95
Member Avatar for Todx

Try this. [CODE] RewriteEngine On RewriteRule ^download\.php\?file\=([^/]*)$ /?d=$1 [L] [/CODE]

Member Avatar for vibhaJ
0
100
Member Avatar for begueradj
Member Avatar for clairet

If it is a simple form, use captcha. Which can help you to prevent spamming.

Member Avatar for vibhaJ
0
98
Member Avatar for masterjiraya

Try this code. [CODE] $q = preg_replace('/\s\s+/', ' ', $q); // remove extra spaces $sql = "SELECT *,CONCAT(FirstName, ' ',LastName) as fullname WHERE CONCAT(FirstName, ' ',LastName) LIKE CONVERT(_utf8 '%".$q."%' USING latin1) COLLATE latin1_swedish_ci "; [/CODE]

Member Avatar for masterjiraya
0
184
Member Avatar for eduardc

you need to replace this line. [CODE] mysql_query("SELECT*FROM Products='"$result"'"); [/CODE] to [CODE] $result = mysql_query("SELECT * FROM Products"); [/CODE]

Member Avatar for karthik_ppts
0
584
Member Avatar for drewpark88

Below is normalization. Field names are self explainable. Also as urtvi suggested check event uniqueness. [CODE] ==================== Table Name : event ==================== eventId eventTitle date 1 Seminar 2 Robotics 3 AI ==================== Table Name : user ==================== userId fullName email 1 John user1@test.com 2 Tanya user2@test.com 3 Mathew user3@test.com =============================== …

Member Avatar for drewpark88
0
147
Member Avatar for kiran33

Use array in field name. When form is submitted using foreach delete each element. [CODE] <?php if(isset($_POST['delete'])) { $checkboxAll = $_POST['checkbox']; foreach( $checkboxAll as $key=>$del_id ) { $sql = "DELETE FROM Inq_cat WHERE Inq_id='$del_id'"; $result = mysql_query($sql); } header("location:index.php"); exit; } ?> <form name="frm" id="frm" method="post"> <input name="checkbox[]" type="checkbox" value="1" …

Member Avatar for kiran33
0
919
Member Avatar for vibhaJ

Hello All, When i see my 'Latest Reputation Received' in list some icons are green and some are blue. Is there any meaning for it? See attached image. Thanks, Vibha

Member Avatar for vibhaJ
0
138
Member Avatar for Green-z
Member Avatar for ptara1
Member Avatar for sharathg.satya
Re: AJAX

Once you know basics of AJAX, jquery provides a good way to use it. [URL="http://api.jquery.com/jQuery.ajax/"]http://api.jquery.com/jQuery.ajax/[/URL]

Member Avatar for sharathg.satya
0
130
Member Avatar for sharathg.satya
Member Avatar for diafol
0
120
Member Avatar for lifeplayer

Sometimes if you are continuously sending emails from one email address to second email address. Email server automatically forward it to spam after some attempts. Also check mail function header contents like from name and from email.

Member Avatar for twiss
0
94
Member Avatar for abhi10kumar
Member Avatar for BaSk

It is just a notice. You can ignore it and stop getting error message by [CODE] <?php error_reporting (E_ALL ^ E_NOTICE); ?> [/CODE]

Member Avatar for tiggsy
0
100
Member Avatar for noahshoa2

[URL="http://phpcrawl.cuab.de/example.html"]http://phpcrawl.cuab.de/example.html[/URL]

Member Avatar for tomato.pgn
0
212
Member Avatar for wfray
Member Avatar for ryan102

Formatted email [CODE] <?php $groupname = $_REQUEST['groupname'] ; $info = $_REQUEST['info'] ; $size = $_REQUEST['size'] ; $special = $_REQUEST['special'] ; $firstname =$_REQUEST['firstname'] ; $lastname = $_REQUEST['lastname'] ; $address1 = $_REQUEST['address1'] ; $address2 = $_REQUEST['address2'] ; $city = $_REQUEST['city'] ; $prov = $_REQUEST['prov'] ; $email = $_REQUEST['email'] ; $phone1 = $_REQUEST['phone1'] …

Member Avatar for vibhaJ
0
234

The End.