![]() |
|
#1
|
|||
|
|||
update problemhi,
i created 3 fields <form action="dirmodify.php" method="post"> <tr> <td> <input type="radio" name="ddir" value="<?=$r->sys_pk ?>" id="dir<?=$r->sys_pk ?>" /></td> <td>Directory: </td> <td><input type="text" name="name" size="20" /></td> <td><input type="submit" name="modify" value="Modify"</td> </tr> </form> this radio display some files from database when i select some file let say FORUM it display in text field and when i chnage the name to FORUM1 and submit the form its not at all updating name i dont no why and in dirmodify.php PHP Code:
thanks in advance |
|||
|
#2
|
||||
|
||||
|
I have no idea what is value="<?=$r->sys_pk ?>" and the function query_db_trad().
But, you can try to hard-code the script temporarily by inserting a valid $ddir value inside the SQL string, e.g.: PHP Code:
If it works, then you know it's a HTML / form issue instead! Also, always quote string values in SQL statements... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
Thanks JDK now it works fine with your recommended query
query_db_trad("UPDATE t_directories SET name=\"$name\" WHERE sys_pk = $ddir"); now it works fine Regards |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 10:11 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 11:44 |
| link problem [1][2]----- | zuzupus | MySQL / PHP Forum | 0 | 16-Sep-2003 06:16 |
| Google Update and DeepCrawl Alert | JdS | Search Engine Optimization Forum | 24 | 16-Aug-2003 06:35 |
| textarea width problem | zuzupus | Web Design Forum | 2 | 23-Jul-2003 04:06 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The