Forum: PHP Jul 11th, 2006 |
| Replies: 2 Views: 1,122 Hard to tell unless you include the actual function as well -> display_dl_menu
However you might just add a slash to the single quote and see if that fixes it. So Jill's becomes Jill\'s |
Forum: PHP Jul 11th, 2006 |
| Replies: 1 Views: 2,402 Sounds like you need to post your form values to a page that searches on those values and creates another form? Basic queries using php would do the trick. Use the while loop to write your option... |
Forum: PHP Jul 11th, 2006 |
| Replies: 1 Views: 853 The easiest way to get this going is to use a database to store the information on each trainer, including newsletters etc. Php is often used to present results pulled from SQL databases (MySQL,... |
Forum: PHP Jul 11th, 2006 |
| Replies: 4 Views: 1,408 header stuff has to come out before anything else is printed to the screen. Try splitting the code in two. Put the header at the top and then move your image code to where you need it. |
Forum: MySQL May 8th, 2006 |
| Replies: 3 Views: 2,208 Also, plan on having the store access the same database as the website. That way you can keep info in real time and not mess with dumping data and importing on some schedule. |
Forum: MySQL May 8th, 2006 |
| Replies: 5 Views: 2,565 Hey Dani, also try logging slow queries. This is a great way to see where you may have some indexes not being used or other bottlenecks. |
Forum: MySQL May 8th, 2006 |
| Replies: 1 Views: 3,537 You can try the "Create database books" and see what happens. Either from command line or through your mysql client. phpMyAdmin is great BTW.
If not, just create new tables within your existing... |
Forum: MySQL May 8th, 2006 |
| Replies: 6 Views: 2,759 No to be silly but "No database selected" means "no database selected".
You need a mysql_select_db($database_name,$listing);
:-) |
Forum: MySQL May 8th, 2006 |
| Replies: 2 Views: 4,605 from mysql docs under the SELECT syntax:
SELECT a,b,a+b INTO OUTFILE '/tmp/result.txt'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
FROM test_table;
... |
Forum: MySQL May 8th, 2006 |
| Replies: 1 Views: 1,328 mysql is simply a database. It doesn't use and isn't a webserver. You use a scripting language like PHP to write SQL commands that mysql can understand. PHP can format the data in such a way as let a... |
Forum: PHP May 8th, 2006 |
| Replies: 1 Views: 1,291 Not completely sure I understand your application but....
1) you'll need to have variables that have at least one alphanumeric character in them. You can use $1 for a variable but you can use... |
Forum: PHP May 8th, 2006 |
| Replies: 1 Views: 5,762 Seems like you could build your query according to what it entered. I take it you are having trouble because field 7 might be blank and you don't want to search for a blank field 7, you want to... |
Forum: PHP May 8th, 2006 |
| Replies: 1 Views: 1,004 lol, I think you'll need to provide a LOT more information to get a useable reply. There are a myriad of ways to do logins depending on your database structure and what you want them to be able to... |
Forum: PHP May 8th, 2006 |
| Replies: 2 Views: 3,146 You are using name[] as the variable name. Leave those []'s off and use just name. But you probably want to clean up that text field before using it. However, that's for another post. |
Forum: PHP May 8th, 2006 |
| Replies: 12 Views: 43,237 We use a Cobra scanner that lets you set whether or not to send a "return" after a successful read. Most have that setting available, and the good ones let you program the scanner directly without... |
Forum: *nix Software Jan 24th, 2006 |
| Replies: 1 Views: 2,111 Settings/Configure Toolbars and you can go crazy. All available choices are there and you can move them around as you need. Mine is so tailored to how I work that I can hardly work on any other... |
Forum: *nix Software Jan 24th, 2006 |
| Replies: 1 Views: 2,574 You can use CD1 as a boot CD. Press F2 (I think) for options and head to rescue mode.
Run /usr/X11R6/bin/xf86config as root and choose minimal resolutions to at least get ya going. |
Forum: Storage Jan 3rd, 2006 |
| Replies: 2 Views: 1,579 Hard to tell much with this info. There are special kinds of drives, but most machines for the past years use IDE drives. Look at the ribbon cable that comes out of the existing hard drive, is there... |
Forum: Windows NT / 2000 / XP Jan 3rd, 2006 |
| Replies: 3 Views: 1,110 phpbb has its own install scripts that builds the tables. Can you "see" your phpbb install?
Are you sure mysql is running?
By the way, a very nice interface to mysql is phpmyadmin. Once you... |
Forum: *nix Software Jan 3rd, 2006 |
| Replies: 3 Views: 6,131 sure sounds like your previous install left tables sitting around and now you can't set up the default tables that mysql needs for your new install. I'd start over and find where your tables are... |
Forum: *nix Software Jun 16th, 2005 |
| Replies: 12 Views: 4,385 Hmm, Mandrake's been pretty friendly for me on everything from old laptops to old pentiums. Mandrake also has a "Move" product that boot from the cd. You might be able to do some disk checking from... |
Forum: *nix Software Jun 15th, 2005 |
| Replies: 12 Views: 4,385 Hey fellow coloradoan...
Is this a Sony VAIO? Any odd hardware plugged in? I believe this is something to do with probing the hardware. |
Forum: PHP Jun 14th, 2005 |
| Replies: 4 Views: 2,411 In sindex where it says:
$rs = "select from subscriber blah blah"
$rsCheck=mysql_query($rsQcheck);
make it say
$rsCheck=mysql_query($rsQcheck) or die (mysql_error());
and same for any... |
Forum: PHP Jun 6th, 2005 |
| Replies: 3 Views: 1,927 what does the mysql_error tell you is happening? |
Forum: PHP Jun 6th, 2005 |
| Replies: 2 Views: 4,503 make sure your entire page uses a style sheet, then create different style sheets for each skin you want. Say you have style sheets named fishy.css and aqua.css
Then you can set the skins using a... |
Forum: PHP Jun 6th, 2005 |
| Replies: 4 Views: 2,411 I would guess it may be that you are running a query on newsletter but your database is called user_newsletter. :)
add or die(mysql_error()); onto all of your mysql_query($q) lines and see if... |
Forum: PHP Jun 6th, 2005 |
| Replies: 3 Views: 2,890 yikes thats a lot of code!
Does the autoresponder have a database on its back end? Can't you just poke it into the database yourself? |
Forum: PHP Jun 6th, 2005 |
| Replies: 4 Views: 2,485 Try rolling your own. You don't need anything super fancy, a basic MySQL/PHP on a rented box would work fine. I've got old 400mhz boxes purring along with a million mysql records in them and they... |
Forum: PHP Jun 6th, 2005 |
| Replies: 3 Views: 2,527 Try writing one yourself. They aren't too tricky.
1) use mysql_num_rows to get the number of rows.
2) in your while loop put a counter that only echos results within the range you want. 1-10,... |
Forum: PHP Jun 6th, 2005 |
| Replies: 3 Views: 1,409 Well as a webmaster you will still be writing HTML even with PHP :) PHP will allow you to manage your websites way easier as you can write pieces of HTML and then "include" them into your html for... |
Forum: PHP Mar 24th, 2005 |
| Replies: 4 Views: 2,000 Yikes, sure seems suited to a database application....
But if you want to stay with text files, you could write files to the server, one for content and one for the bookmarks. I'm not sure how you... |
Forum: PHP Mar 24th, 2005 |
| Replies: 3 Views: 2,934 Easiest thing to do is to alter your table to have a default value of "blank" rather than NULL. Then you don't have the problem.
However, I don't see that you would have a problem unless you are... |
Forum: PHP Mar 24th, 2005 |
| Replies: 1 Views: 1,726 you are looking for php and mysql. You would have one page that receives a variable for the unique id for each row in your table and presents the dude's data.
The bioform shoves the data into the... |
Forum: PHP Mar 24th, 2005 |
| Replies: 1 Views: 10,699 Pass the current row count as a variable to the query.
At each result row add
<? $goin_back = $row_num - 1;
$goin_ahead = $row_num + 1; ?>
<a href="?row_num=<? echo $goin_back;?>">Back</a> || ... |
Forum: PHP Mar 24th, 2005 |
| Replies: 4 Views: 2,000 what is linear text? can you give an example/illustration? |
Forum: PHP Mar 24th, 2005 |
| Replies: 4 Views: 5,585 I don't see your form, but sounds like either case or if else will do the trick. Imagining you are sending a radio button called temp_format
<INPUT type="radio" name="temp_format" value="c"> Use... |
Forum: *nix Software Mar 23rd, 2005 |
| Replies: 4 Views: 2,980 Nothing is stripped, there are 6 cd's worth of love for the taking. I currently use Mandrake for kiosks, workstations, POS systems, web/database servers, mail servers, laptops, and even on an iMac.... |
Forum: PHP Mar 23rd, 2005 |
| Replies: 10 Views: 2,815 Aha, you're in good shape then. You can just rename your page index.php and you won't know any difference until you start to add some actual php tags.
you'll need to do 2 things...
1) Put data... |
Forum: PHP Mar 22nd, 2005 |
| Replies: 12 Views: 43,237 We build linux based POS systems with PHP/MySQL. We plug a good USB scanner (try cobra) and it reads the barcode and translates to text. There's not a script side parsing from code39 to text that you... |
Forum: PHP Mar 22nd, 2005 |
| Replies: 1 Views: 2,519 If you aren't heading back to the server for calculations, you are stuck with javascript (imho)
To save for future perusal, you can write all values into a db. Either set a cookie when they... |