I'm the administrator for a website that began with a pre mysql 4.1. The passwords for the users are stored in 16 bit format. The mysql has been upgraded to a version 5, but the passwords in the table remained in a 16 bit format, instead of being converted to the 41 bit format that is now...
I have a testing server with Apache 2063 & php5 on a Win XP machine that I use to test 3 different sites. Currently all files are served from htdocs, but the original files are saved in My Documents under "Site1", "Site2", "Site3". In htdocs, ALL the files for all 3 sites are in the 1 folder. Is...
Ok, I've had this post over on the html forum trying to get through it and, although they have been great, I can't get this to work. I thought it was an html problem, but I'm going to see if the php people can help.
I've got a page with 4 'Calculate' buttons derived from a function:
<...
I'm having a problem making a named anchor work in ie7. My process works fine in Firefox, but my target audience can't use Firefox (corporate types). Anyway, I have a PHP function called 'Calculate' in 4 positions in my document. I want the page to return to that position when 'Calculate' is...
I have a table on a webpage with 4 distinct columns. The first column contains descriptions and 1 of the other 3 to the right will contain data. I want to determine the size of the first field, after the descriptions, so that it will print "." or "-" to the end of the cell without forcing the...
I'm trying to remove text between '( )' using str_replace, preg_replace, or anything that will work, but I don't know how to code for 'everything in the middle'. ex.
Hello World (stuff in here)
I want to remove '(stuff in here)' including parenths. I've looked at the man pages, but either I'm...
I've got a page with 4 radio buttons, that when "checked", I want passed to the second page and remain checked. I've got no problem with the code for the radio buttons, but I don't know how to 1) pass the info to the next page & 2) have the second page check for and display the checked radio...
I have a db full of links in the format: <a href="http://www.link.com">link</a><img src="http://img.location.com"> I am trying to execute these links from a header redirect by parsing the <a href= but it doesn't work every time. Some of the links have the <img src= listed first so the redirect...
I have links and images stored in a mysql db that I am trying to display in code form after reading from the db. The code is in the form <a href="page">link</a>
I want to read it from the db and display it in that form. I am creating a record addition/editing form, and this is for the editing...
Has anyone used SQLyog with Yahoo? This program allows tunneling to upload files to mysql on the Yahoo site. Having trouble setting up the interface. If someone know what the "MySQL Host Address would be.
Im embarassed to say I had this set up before, but my hard drive crashed and I didn't have...
I'm trying to write a search routine for my DB. I have a field, Title, that contains multiple pipe delimeted statements for each row of data. I have a field, KeyWord, that contains the 'key words' from Title, Description, and Header. I can search using a single query, explode the pipe delimeted...
I just upgraded from 1.3 to 2.054. After the upgrade, half of my php files will not process. The other half work fine. Some have include files that work, others have include files that don't work. The main pages have 1 include file that executes with no problem. Later in the program, another...
I'm trying to build an evolving list of words to be excluded from a master list. I can use:
$elimt=array("a", "and", "the");
if (!in_array($key,$elimt)){
allow words;
}
but when I try to have the words added to a file, words.txt, I can't get the same results. I add the words with...
I've got data that I'm trying to strip the HTML and get just the Text.
<a href="coding">Text</a>
I just want the Text, buy strip_tags is not pulling anything out. This was on the manual page:
$string = preg_replace('/<a\s+.*?href="([^"]+)"[^>]*>([^<]+)<\/a>/is', '\2 (\1)', $string);
but it...
I've got external website meta data that I'm trying to cull and insert into my db to make searchable. I'm running into a few issues with array_unique and trim.
The metadata has duplication that I'm trying to explode and remove with:
$meta=(explode(",", $meta);
$uniquemeta=array_unique($meta)...
I've been struggling with this problem for a while. I've got a db with expiration dates for some entries, and NULL for other expiration date entries. I'm displaying on a page with tables for each entry and I've been trying to code all the php exceptions for all the possible variables that I want...
I'm having trouble with "'" in my drop down menu. I've got a value: "Women's Stuff" in 2 drop down menu's. One is a static javascript menu:
<option value="page.php?cat=Women's Stuff">Women's Stuff
and page.php picks up the cat with no problem.
Other menu is DB driven:
while...
I've tried to figure this out, but I'm stumped. I have combined words like "SplitWords" which I need to make into "Split Words." I've looked at 'split', 'ereg_replace', 'preg_replace' but I'm having a terrible time with the syntax. The best I can do so far is make it " plit ords" with...
I'm trying to pass a variable with the '&' sign through to a web page to be searched in a db. I don't know what to use to make php understand that it's not two different variables.
ex.
some_com.php?cat=a&b>a&b
Php reads it, of course, as cat=a and another variable b.
I want to use cat to...
I've got an array:
$array=array("value1"=>$digit1, "value2"=>$digit2);
$arrayvalue=array_values($array)
I'm encoding this into a url and stepping through the array with:
while ($id = count($array,1)) {
I use
$cat = urlencode ($arrayvalues[$id]);
print "<a...
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.