Question : What are the fastest USB Flash Drives and SD Cards suitable for ReadyBoost?

Hi everyone,

  What are the fastest USB Flash Drives and SD Cards? Can you give me a particular brand? What are those USB FD and SD Cards that are affordable but functions really quick? I'm planning to buy a big capacity and fast transferring USB FD and SD Card to be used by Win 7 Pro ReadyBoost for my Acer Aspire One netbook. Hope you could help me out. Thanks in advance.

Answer : What are the fastest USB Flash Drives and SD Cards suitable for ReadyBoost?

If you are getting the id of 2 out of the db then pconnect is not the problem as it is connecting to the db ok (there may be issues later on with a higher number of concurrent connections without tuning apache and mysql though ).

Give the following a go, I changed it to use fetch_row, cleaned the sql select statement a little (didn't know where the $where etc vars came in from though, please check this?), let me know how you go with it,

As per shinug's suggestion I also added the E_ALL error reporting etc into the script which may help a little.

Fingers crossed :)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
<?php
session_start();
error_reporting(E_ALL);
ini_set("display_errors",1);
//include '../var-dump.php';
echo "id: ".trim($_REQUEST['id'], ",")."<br>\n";
echo "Record info will go here<br>\n";

  /* MySQL connection */
	$gaSql['user']       = "xxxxxxx";
	$gaSql['password']   = "xxxxxxxx";
	$gaSql['db']         = "xxxxxx";
	$gaSql['server']     = "localhost";
	$gaSql['type']       = "mysql";

	$gaSql['link'] =  mysql_pconnect( $gaSql['server'], $gaSql['user'], $gaSql['password']  ) or
		die( 'Could not open connection to server' );

	mysql_select_db( $gaSql['db'], $gaSql['link'] ) or
		die( 'Could not select database '. $gaSql['db'] );

// OLD: $sql = "SELECT id,date_last_updated, description,note,account_owner FROM contacts_personal_notes WHERE `account_owner`='".$_SESSION['user_name']."' AND `contact_id`='".trim($_REQUEST['id'], ",")."' $where $sort $limit";
// note i didn't know where $where etc were coming from, you may need to alter this again to fit your exact requirements
$sql = "SELECT id, date_last_updated, description, note, account_owner FROM contacts_personal_notes WHERE 'account_owner'='".$_SESSION['user_name']."' AND 'contact_id'='".trim($_REQUEST['id'], ",")."' ORDER BY $sort LIMIT $limit";//
$result = mysql_query($sql) or die (mysql_errno($connect) . ": " . mysql_error($connect));
$numRows=mysql_num_rows($result);
if($numRows > 0)
{
	$row=mysql_fetch_row($result); // can be used if only ever expecting one row to be returned
	echo "id: ".$row[0]."<br>";
	echo "date: ".$row[1]."<br>";
	echo "description: ".$row[2]."<br>"; // do 'addslashes' later once this is verified as working
	echo "note: ".$row[3]."<br>";
	echo "owner: ".$row[4]."<br>";
}
else
{
   echo "No results found.<br>";
}
echo "<br>all done";
mysql_close();
?>
Random Solutions  
 
programming4us programming4us