Search found 13 matches

by CrustyDOD
Wed Jul 11, 2007 10:09 am
Forum: PHP General
Topic: For loop, template
Replies: 1
Views: 1898

For loop, template

Hey I need a simple solution for template using FOR loop. I really do not want to use any of the template engines out there as i only need a FOR loop. So, i got array with userinfo for example and now i want to output this in template using non-php in template it would look like: {LOOP} id: {LOOP ID...
by CrustyDOD
Sun Apr 08, 2007 2:26 am
Forum: PHP coding => General
Topic: leading zero not allowed, regex
Replies: 0
Views: 1101

leading zero not allowed, regex

Hey I'm not really good when it comes to regex and i cannot solve my problem. I want to show error when the input in field contains leading zero. So for example, this types are not allowed: - 0 - 00 - 01 - 094 and so on.. so far, i have this: eregi('^([0-9]{1,10})$', $d).. Field must contain ONLY in...
by CrustyDOD
Mon Mar 19, 2007 10:41 am
Forum: PHP coding => General
Topic: form item order, always the same?
Replies: 1
Views: 1291

form item order, always the same?

Hey guys, quick question! I have a form, for example with this fields and in this order: 1. edit box (name1) 2. edit box (name2) 3. checkbox (name3) 4. edit box (name4) 5. textarea (name5) 6. checkbox (name6) Now the question is: will the order of items after submit always be same so if i do print_r...
by CrustyDOD
Fri Jun 06, 2003 5:07 am
Forum: JavaScript
Topic: JS problem...
Replies: 3
Views: 2857

what code? how do i get data from DB with PHP? if u meant JS code i don't have any, cause i don't know how to write that. <option value="2">test</option> <option value="4">crap</option> <option value="12">what</option> and so on... now i want to check with JavaScript if the name that i entered in ed...
by CrustyDOD
Thu Jun 05, 2003 12:29 am
Forum: JavaScript
Topic: JS problem...
Replies: 3
Views: 2857

JS problem...

Helow I have a big problem i think:) i get my data from DB with php and then I display them in DropDown box... So now i wanted to check with JS if the name already exists in that dropdown, when i click the button, if the name already exists then some error message displays, else go to next page so h...
by CrustyDOD
Tue May 20, 2003 9:43 am
Forum: PHP General
Topic: quotes problem....
Replies: 8
Views: 3392

Yes i tried also using mysql_escape_string and the result is the same!

using insert without slashes, the output is: test
using slashes: test \\\\

any other idea?
by CrustyDOD
Tue May 13, 2003 9:34 am
Forum: PHP General
Topic: quotes problem....
Replies: 8
Views: 3392

I created new forms and here the code for them: form.php (1st page) ///////////////////// <html> <head> </head> <body> <form method="POST" action="preview.php"> <p><input type="text" name="msg" size="20"><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p> <...
by CrustyDOD
Tue May 13, 2003 9:12 am
Forum: PHP General
Topic: quotes problem....
Replies: 8
Views: 3392

its the same result if magic quotes are ON or if they are OFF, so
any other idea avaible?:)

i'm driving my self crazy with this... HEEEEEEEEEEEEEEEEEEELP
by CrustyDOD
Mon May 12, 2003 11:26 pm
Forum: PHP General
Topic: quotes problem....
Replies: 8
Views: 3392

Hi

i tried your way, but it still cuts off words.
i used: test "a"
and i got: test :evil:

any other idea?
by CrustyDOD
Mon May 12, 2003 12:43 pm
Forum: PHP General
Topic: quotes problem....
Replies: 8
Views: 3392

quotes problem....

Hi I have some problems with quotes... I have 3 pages: 1st page is where i fill out a form and submit it 2nd is the preview page 3rd inserts data to database now the problem is when i on 1st page enter text into editbox let's say: some text "what" is this? then i submit this data and on 2nd page i p...
by CrustyDOD
Tue Apr 15, 2003 6:02 am
Forum: PHP coding => General
Topic: Best editor for PHP
Replies: 212
Views: 198146

i was using first PHP Coder and now i''m using Maguma Studio for PHP, but it's quite buggy :(

CrustyDOD
by CrustyDOD
Tue Apr 15, 2003 5:58 am
Forum: PHP coding => General
Topic: Replacing string in file problems...
Replies: 1
Views: 1202

Replacing string in file problems...

Hi I have a small problem or big i u will... i have a file zs.inc and the contents of the file is just date (ex: 2.2.2003). now here the code to open that file and get the contents into string: $filename = "zs.inc"; $fp = fopen ($filename, "r+"); $read_file = fread($fp, filesize ($filename)); $str_r...
by CrustyDOD
Tue Oct 29, 2002 3:03 am
Forum: PHP coding => General
Topic: SSH protected server -> uploading image...
Replies: 1
Views: 1502

SSH protected server -> uploading image...

Hi My friend has a server SSH,which means that uploading over normal FTP program isn't possible. And here's the problem. Uploading picture into SSH protected server isn't possible (i tried) or i have stupid script that can't do that:)) (on normal server the script is working normaly!), so can someon...