Add post title in the end of url
I have a website called gapagap.com developed using php. What is basically want is to change the url pattern from: http://www.gapagap.com/gag/54 To this:...
View Articlehow to show table information individually in php?
Hi all, I am trying to show my table information individually, but I just cannot find the way of doing it. At the moment it looks like this- (pic1) I want it to show like this - (pic2) Here are...
View ArticlePHP Header help
I searched for my issue and I'm sure it's been covered but I can't seem to find it. I'm doing a login form and want to redirect the page to the username after it is validated. Here is the code :...
View ArticleChecking a sesion value with an array
Hey, I am trying to see if the current store_name session is equal to any of the session name I have assigned into the $store_array but I don't seem to be getting any luck. Below is my code. Any...
View ArticleWhat is the best way to connect to my database with PDO
I am tring to learn about PDO people have said its easy and the best way to interact with the database, but im not finding it easy. can any help? Should i have my connection in its own class and...
View ArticleSame $_SESSION , different sub-domain
Hi, I have problem with sessions , when i change from no subdomain qip.gr to www.qip.gr it doesn't hold the sessions. Is there any solution ? Thank yu
View ArticleDisplay the search query in the URL
My website is http://www.mp3joe.com I have some rewrite rules setup so if you went to http://www.mp3joe.com/eminem then it would search "eminem". I need to be able to set the URL to the query like...
View ArticleHow to change the browser results ( text )
Hello, i have a question about the results in the browser where you search. I want that this, Search+source+code&page=36 Search+source+code&page=72 Search+source+code&page=108 to change...
View ArticleEmail validation and username check
Hi everybodycan someone help me to make an email validtion system in my code, and help me find a way to check if the username is taken, and if possible where i should put the code in, im new in this...
View Articlestatic variables in traits
From the manual: "Static variables can be referred to in trait methods, but cannot be defined by the trait. Traits can, however, define static methods for the exhibiting class." trait Counter {...
View ArticleHow can I sort Problematic Characters in PHP?
Basically, I am writing a script in PHP, which can take YouTube videos from playlists, items from RSS feeds and podcasts, and individual YouTube videos and files, and places them into an XML document,...
View ArticleHelp
i cant get my index page to hold my information, every time i login it says field are blank the code is as follows index.php <!-- Source Protected --> <!-- Your IP has been logged -->...
View ArticleBest apparoach to building a fast date availability search engine
i have several webservices i would like to perform bookings availability search on. my approach is to cronjob each service each day into a local XML file and then search availability on it. Live...
View ArticleImage upload and file directory problems!
Im currently creating a site for a University project but struggling with the file directories and image uploading. I've managed to get a profile image visible and working but the aim is to allow users...
View ArticleMultiple Options for Insertation
Hello all, I'm not really sure if this should be in the SQL portion or not. I don't think so because I'm not having issues with SQL syntax, just the proper PHP (?) coding to achieve a specific...
View ArticlePDO try{} catch{} error with database information.
Today, I decided to stop with mysqli, and change to PDO.I'm reading this tutorial. Here's my full code: <?php class User { public $username; protected $db; protected $user; public function...
View ArticleInclude - what am i doing wrong?
Hey guys, Quick one for you. I'm trying to use include for my db connection variables, but for some unknown reason, it wont have any of it. so my file 'usersmysql.php' contains this......
View ArticleIF statement using mysql data
Hey guys, I'm trying to figure out the best way to do an if statement based on the value of "accesslevel", which is a row in my mysql database. At the minute my project has multiple login pages for...
View Articlebest way to show page only if user logged in?
hey guys! I was wondering what the best or preferred way of only showing certain pages to users when logged in is? I tried declaring a session variable 'active' as TRUE, and then checking for it on...
View ArticleCompletely new to this but trying to make a dice script
Hello. My name is Sam and I'm learning php as a hobby so I understand if more urgent matters are taken care of before mines! My goal for now is to create a dice script where I roll a die and it...
View Article