![]() |
You don't need to use a variable, just use:
PHP Code:
|
hmm it just changes it to 0
|
1. I wouldn't query in a loop if I were you.
2. I'm not sure why it's not updating - I used the exact same method for my Tutorial Hack and it works perfectly. |
oh i removed, the update query from the loop
heres my current code: PHP Code:
|
hmmm i can get this to insert stuff in the table
heres the code: PHP Code:
HTML Code:
<table align="center" class="tborder" style="border: 1px outset;"> |
PHP Code:
|
First off
PHP Code:
Also you don't need any quotes at all PHP Code:
Only reason I can see that the data doesn't update correctly is that the url is not yourscript.php?view=gal, other then that it should update, unless you also defined the templates to eval elsewhere. You can free the memory that is used by the query after the while loop PHP Code:
g-force2k2 |
thanks guys ill try it out when i get home
gforce i am defining $id through the link to the gallery from the gallery index. example: gallery.php?view=gall&id=1 where should i put that free result im a tid bit new to php but i think im doing ok, also can someone help me out with my post on inserting stuff into the db, i have clue y it doesnt work edit: thanks to both of you, its updating views now;) now i gotta sort out that inserting>_< edit2: ok i changed the insert query to this but it still aint working: PHP Code:
HTML Code:
<form action="gallery.php?do=insert" method="get"> |
anyone know how to solve my insert query problem?
|
Quote:
Hope that helps somewhat. Cheers, g-force2k2 |
All times are GMT. The time now is 10:31 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|