- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
16 Posted Topics
Re: Can you please try this as your query $sql = "UPDATE userprofile SET user_name = '".$username."', email = '".$email."', description = '".$description."' WHERE user_id = '". $_GET['id']."'"; | |
Re: Are you getting any errors? You need to add else to the end of your if statement. So do something like: if ($by=="all"){ $sql="SELECT * FROM request WHERE status='$stts1' OR status='$stts2' OR status='$stts3' OR status='$stts4'"; }else if ($by=="my"){ $sql="SELECT * FROM request WHERE status='$stts1' OR status='$stts2' OR status='$stts3' OR status='$stts4' … | |
Hey guys im creating a weapon comparison script for the new game the secret world. A excel spreadsheet has already been created to do this (attached)(i have permission to replicate) but I wanted to give it ago via a php script. See what I currently have attached. What I need … | |
Re: There are many pre made scripts. Have a look at this one http://epplersoft.com/webtester/demo.html it includes an admin area for easy management. | |
Re: You could do something like include('path/to/file/header.php'); //path/to/file being full path name | |
I hope the title made sense. ok ive got a table in a PostgreSQL database that has a few coloumns in it. What im tryting to do is the following: [CODE]<?php $totaltimetodayresult = pg_query($link, "SELECT SUM(acctsessiontime) AS totaltime FROM radacct WHERE acctstarttime LIKE '%".$today."%'"); while($totaltimetodayarray = pgfetch_array($totaltimemonthresult)){ $totaltimetoday = $totaltimetodayarray['acctsessiontime']; … | |
Re: I havnt set up the theme but the images usually are tied to the post that the slider is calling so look for the attached thumbnail or check the custom fields area. If you can see the custom fields area click 'screen options' (top right) then check the custom fields … | |
Re: [CODE]if(isset($check)){ setcookie("myuserid", $_SESSION['myuserid'], time()+60*60*10, "/path/to/website/"); setcookie("myusername", $_SESSION['myusername'], time()+60*60*10, "/path/to/website/"); }[/CODE] Then on your protected pages put this after the 'session_start()' [CODE]//check for cookies if(isset($_COOKIE['myuserid']) && isset($_COOKIE['myusername'])){ $_SESSION['myuserid'] = $_COOKIE['myuserid']; $_SESSION['myusername'] = $_COOKIE['myusername']; } if (!isset($_SESSION['myuserid'])) { header("Location: login.php"); }[/CODE] This will set the cookie for 10hours. Also sending the password … | |
Re: Also check the permissions on the files and folders on you site. ideally you want the permissions to be 0644 on files and 0755 on folders. | |
Re: FYI i started off by making my own cms also then went on to view other ones and modify them to my needs. Currently i am using this one [url]www.php-login-script.com[/url] and am having lots of fun playing around with it. | |
I have the following update code but i keep getting a syntax error. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE order_id='105'' at line 21 [CODE]mysql_query("UPDATE status SET id = '". $_POST['id'] … | |
Re: Try this [CODE]$sql = "INSERT INTO login (studNo, userName, password, dateRegistered) VALUES ($studNo, $user, $pass , NOW())"; $sql2 = "INSERT INTO users (studNo, lastName, firstName, gender, bMonth, bDay, bYear, address, cellNo, email) VALUES ($studNo, $lName, $fName, $gender, $month, $day, $year, $address, $phone, $email)"; if(mysql_num_rows(@mysql_query("SELECT * FROM classlist WHERE num = … | |
Re: Shouldn't the delete.php page also be getting the $id eg. [CODE]$_GET['id'] = $id;[/CODE] | |
Re: I use the following in my code to search and paginate the results. [CODE]/* Setup vars for query. */ $targetpage = "search.php";//your file name (the name of this file) $limit = 25; //how many items to show per page $page = $_GET['paginate']; if($page) $start = ($page - 1) * $limit;//first … | |
Firstly what a great forum and site alot of the threads on here have helped me over the past couple of months create and update alot of sites. So here is my problem, I have a importer which imports a feed (csv file) from a supplier (no problem importing it) … |
The End.