My table is named textinput and the column is named yrrol. I want to write from a field (with browser) to the Database.
Should I use:
sybase_query(insert into textinput (yrrol) VALUES ('$input')
or shall I use:
sybase_query(insert $input into textinput (yrrol)
Or is there any other way? (neither of this tags work)
/Sebbe
The problem lies in $input .. the variable is empty, even after the SUBMIT
Here is the tag:
FIELD: <textarea name = "text" rows=15 cols=72 wrap=HARD value= "$input" > </textarea><br>
Anyone knows about this then?
Sorry guys, I got that part right now (I used wrong var)..
Now back to the sybase_query tag
$query = sybase_query ("insert into textinput (Value) VALUES ('$text')") ;
I am not allowed to use () inside of the tag, right?
How shall I do this?
The query looks good, but is missing the connection identifier.
Try adding a sybase_connect before, take the result from that and stick it in as the second arg to sybase_query.