So I've created a script that dynamically creates a table when you input whatever mysql table you want to work with for class. It also dynamically creates a form so you can enter new values. This here is just part of it, but it's the part giving me the problem:
I can't seem to get the actual field name(from the db) to be dynamically inputed into the input field name. Any help?
Edit:Nevermind, I got it working. I instead used mysql_field_name() in the loop to get the field name into a variable then use that in the input name.
[code]<Guo_Si> Hey, you know what sucks?
<TheXPhial> vaccuums
<Guo_Si> Hey, you know what sucks in a metaphorical sense?
<TheXPhial> black holes
<Guo_Si> Hey, you know what just isn't cool?
<TheXPhial> lava?[/code]
Ok new problem. For class I have a script that you create a username and password with rules. It checks them for validity, then checks them from a file list of usernames and passwords. If they don't exist and are valid they are entered into the file. Altough it works, I'm keep getting an the error:
Notice: Undefined offset: 1 in f:\ch6b.php on line 28
[code]<Guo_Si> Hey, you know what sucks?
<TheXPhial> vaccuums
<Guo_Si> Hey, you know what sucks in a metaphorical sense?
<TheXPhial> black holes
<Guo_Si> Hey, you know what just isn't cool?
<TheXPhial> lava?[/code]
the above works better, and allows you to be more flexible.
If the variable doesn't exist in in $_POST, I will get an error when I try to assign to a local variable. I tried that and it doesn't work.
@Deathlike2
Lets say my user name is bob and my pass is villa. With that line I'm trying to write bob:villa into the file with carraige return. How would I concat this? Like this?:
[code]<Guo_Si> Hey, you know what sucks?
<TheXPhial> vaccuums
<Guo_Si> Hey, you know what sucks in a metaphorical sense?
<TheXPhial> black holes
<Guo_Si> Hey, you know what just isn't cool?
<TheXPhial> lava?[/code]
Starman Ghost wrote:
If the variable doesn't exist in in $_POST, I will get an error when I try to assign to a local variable. I tried that and it doesn't work.
error_reporting must be enabled somewhere. its a notice, it shouldn't hinder the operation of the program.
Does [Kevin] Smith masturbate with steel wool too?