231 Posted Topics

Member Avatar for vo2corp
Member Avatar for scru
0
80
Member Avatar for tkmc

Why shouldn't you be able to use more than one query in a php-file? When I got you problem correctyl you want to save the selected dropdown as a flag in the table [code] mysql_query("UPDATE `cab_eticket_numbers` SET `cab_eticket_used`=1 WHERE `number`=".$yourphpvariable); [/code] and secondly you want to hide it the second …

Member Avatar for HazardTW
0
2K
Member Avatar for OmniX

So do you have 3 buttons "A", "B" and "AB" or do you have a form with checkboxes so that the user can choose which options he(she want's to perform? First of all I'd work with functions. Try something like: [code] funciton buttonA(){ //perform stuff for button A } funciton …

Member Avatar for sDJh
0
72
Member Avatar for 65!sesa

seems to me as if you have an empty line at the beginning of your code. Make sure that the php-tag "<?" starts directly at the beginning of your file, that all code that you include before don't echo anything and no echo or print is used in your file …

Member Avatar for sDJh
0
81
Member Avatar for zhinokin

[code] XOR EDX,EDX MOV ECX,length reverse_loop: MOV AL,[string_remarks+EDX] MOV [string_reverse+ECX],AL LOOP reverse_loop [/code] I'm pretty sure that's what you mean. If you have probs with you memory then try length-1 in EDX or increase ECX or something like that. If it's not working at all than ask again an I'll …

Member Avatar for sDJh
0
210
Member Avatar for rumencho

when including source to your project the assembler's root directory is the directory of your project. So you have two or actually three choices: 1) Leave the author's libs somewhere on your HD and include them with the complete path (eg "/home/yourname/authorsname/lib/whatiwant.asm"). which is a hell a lot of work. …

Member Avatar for Salem
0
110
Member Avatar for Shariqhere

Change the method in the form-tag to "get". This adds the value and the variablename automatically to the URL you set in "action". Example: [code] <form method="get" action="redirect.php"> <input type=text name="e"></input> <input type=submit> </form> [/code] is automatically changed to redirect.php?e=enteredemailaddress Greetings Simon

Member Avatar for Shariqhere
0
1K
Member Avatar for osman85

I never work width EOD but a common problem is (which causes a lot of confusion) that you have to dequote you variables. Try to change your code to something like this: [code] var$="This is my var ".$my_var." at line 1"; [/code] If this isn't enough than have a look …

Member Avatar for sDJh
0
60
Member Avatar for sDJh

Hello everybody, I hope this is the right forum to post my question. It's a bit "in-between". I am about to write an updater for a programme of mine. The updater downloads an update-file from my server that has packed all files I want to replace and executes a simple …

Member Avatar for sDJh
0
156
Member Avatar for mmmsabeel

code 1 (The HTML-Form): [code] <form action="code_2.php" method=post> <select name="phonenumber"> <option>Nb1</option> <option>Nb2</option> ... </select> <input type=submit> </form> [/code] Code 2 (Selecting the Values in PHP): [code] <? $phonenumber=$_REQUEST["phonenumber"]; $res=mysql_query("SELECT * FROM `table` WHERE `PhoneNumber`='".$phonenumber); ?> [/code]

Member Avatar for mmmsabeel
0
84
Member Avatar for CoolCheech

If the game's using TCP/IP or UDP for LAN/Internet-connection then it's not a problem at all to combine multiple platforms and consoles. Even the code has not to be different. The only fuss would be to implement TCP/UDP on all platforms and that is definately differnet when accessing the OS-specific …

Member Avatar for sDJh
0
143
Member Avatar for loimarie

I hope I got it as well, but I'll give it a try: When dividing a number with DIV then it returns the result in AX and the modulo in DX. Communicating with a microchip can easily be done via the RS-232 (COM) Port. Have a look in you OS-environment …

Member Avatar for sDJh
0
178
Member Avatar for jackparsons

It means that you didn't open your DB correctly. I can't tell you exactly as you haven't posted the code which calls the function db_getrows(). Have a look there and make sure that the handle you're passing the function s correct.

Member Avatar for jackparsons
0
152
Member Avatar for srinivas1236

as simple as this: [code] <? //Getting the current day: $today=date("d"); //String for the dropdown... $dropstring="<select>"; for($x=1;$x<=31;$x++){ $c=""; if($x==$today)$c=" selected"; $dropstring.="<option value=\"".$x."\"".$c.">".$x."</option>"; } $dropstring.="</select>"; echo $dropstring; ?> [/code] This should work, even though I haven't tested. If you find an error it must be something like missing ; or bracket. …

Member Avatar for sDJh
0
64
Member Avatar for kunalcrazycoder

get this book from amazon.com. It's really worth it. I learned assembly with it as well: [url]http://www.amazon.com/Assembly-Language-Step-step-Programming/dp/0471375233/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1216222573&sr=8-1[/url] nasm is my assembler of choice. It's free, fast, efficient and widespread on all OS so that you always find people who are familiar with it. YOu can find it here: [url]http://nasm.sourceforge.net/[/url] Quite …

Member Avatar for SamY
0
121
Member Avatar for mrcniceguy

????? I don't get your problem. You say you get an error, when you upload more than 1MB and write in your code [code]if ($_POST['MAX_FILE_SIZE'] >= $_FILES['file']['size']) {[/code] By the way: hidden textboxes are bad style anyway. Why don't you just define the maximal size directly in addphoto.php?

Member Avatar for Fungus1487
0
81
Member Avatar for Phoenix10010

ORG just leaves empty space before the assembled hex. So if you just code your stuff in NASM and then later want to place your C-code before, your can use the DOS-Funktion copy (cp in UNIX?). This function merges two files (your c-bin and your asm-bin). You don't have to …

Member Avatar for sDJh
0
145
Member Avatar for ryy705

It does depend on the server you are using. I don't know if you can access gmail or hotmail but if you have a server running it should work. At least with my provider.

Member Avatar for sDJh
0
93
Member Avatar for darcee
Member Avatar for sDJh
0
129
Member Avatar for phpuser

Hi, go to php.net and look up these two functions: date() and mktime(). The first one gets you all information that you need about a specific day and mktime creates you the unix-time-stamp that is needed for date(). When reading the documentation you should get all information you need to …

Member Avatar for phpuser
0
115
Member Avatar for cyberjorge

Hi 1) you cannot protect your design from being copied. This is the soul of open-source (which has mainly developed the internet). a) There are a few stupid tricks out in the web that propose to write something like "<!--End of page--!>" quite at the beginning of your page to …

Member Avatar for sDJh
0
130
Member Avatar for servis

[url]http://www.oracle.com/technology/tech/php/index.html[/url] Download the source/bin and recompile your php (maybe even your apache). Should work then - but don't ask me how to access it the database. Guess it works much different to mysql. If you think it's too much work then think about exporting your oracle-DB to MySQL.

Member Avatar for sDJh
0
48
Member Avatar for daveg8

Nothing is missing apart from a good browser. Things about graphics in HTML (unless you messed around with tables of CSS) are nothing that you but the user have to worry about. The problem is the following: A video is displayed by a plug-in and firefox grap the buffer from …

Member Avatar for sDJh
0
81
Member Avatar for citizenjawahar

Very simple reason: When you use mov bp,#mymsg you load the pointer to that string into bp. Use MOV BP,[#mymsg] instead. For the looping see PM.

Member Avatar for sDJh
0
186
Member Avatar for bigbob

Hi, this is my personal opinion: reading otherone scripts is the hell on earth. Before I try to understand someones logic I programmed everything myself a dozen of times. What you could do is: Use the script that covers most of your project and then rewrite the stuff that you …

Member Avatar for sDJh
0
118
Member Avatar for ravi_84

could you post the html-source of your browser? that may help other users to grasp the problem. Cheers Simon

Member Avatar for sDJh
0
66
Member Avatar for niernier

??? When you access and search through a file you need a pointer anyway. [code]MOV AL,[file+EBX][/code] So write a routine that compares a string and a string (file) with an offset. [code];ESI: string1 ;EDI: string2 PUSH EBX MOV ECX,string1length cmp_loop: MOV AL,[ESI+EBX] MOV AH,[EDI+EDX] CMP AL,AH JNE cmp_false LOOP cmploop …

Member Avatar for niernier
0
103
Member Avatar for joker40

Of course you can. Basically everthing ist possible with PHP, even complicated stuff when you extend it with system-specific functions. Things that generally cannot be solved in PHP: - JAVA (Chat, Games) - Flash (Animations, Games) - JavaScript (Eventhandling and Website-manipulation)

Member Avatar for scorpionz
0
180
Member Avatar for isomillennium

HTTP doesn't transfer any information about the form, because the website generates the code itself. I believe that the tag "name" was added with JavaScript to access these field in JS. But what do you need it for? The only thing I can imagine is one of these phishers or …

Member Avatar for sDJh
0
104
Member Avatar for webwareshop

[QUOTE=webwareshop;620466]Hello All, I have a chat friend online who said to me that if I don't know java or .Net then my web design will not make me money. I know how to program in php, asp html etc and willing to learn more as knowledge has no age limit. …

Member Avatar for sDJh
0
129
Member Avatar for queenc

Proberbly you don't have access to the PHP.ini. If you just want to hide a file you can put it into a directory with a .htpasswd (a 403 pops up) and then read these files with PHP, eg [code] echo readfile("./forbidden/test.html"); [/code]

Member Avatar for sDJh
0
138
Member Avatar for RyanLeaf

I also learned Assembly years before I started really using C. C is still for me the language that I struggle most with. What I don't like about C is: - type-casting - pointers - platform specific code These three points are much, much easier in ASM, because the assembler …

Member Avatar for Colin Mac
0
359
Member Avatar for cybernet

Why should the user see the password when you access the data via PHP? Do you want to thank thet website by writing "Data from ...&password=unknown"? If not then the user doesn't see anything at all. The PHP-Script on x2.com only needs to say "okay" or "incorrect". When accessing "okay" …

Member Avatar for sDJh
0
134
Member Avatar for xzaqwer

Personally, I haven't. But I am interested in writing USB-programmes as well. A very good place to start is usb.org. It is the official website for the USB-interface and provides many useful information and documentation. If you have you first successful code, please let me know. Regards Simon

Member Avatar for Asat232
0
99
Member Avatar for Demonoid2008

the simpliest way that I can find right now is saving each occurance of a char in a new array. Basically like this: [code] string DB 'Hello Demonoid2008!",$ yourloop: XOR EAX,EAX MOV Al,[string+EBX] ;reads char MOV BL,[array+EAX] ;reads how ofter char occured till now... INC BL ;and increments it 'cause …

Member Avatar for Demonoid2008
0
280
Member Avatar for flforlife

Put a variable in the form-element say [code]<form action="save.php?mode=edit">[/code] In save.php you just have to distinguish between a new post (mode=="") and an update (mode=="edit").

Member Avatar for sDJh
0
96
Member Avatar for mjmazza

You can try to access the server directly: [url]http://de3.php.net/manual/en/book.ftp.php[/url]. You better try it with a sample code because many server are restricted. Once you have the data, it shouldn't be a problem for you to import the stuff into your database.

Member Avatar for sDJh
0
157
Member Avatar for fredmac

Of course it is. You have to write your own lib with functions for in- and output. It just is quite a fuss. Try to google a bit, because C-Compilers can convert the code to assembly. This actually makes the code unreadable (in my opinion) but saves a lot of …

Member Avatar for Salem
0
147
Member Avatar for ada829

You can use any of these registers. The data is stored until you/your generated code that overwrites or chages it by some functionst. eg. [code]MOV EAX,100h ;<- stores 100h in EAX some code here MOV EAX,0 ;<-clears the register XOR EAX,EAX ;<- clears the register as but faster ADD EAX,EBX …

Member Avatar for ada829
0
2K
Member Avatar for gpdrums

I wouldn't do any fuss to look in the net. It takes about two days to programme yourself. 1. Write a cookie/session-login. Write the functions in a smooth lib so that you can be sure that they are working correctly - and if not rewrite them eith ease. 2. Create …

Member Avatar for gpdrums
0
192
Member Avatar for resooul

FDisk should work. A floppy is a normal FAT32-partition. If not, I believe, you can find good codes for formating disks in FAT.

Member Avatar for sDJh
0
99
Member Avatar for ash112

I would solve it a bit different, because some browsers have problems displaying images like this. Write another PHP-File that just outputs the image. Then use [code]<a href="image.php?id=1">[/code] in your first script. I hope that helps. Simon

Member Avatar for sDJh
0
60
Member Avatar for sDJh

Hello all together, I've a JS-script that forces the mouse pointer to become a hand. It does work perfectly on IE, Opera, Safari and Konquerer (that's what I've tested so far). Just FireFox doesn't want to change the icon. What's the matter? Here is the script: [CODE]document.getElementById(wid+'0a').style.backgroundColor="#E0E0E0"; document.getElementById(wid+'0b').style.backgroundColor="#E0E0E0"; document.getElementById(wid+'1').style.backgroundColor="#E0E0E0"; document.getElementById(wid+'1').style.cursor="hand"; …

Member Avatar for ShawnCplus
0
141
Member Avatar for camdes

You need a semicolon after the string in echo. eg. [code]echo "<a...>";[/code].

Member Avatar for sDJh
0
64
Member Avatar for kevin wood

Of course you can. The error ays that the image doesn't exist. Make sure your script is in the same dir as you image, then try to add a "./" at the beginning of image-name. And if all doesn't work, that you could try to delete the image giving the …

Member Avatar for kevin wood
0
8K
Member Avatar for spiderling

Use [code]header("Content-Length: ".$filesize($fullpath));[/code] to add the size of your image as well. It then should work.

Member Avatar for spiderling
0
115
Member Avatar for jino

That depends on you browser, of course. In IE (I just can guess) it is stored in Windows\Temp in a normal textfile. Opera saves all cookies in one file but but you can edit the cookies within the settings. Firefox, Safari, Konqueror, etc save the cookies somehow else. But as …

Member Avatar for digital-ether
0
153
Member Avatar for Traicey

First of all, and this is my personal opinion, is assembly much more logical. When fussing around with pointers in C++ I always mess around after a while and don't have a clou which variable stands for. In assembly the compiler (or in this case the assembler) doesn't bother which …

Member Avatar for Traicey
0
78
Member Avatar for stephen_300

is that programme already running? Guess you have to solve that with C using events. Can't imagine that using the Linux-Kernel/the WinAPI with ASM is done in a few minutes. Win and Linux are sending a kill-signal a soon as the user shutsdown the computer. Don't ask me how you …

Member Avatar for sDJh
0
86
Member Avatar for cmrhema

I prefer NASM. It is totally free, has a very good performace and supports the native Intel-Syntax. The code is very clear. Many examples in the internet (and also programmes) are written in the NASM-Syntax, so you don't always have to rewrite the codes you find. Linking can be done …

Member Avatar for sDJh
0
85

The End.