Forum: PHP 11 Days Ago |
| Replies: 2 Views: 277 The following should do the trick the the result being in the $res array
<?php
$var=$_POST['box'];
$i=1;
$res=array();
$var=(empty($var))?array():$var;
foreach ($var AS $val) {
... |
Forum: PHP 15 Days Ago |
| Replies: 12 Views: 472 I see how that can be handy but another thing I have noticed with sites like google and youtube is that they seem to redirect users to their country code domain meaning there is a separate database... |
Forum: PHP 15 Days Ago |
| Replies: 12 Views: 472 Just a note on that. Wikipedia receives 1,000 new articles every day and many more edited articles so it is possible to compare Wikipedia to ever changing websites such as Facebook. I guess it is a... |
Forum: PHP 16 Days Ago |
| Replies: 12 Views: 472 Are you at all familiar with the mediawiki cms. That is the same cms wikipedia uses and it does not spread into millions of tables. Instead it has hundreds of computers that just process the... |
Forum: PHP 16 Days Ago |
| Replies: 12 Views: 472 Well actually I have been told in the mysql forum that if you design a table so that it has indexing you shouldn't ever need multiple tables for the one job. That is when designed properly because... |
Forum: PHP 20 Days Ago |
| Replies: 12 Views: 425 Maybe my explanation was too short. Sometimes people will do the following:
<?php
$connection = mysql_connect("myserver.com","myuser","mypassword") or die ("Couldn't connect to server.");
$db =... |
Forum: PHP 20 Days Ago |
| Replies: 12 Views: 425 So it displayed something... So we know that you were using the right names but the normal cause of this is an extra line of code. Try the following script.
<?php
$connection =... |
Forum: PHP 21 Days Ago |
| Replies: 12 Views: 425 To test if no rows are found try the following:
while( $data2 = mysql_fetch_array($query)) {
echo $data2[0];
echo $data2[1];
echo $data2[2];
}
The nothing is displayed then that means there... |
Forum: PHP 21 Days Ago |
| Replies: 12 Views: 425 Replace lines 11 to 13 with the following
echo $data2['firstname'];
echo $data2['lastname'];
echo $data2['task']; |
Forum: PHP 21 Days Ago |
| Replies: 19 Views: 517 Just to make it clear - indeed there should be no echos before the header(). |
Forum: PHP 21 Days Ago |
| Replies: 19 Views: 517 That is correct from what I have read in the past. |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 360 Perhaps this:
<?php
mysql_connect(HOST,USER,PASS);
@mysql_select_db("db303278079") or die( "Unable to select database");
$query="SELECT * FROM restaurants";
$result=mysql_query($query);... |
Forum: PHP 21 Days Ago |
| Replies: 19 Views: 517 Well actually the entire page will be process by php unless the exit; statement is placed there. So for example if you have a mysql insert it will insert before redirecting unless the exit; is placed... |
Forum: Geeks' Lounge 21 Days Ago |
| Replies: 4 Views: 426 PHP would be the section if you have a webserver with php installed. Also google has their own api's for this kind of stuff so it is possible to do in a number of languages. If you plan to write it... |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 257 If you want wildcards then the following contains the wildcards:
$sql = 'SELECT * FROM device WHERE `device_num` LIKE "%'.mysql_real_escape_string($val_d).'%" OR `dib` LIKE... |
Forum: PHP 21 Days Ago |
| Replies: 19 Views: 517 <?php
header("Location: http://yoursite.com/index.php");
exit;
//above must be at very top before any browser output |
Forum: PHP 21 Days Ago |
| Replies: 3 Views: 450 Try adding the following to the top of your php file(s)
setcookie ('PHPSESSID', $_COOKIE['PHPSESSID'], time()+172800); |
Forum: PHP 21 Days Ago |
| Replies: 4 Views: 257 Try replacing it with the following:
$sql = 'SELECT * FROM device WHERE `device_num` LIKE "'.mysql_real_escape_string($val_d).'" OR `dib` LIKE "'.mysql_real_escape_string($val_dp).'"'; |
Forum: PHP 22 Days Ago |
| Replies: 4 Views: 287 I would have to say if you managed to get XAMPP working then good, keep it as XAMPP has a few minor additional features that WAMP doesn't have (eg. mailserver) although the installation for XAMPP is... |
Forum: PHP 24 Days Ago |
| Replies: 3 Views: 239 Try the following:
<?php
require_once('config.php');
for ($i=1;$i<11;$i++) {
$aid='aid'.$i;
$$aid=$_POST['Question-'.$i];
$qid='qid'.$i;
$$qid=$_POST['qid'.$i]; |
Forum: Geeks' Lounge 30 Days Ago |
| Replies: 12 Views: 1,024 This thread just has no direct answer so I shall help explain to Bob
From my understanding it is ok to fill the ink cartage yourself if you have a legal supply of ink however then the manufacture... |
Forum: Search Engine Optimization 34 Days Ago |
| Replies: 49 Views: 3,284 It is more like the best 3 search engines which include Google, Bing and Yahoo. The reason, they hold the greatest market share with Google being the strongest and I think Bing might be the weakest... |
Forum: DaniWeb Community Feedback Nov 4th, 2009 |
| Replies: 2 Views: 1,056 Perhaps it's part of the update process where when the data is being updated in the database, first the new names are being added to the database then a person downloads a copy of the list of names... |
Forum: Search Engine Optimization Nov 3rd, 2009 |
| Replies: 49 Views: 3,284 At all costs do not use Google Analytics. The google analytics system has frozen a few times causing a few banks websites to not load. So if Google Analytics will cause banks websites to not load... |
Forum: Search Engine Optimization Nov 3rd, 2009 |
| Replies: 49 Views: 3,284 What - Live, that's an extinct dinosaur. I believe MSN is Bing and Bing replaced Live. Live search nolonger exists and laughed when seeing Live in a year 2050 based film. lol |
Forum: Search Engine Optimization Nov 1st, 2009 |
| Replies: 49 Views: 3,284 I just checked and gigablast has an advanced search option where you can search for backlinks although I can't seem to get it to work. As for ask, I can't see any function in the ask search engine... |
Forum: Search Engine Optimization Nov 1st, 2009 |
| Replies: 49 Views: 3,284 I tested the following keyword on google, yahoo and altavista and it seems to work perfectly.
link:google.com
The above search term will search for all pages that link to google.com Also it tells... |
Forum: Search Engine Optimization Oct 31st, 2009 |
| Replies: 49 Views: 3,284 Also as for bing it is not so easy. I remember reading some time ago that to get the backlinks for bing you need to register an account then log in to view the stats for the backlinks. So that makes... |
Forum: PHP Oct 29th, 2009 |
| Replies: 5 Views: 290 You may want to note that for assigning a possibly undefined variable or array index/key the following is the correct method.
$PK = (isset($_POST['PK']))?$_POST['PK']:'';
The above is what line 24... |
Forum: PHP Oct 11th, 2009 |
| Replies: 3 Views: 320 Your links are all pointing to the wrong location and should be something like as follows: <?php
//REMEMBER TO CONNECT TO DATABASE!
$show_all=$_POST['rg01']; // Show All
//echo $show_all;
... |
Forum: PHP Sep 28th, 2009 |
| Replies: 12 Views: 350 Why won't that work. Is there something in the included library that prevents it working. The only thing I would suggest is escaping the variable $key like the following:$zips =... |
Forum: PHP Sep 28th, 2009 |
| Replies: 5 Views: 188 From my experience yes it is. |
Forum: PHP Sep 25th, 2009 |
| Replies: 8 Views: 289 I entered in the specs of the plan I'm on with my host and it's over double the price. If there was something like that where you can decide cpu, storage space and bandwidth for a third of the price... |
Forum: PHP Sep 25th, 2009 |
| Replies: 5 Views: 737 To retrieve the variable param from the url simply use $_GET['param'] to get its value. |
Forum: PHP Sep 24th, 2009 |
| Replies: 8 Views: 289 I did a google search and the following link might be of great interest to you. http://www.m6.net/ Enjoy. |
Forum: PHP Sep 16th, 2009 |
| Replies: 3 Views: 431 That part of the syntax is totally wrong. I don't think that an include is not meant to be in an if statement. Also replace the include with the require function which does the same thing but with... |
Forum: PHP Sep 13th, 2009 |
| Replies: 6 Views: 390 Try rebooting the apache httpd service. I've noticed on windows rebooting the computer doesn't restart the httpd service so you will need to go into your controll panel to restart the apache httpd... |
Forum: PHP Sep 12th, 2009 |
| Replies: 6 Views: 390 Well a server can have several php.ini files and only one of them are really used. So make sure the php.ini file you changed is the same one as listed when you use the following code:
<?php... |
Forum: PHP Sep 12th, 2009 |
| Replies: 2 Views: 279 Perhaps the following:
//get username
$username='Bill Gates';
//validate
$username=mysql_real_escape_string($username);
//set the sql query
$result=mysql_query('SELECT * FROM `table` WHERE... |
Forum: PHP Sep 11th, 2009 |
| Replies: 4 Views: 423 What's the problem or is this solved? |