gadgetguy changing
mysql_query($sql) to
mysql_query($query, $connection) just queries the db again instead of performing what's set to $sql. ($sql, $connection) isn't a bad idea for more...
Type: Posts; User: baconDelta; Keyword(s):
gadgetguy changing
mysql_query($sql) to
mysql_query($query, $connection) just queries the db again instead of performing what's set to $sql. ($sql, $connection) isn't a bad idea for more...
ah man i'm derping hard. i have i have, just being an idiot. that worked. a strange bug though. after clicking delete it appears as if nothing happens until i refresh or visit the page again, then it...
oh wow good call. i put form tags around the entire thing, now the page refreshes when the button is pushed but nothing is deleted, whether i have some checked or not. hrmmm. something must be wrong...
so i'm in the process of making a cms for some mods to be able to remove certain rows from a db.
the list of rows displays correctly, and i got the checkbox idea for each row from this thread,...
hrm i see. that's handy knowledge thank you traq. though even with these single quotes around the variable i have the same behavior, nothing coming back. when i peek in the db everything is set...
noted, so i should have the query read:
$query="INSERT INTO data (`CommentUrl`, `Name`, `Comment`, `IP`, `TIME`)
VALUES('$comment_place','$name','$comment',...
creating a thread must be some magical thing. i just changed the name of the column to ComentUrl instead of From and now it works. i guess From is one of those words you're not supposed to use when...
i wrote a little comment system and made a db just for storing comment info. everything works except if i try to store the url from which the comment is made, which is the most important part! i get...
store it in the db as a DATETIME and use something like this before storing it:
$time = date("y/m/d : H:i:s", time());
then just store $time in the column you made with type DATETIME.
well i figured out an alternative pretty quick, so i guess this thread is pretty useless now lol. since i store the urls in a db i used:
require_once("../functions/connection.php");
...
so i found a bit of code to display all images in a chosen directory, it goes something like this:
<?php
$dir = '/r/';
$imgs = array();
if ($dh = opendir($dir)) {
...
i feel like finra would come after you before google or anyone else does lol.
alright so after a little bit more thought i think it's possible to make a function that will insert text after a placeholder, rather than replacing the placeholder itself. i shall attempt this noble...
i've been thinking about making a comment box for some images on my site. images can be uploaded, so a template is used in the creation of the page for the image. under the image i want to have a...
damn alright i figured it out. the current_user function is supposed to read
if(!$current_user){
and not
can anyone clarify if i'm storing the above session variables correctly?
well if i remove the require_login() from the header it works fine....but then the secured pages aren't secured... so current_user is definitely not being stored in the session correctly :/ still...
no same server. it worked with an array of users, but i haven't gotten it to work with a db of users. db of other stuff works, but this is just a bit more complicated. i'm not sure which php.ini...
so i'm trying to build my own login system. i made it work fine when the users were stored in an array, but now i'm trying to get it to work with the users stored in a database, and i've run into a...
you can ask the webmaster if they removed the joomla cms after creating the site, or just disabled the login page. although this will make you sound like you don't know what you're doing.
what...
yes in your htaccess file you can write something like:
RewriteEngine On
RewriteRule ^/admin/nonsense.php$ /admin/index.php [L]
although mod rewrite is tricky. for instance this will...
naw those echos are working correctly since it checks for affected rows ==1 not ==0. yeah i hear what you're saying but i figure it should be accurate since maybe in the future this will be useful....
hm that worked! but i tried using the same style for a 'delete from the banned list' form and it's acting weird.
if(!empty( $_POST['release'])) {
$release_this = $_POST["rel_ip"];...
ok so far i've got this:
<?php
if(!empty( $_POST )){
$time = date("y/m/d : H:i:s", time());
$ban_this = $_POST["ip"];
$sql="INSERT INTO banned (IP, TIME)