Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
3 Commented Posts
0 Endorsements
Ranked #2K
~7K People Reached
Favorite Forums
Favorite Tags

17 Posted Topics

Member Avatar for phpNewbie

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

Member Avatar for phpNewbie
0
152
Member Avatar for madristaa

[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 = …

Member Avatar for samarudge
0
362
Member Avatar for tominic

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

Member Avatar for nav33n
0
85
Member Avatar for dani190
Member Avatar for gagan22

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

Member Avatar for gagan22
0
2K
Member Avatar for ioan1k

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

Member Avatar for ioan1k
0
98
Member Avatar for gagan22

Check php.ini and find the session.save_path. Make sure that the file mentioned exists and is writable

Member Avatar for gagan22
0
556
Member Avatar for jakx12

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)

Member Avatar for vinothkumarc
0
313
Member Avatar for shasha821110

[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: …

Member Avatar for cwarn23
0
519
Member Avatar for theimben

[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";

Member Avatar for vinothkumarc
0
81
Member Avatar for rickya100

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 …

Member Avatar for rickya100
0
112
Member Avatar for FrankThePostman

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) // …

Member Avatar for ~s.o.s~
0
3K
Member Avatar for lydia21

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 …

Member Avatar for peter_budo
0
112
Member Avatar for swapna7999

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

Member Avatar for swapna7999
0
58
Member Avatar for jino
Member Avatar for digital-ether
0
151
Member Avatar for ZaphodQB
Member Avatar for ohyeah

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

Member Avatar for vinothkumarc
0
126

The End.