I've read tutorials and forums, but I just dont get it or it's not possible to do what I want...
I've got two tables (a bit cut here):
albums (aid, visibility)
pictures (pid, aid, name, title) // pid increases by 1 for each new row
I'd like to select the latest addition from pictures, but if...
Hi,
I would like to make a script that creates a serie of databases. This is what I thought could do the job...
$mysql_access = mysql_connect("localhost", "user", "pass");
$count = 1;
while ($count < 5) {
$query = "CREATE database_" . $count;
mysql_query($query, $mysql_access) or die...
My script is called like this:
script.php?sms=123#456
Then I use GET to read $sms into the script.
123 and 456 is two separate values I'd like to retrieve. They can be from 1-5 digits each.
Best way to do this?
How come this difference?
INSERT INTO `db1_search_wordlist` VALUES ('bara', '251', '0');
INSERT INTO `db2_search_wordlist` VALUES (0x3237, 3861, 0);
Data from two different databases on different servers, both using phpBB. But why that difference in the database?
Trying to move phpBB-forums...
The normal way to use is:
shell> mysqldump [options] db_name [tables]
Is it possible to do something like this
shell> mysqldump [options] db_name [prefix_*]
I want to backup certain tables from a db which all have the same prefix (xyz_a, xyz_b, xyz_c ... )
I'm redirecting traffic via this (in short...):
header("Location: " . $html->param('redirect'));
Only problem is that the recieving website doesn't get any referer-info, and since I'm redirecting for affiliation I don't get paid :(
Is there a way of sending clicks thru my page to reciever so...
I've got a directory called "alfa" that contains both files of various types and subdirectories with files. I'd like to be able to create a new directory named "beta" and copy all the files and subdirectories from "alfa" into "beta". All should be done in PHP...
Is it possible (dumb quetion!)...
I've got an table that looks something like this:
product | price | currency
prod1 | 15 | USD
prod2 | 20 | EUR
prod3 | 89 | GBP
prod4 | 11 | USD
I extract these from the table and then converts them all to EUR, but how do I sort them from low to high (or vv)?
Any code-examples are welcome...
Search is under maintenance, so I haven't searched Tek-Tips...
<Newbie-warning>
To send data from a form to a php-file, does register_globals always have tp be set to On?
This little form:
<form name="form1" method="post" action="test.php">
<input name="t1" type="text">
<input...
How do I get things out from a table that has been submitted the latest 24hrs?
The table I'd like to get things out of is built on this:
CREATE TABLE nuke_stories (
pn_sid int(11) NOT NULL auto_increment,
pn_catid int(11) NOT NULL default '0',
pn_aid varchar(30) NOT NULL default ''...
I've got a simple voting with 5 radiobuttons. I want it to be submitted when one is clicked, without having to click on a submitbutton. How do I do this?
Using the below script should give me the number of messages in my inbox and how many that's not read, right? If so, how come it doesn't work? or is there something else that's wrong? I get the correct number of mails in my box, but it never tells me one is unread...
Someone got a clue on how...
Hi,
Anyone who can point me in the right direction for creating something like the layer dropping down when first reaching Tek-Tips? I'd also like it to appear only once in 72hr or once to each user (using PostNuke)
/N!cklas
Is it someway possible to have a FORM that opens in another window? Something like this (note the 'target'):
<form method="POST" action="nextPage.asp" name="myForm">
<input type="hidden" value="SomeValue" name="hidValue">
<a...
I've got a file1 with a form action=file2.php.
How do I get file2 to get back to file1 (or another file) after it has processed what it's supposed to do?
File2
<?
FunctionToProcessFirst
FunctionToReturnToFile1OrOtherFile
?>
Still a newbie....
I'd like to use the script below, but I want to use the servertime instead of the computers local time.... Anyone who can help me?
/N!cklas
----------------------------------------------------
<script language="JavaScript1.2">
function...
Hi,
How do I drop specified tables? I know I can use drop table '****' , but I want to drop 70 out of 75 tables... Is there an easy way (in PHPmyadmin)??
/Newbie-N!cklas
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.