- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
17 Posted Topics
Re: [code=php]<html> <head> </head> <body> <?php // MySQL Connection Information $server = "localhost"; $username = "sharlene"; $password = ""; $dbname = "baby_names"; // MySQL Connect String $connection = mysql_connect($server,$username,$password) or die("Can't Connect to Mysql Server: ".mysql_error()); // Select the database mysql_select_db($dbname) or die("Can't connect to database: ".mysql_error()); $gender = mysql_real_escape_string($_POST['gender']); $meaning … | |
Re: [code] <html> <body> <script type="text/javascript"> function validate(form){ var errors = []; if ( !checkRadioArray(form.science_soundness) ) { errors[errors.length] = "Please select grade for Scientific Soundness."; } if ( !checkRadioArray(form.relevance) ) { errors[errors.length] = "Please select grade for Relevance."; } if (errors.length > 0) { reportErrors(errors); return false; } var boolOutput = … | |
Re: not clear... but intresting to reply.. [code] <?php $arr = array(11,25,3,47,775,96,70,82,29,10); $outputArr = Array(); foreach($arr as $key => $value) { $count++; $outputArr[$value] = count($arr)-$count; } echo "<pre>"; print_r($outputArr); ?> [/code] .. try this printed o/p... if its not satisfying u.. pls explain d probs... with example | |
Re: use ajax... pls exp.. clearly(about ur probs) | |
Re: [code=php]//while clicking download button do this process $content - should have the content like $content = "<table><tr><td>val1</td><td>val2</td></tr></table>"; header('Pragma: anytextexeptno-cache', true); header("Content-type: application/vnd.ms-excel"); header('Content-Transfer-Encoding: Binary'); header('Content-disposition: attachment; filename='myfile.xls'); print $content;[/code] | |
Re: hi, i spend half a day to solve this.... so pls thanx me:) [code=php] <?php $data = array( 10=>array( 'title' => 'AA', 'parentId' => '0', 'url' => 'aa' ), 11=>array( 'title' => 'BB', 'parentId' => '0', 'url' => 'bb' ), 12=>array( 'title' => 'AA-CC', 'parentId' => '10', 'url' => 'aa-cc' … | |
Re: Check php.ini and find the session.save_path. Make sure that the file mentioned exists and is writable | |
Re: To be a better php programmer always use single quotes like this, [code=php]mysql_query('DELETE FROM user_notifications WHERE username="'.mysql_real_escape_string($acc).'" AND notification="'.mysql_real_escape_string($note2).'"') or die(mysql_error());[/code] bcoz: php parser will search and parse full string while using double quotes. :) - might look simple - but usefull tip(i think so) | |
Re: [code=html]<form action="index.php" name="catalogFormName" id="catalogFormId" method=GET name=chcat > <select name="catalogName" id="catalogId" onChange="getCatalogDetails(this)"> <option value=0>All</option> <option value="2">Pizza</option> <option value="4">Special Dinners</option> <option value=5>Side Orders</option> <option value=6>Salads</option> <option value=7>Spaghetti or Ziti</option> <option value=8>Home made Lasagna Ravioli or Manicotti</option> <option value=9>Homemade Galzones</option> <option value=10>Wraps</option> <option value=10>Grinders</option> </select> <?php @extract($_GET); if(@isset($catalogName)) { switch($catalogName) { case 0: … | |
Re: [code=php]$sql = "SELECT * FROM `list` WHERE `title` LIKE '%".$search[0]."%' AND `url` LIKE '%".$sites[0]."%'"; $catcnt = mysql_fetch_row(mysql_query($sql)); if(@!isset($catcnt[0]) && $catcnt[0]=='') { header('Location: index.php'); exit; } else{ echo $catcnt[0]; }[/code] -- Always use exit while using "header"; | |
Re: Hi, Can u try this, [code=php]$details = array(); $details['deb_queue_cnt'] = @mysql_result(mysql_query("select count(*) from debate_queue")) or die(mysql_error() ); $details['deb_cnt'] = @mysql_result(@mysql_query("SELECT count(*) FROM debate")) or die(mysql_error() ); [/code] Please revert back to me ur opinion on my comments [QUOTE=rickya100;595974]Hi, I am hoping someone can explain to me a better way of … | |
Re: I hope.. ur using static div's for response text... right!!! Make some relations for those ids... like.. div_content_details_1, div_content_details_2 div_content_details_3.. and etc., if u might know that ur using three divs then declare one global javascript variable assign value like /**/ [code=JavaScript] var xmlHttp; var id_to_disp; function showDetails(str, control) // … | |
Re: Not that much perfect coding solution [QUOTE=amigura;595597][CODE] <html> <head> </head> <body> <?php $days_array = explode(',',$_POST['days']); // turn post into array foreach($days_array as $v) { echo $v.'<br />'; // display array } ?> sperate dates with a comma<br /> <form name="fors" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> Enter text:<input type="text" name="days"> <input … | |
Re: [QUOTE=swapna7999;592904]is it possible to capture images using php plz help thank u very much[/QUOTE] ya sure... u want to get images from particular folder ( or expressing some other thought)? | |
Re: for i.e7 C:\Documents and Settings\[B]username[/B]\Local Settings\Temporary Internet Files | |
Re: I think... wt u hv expressed is 100% correct | |
Re: [QUOTE=ohyeah;590010]Im having some trouble writing a booking system for my site. Im using dreamweaver so the built in functions should make it easier but its not helping right now. First of all here is my database [IMG]http://i19.photobucket.com/albums/b178/GregHesp/Untitled-11.jpg[/IMG] Now on my booking.php page I want have a dynamic select menu which … |
The End.