I having trouble Getting another form page to open, how can I get to jump to
another page after my records have been added
Here is what I have inserting the records then its supposed to goto
another page but it isnt why ????
I cant use the header because its declared in another page
mysql_select_db($database_idata, $idata);
$Result1 = mysql_query($insertSQL, $idata) or die(mysql_error());
$insertGoTo = "index7.php";
if (isset($HTTP_SERVER_VARS['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $HTTP_SERVER_VARS['QUERY_STRING'];
}
/// I belive the below this is where my problem is
sprintf("index.php");
//$insertGoTo = "index.php";
// header(sprintf("Location: %s", $insertGoTo));
}
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Rafael
Sent: Thursday, November 09, 2006 2:08 PM
To: [email protected]
Subject: [php-list] Re: phpMyAdmin and mySQL Question.
Hi Marc,
Thanks for your reply. To make matters easier, here's what I have for
my config file. Note that the host for me is not "localhost".
I'm configuring this file using Dreamweaver (I followed the steps in
www.phpmyadmin.-net). I've made sure that mySQL is active in my host.
I don't need to create a DB connection in Dreamweaver for this to
work, do I?
Thanks for all your help!
-Rafael
************-**HERE is my config file********-*********-*********
<?php
/*
* Generated configuration file
* Generated by: phpMyAdmin 2.9.0.3 setup script by Michal ÄihaÅ
<HYPERLINK "mailto:michal%40cihar.com"[EMAIL PROTECTED]>
* Version: $Id: setup.php 9483 2006-10-03 13:11:08Z nijel $
* Date: Wed, 08 Nov 2006 06:37:00 GMT
*/
$cfg['blowfish_-secret'] = 'my secret code goes here'; /* YOU MUST FILL
IN THIS FOR COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'-][$i]['auth_-type'] = 'cookie';
/* Server parameters */
$cfg['Servers'-][$i]['user'-] = 'my user name goes here';
$cfg['Servers'-][$i]['password'-] = 'my psw goes here';
$cfg['Servers'-][$i]['host'-] = 'mysql.vistarise.-com';
$cfg['Servers'-][$i]['connect_-type'] = 'tcp';
$cfg['Servers'-][$i]['port'-] = ''; // MySQL port - leave blank for
default port
$cfg['Servers'-][$i]['compress'-] = false;
/* Select mysqli if your server has it */
$cfg['Servers'-][$i]['extension-'] = 'mysql';
/* User for advanced features */
$cfg['Servers'-][$i]['controlus-er'] = 'my user name goes here';
$cfg['Servers'-][$i]['controlpa-ss'] = 'my psw goes here';
/* Advanced phpMyAdmin features */
$cfg['Servers'-][$i]['pmadb'-] = 'phpmyadmin'-;
$cfg['Servers'-][$i]['bookmarkt-able'] = 'pma_bookmark'-;
$cfg['Servers'-][$i]['relation'-] = 'pma_relation'-;
$cfg['Servers'-][$i]['table_-info'] = 'pma_table_info'-;
$cfg['Servers'-][$i]['table_-coords'] = 'pma_table_coords'-;
$cfg['Servers'-][$i]['pdf_-pages'] = 'pma_pdf_pages'-;
$cfg['Servers'-][$i]['column_-info'] = 'pma_column_-info';
$cfg['Servers'-][$i]['history'-] = 'pma_history'-;
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'-] = '';
$cfg['SaveDir'-] = '';
?>
************-*********-*********-*********-*********-*********-*********-**
--- In HYPERLINK
"mailto:php-list%40yahoogroups.com"[EMAIL PROTECTED], "Marc.boncz"
<[EMAIL PROTECTED]> wrote:
>
> Hi Rafael,
>
> >I'm new to these technologies (phpMyAdmin and mySQL). Basically, I
> >installed phpMyAdmin in my host directory (where my website resides)
> >and configured the config file, etc.
> You configured the config file using what? (especially hostname.
Typically,
> the database server resides on 'localhost', although I have seen
different
> setups.)
>
> >#2002 - The server is not responding (or the local MySQL server's
> >socket is not correctly configured)
> Are you sure there is a MySQL service active at all, for the host
you put
> the application on? This question mailny because of...
>
> >3.) Once I have phpMyAdmin login window, how do I know my username and
> >password? Where do I create this? Or are they the same as my host
> >username and password?
> They may be, or they may not be the same. They should be informed by
your
> hosting provider, if MySQL is offered as a service on the host where you
> have your website hosted. Alternatively, you might have to set them
yourself
> in the contol panel of the site (environments like Plesk, where you
> configure your virtual host).
>
> Marc
>
> ____________-_________-_________-_____
> Webmail TOP Internet www.top.com.-br
>
--- In HYPERLINK
"mailto:php-list%40yahoogroups.com"[EMAIL PROTECTED], "Marc.boncz"
<[EMAIL PROTECTED]> wrote:
>
> Hi Rafael,
>
> >I'm new to these technologies (phpMyAdmin and mySQL). Basically, I
> >installed phpMyAdmin in my host directory (where my website resides)
> >and configured the config file, etc.
> You configured the config file using what? (especially hostname.
Typically,
> the database server resides on 'localhost', although I have seen
different
> setups.)
>
> >#2002 - The server is not responding (or the local MySQL server's
> >socket is not correctly configured)
> Are you sure there is a MySQL service active at all, for the host
you put
> the application on? This question mailny because of...
>
> >3.) Once I have phpMyAdmin login window, how do I know my username and
> >password? Where do I create this? Or are they the same as my host
> >username and password?
> They may be, or they may not be the same. They should be informed by
your
> hosting provider, if MySQL is offered as a service on the host where you
> have your website hosted. Alternatively, you might have to set them
yourself
> in the contol panel of the site (environments like Plesk, where you
> configure your virtual host).
>
> Marc
>
> ____________-_________-_________-_____
> Webmail TOP Internet www.top.com.-br
>
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.0/525 - Release Date: 11/9/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.14.2/528 - Release Date: 11/10/2006
[Non-text portions of this message have been removed]
Community email addresses:
Post message: [email protected]
Subscribe: [EMAIL PROTECTED]
Unsubscribe: [EMAIL PROTECTED]
List owner: [EMAIL PROTECTED]
Shortcut URL to this page:
http://groups.yahoo.com/group/php-list
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/php-list/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/php-list/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/