User Profile
Collapse
-
now im pretty new here, but i dont think you should keep posting this question in different ways, it just hogs the forum -
http://php.net/htaccess to learn about this in php
http://us2.php.net/reserved.variables and find info on REQUEST_URI
since you are using windows, you cant create a .htaccess file because windows wont allow a file starting with a period. so you need to edit your apache.conf file to look for a different file name than .htaccess.
now that that is ready, creat that file with the info i put in my last post. if...Leave a comment:
-
2 things i need to know.
1) what is this a search for, if i understand the language i can help more
2) what do you want the radio buttons to do?
let me know this and i can tell you how to do itLeave a comment:
-
im pretty sure this will only work in IE and when you click on a submit button that uses an image.
let me know if im wrong, best of luck to you
-timLeave a comment:
-
here is the code for an .htaccess file to do what youre asking:
Code:RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
Leave a comment:
-
i really need more information of what you are trying, but really, to put a media file of any kind in a webpage wouldnt require php.
just use the <object> tag in html, where for the src you can use php to generate that.Leave a comment:
-
-
[php]
$d1 = 'dropdown 1';
// example: d1 = 2
$d2 = 'dropdown 2';
// example: d2 = 5
for ( $i = $d1; $i <= $d2; $i++ ) { // 2 <= $i <= 5 in other words, from 2 to 5
$que = "DELETE
FROM table
WHERE id = '$i'";
$res = mysql_query($qu e);
}
[/php]
this will cycle through the selected number range and delete rows...Leave a comment:
-
you have a few options:
1) AJAX!!! this is your best option, it will dynamically reload the section of the script you want updated and nothing more. if you are clueless on it, hit up google or get friendly with prototype.js.
2) <object> tags. this is if you are using strict dtds, i HIGHLY doubt you are...
3) iframes - an early form of ajax. works like framesets, but embeded in a non frameset....Leave a comment:
-
why dont you try making it expire a LONG time ago, perhaps at the unix epoch?
-timLeave a comment:
-
you have to have a plan before you make anything. figure out what you want it to do, then read http://php.net like crazy to find info on dealing with form vars and manipulating them.
look up $HTTP_POST_VARS , $HTTP_GET_VARS, $HTTP_SESSION_V ARS and $HTTP_SERVER_VA RS to get started.
then come back and ask questions
good luck
-timLeave a comment:
-
AES is the new defacto standard. it is in both PHP and mysql by default, i find the mysql method a LOT easier to use. its the same enc type that the US govt uses, there are only 2 HYPOTHETICAL breaks to it in existence. in php it is part of the mcrypt library, and it goes as rhijndahl or something like that, after the 2 people who created it, and make sure to use the 128bit version, as that is the AES version.
in mysql its just:...Leave a comment:
-
substr ( string, start point, end point )
where the first available start point is 0.
so that means:
[PHP]
echo substr('hello', 0, 1);
// echos h
echo substr('hello', 1, 1);
// echos e
echo substr('hello', 0, 3);
// echos hel
echo substr('hello', 1, 3);
// echos ell
[/PHP]
for the EXACT info, check out http://php.net/substrLeave a comment:
-
enctype tells the server recieving the form how to handle it. when you get into a lot of ajax you will start to really use this. also, when uploading files you have to set the enctype to multipart/form-data
basically, if you are doing something that requires enctype to be set or changed, you know what you are doing with it.Leave a comment:
-
i would approach this pretty much as you would a shopping cart.
instead of storing mass amounts of info in the db, store references to threads in the db.
example:
CREATE TABLE `thread`
(`threadId` int(11) NOT NULL PRIMARY KEY auto_increment,
`threadTitle` varchar(255) not null,
`threadDate` date());
CREATE TABLE `thread_message s`
(`messageId` int(11) NOT NULL...Leave a comment:
-
it all depends on the type of search you want to do. are you having customers search a product, users, or are you trying to take on google?
say you are searching a product, your SQL would look something like:
$product = 'web dev book'
SELECT prodId, prodPrice,
prodDesc, prodTitle
FROM products
WHERE prodTitle LIKE '%$product%'
this is the most basic...Leave a comment:
No activity results to display
Show More
Leave a comment: