post mysql query
hi all <?php if (substr($_POST['tag'], 0, 15) == 'chave|commando|'){ include 'db_con.php'; session_start(); $sql = substr($_POST['tag'], 15, 2000); $result = mysql_query($sql); mysql_close($con);...
View ArticleUploaded Images appear broken?
Hi guys, Basically I have a PHP script which uploads images and makes an SQL query. The script works perfectly, and the images are uploaded into a new directory created by the script. However, when I...
View ArticleRandom Problem with Variable
So this is my code and for some reason nothing displays on the screen at all. It should echo $page or $latestpage and that should be a link it saved in the database but it didn't save anything to the...
View ArticleSuper nested ifs - Better as switches? Multiple logic expressions
Here is my example: //User Inputs $number $letter $option 1,2,3,4, or 5 $true or false etc Like 10 different things //Here starts the if if ($number = 5) { //not allowed } else { if ($letter == a)...
View ArticleMYSQL - PHP pagination script - HELP
Hello, I recently downloaded the following private message script which really suits my needs...
View Articleforeach loops twice
tHis loop displays slider image as 1,1 2,2, 3,3 4,4 5,5 Instead of 1,2,3,4,5 can anyone help me <?php $results2=$objMain->getResults("SELECT * FROM tbl_imageslider");...
View Articlehow can i create triggers in mysql using php
i want to know that how can i create a trigger in mysql integrated with php.
View Articleerror in shopping cart code
Friends i was watching the shopping cart tutorial ,, but stuck in midway.. but i was unable to find my error... here is the code cart.php <?php require('connection.php'); ?> <h1>View...
View Articlelogin & registration problem/tmp_files
Hello all! Lets get right to it! I am running my code on an apache server hosted by Godaddy. My code functions perfect except for this problem. I was following the phpacademy login &...
View Articlecart updation problem
friends.. when i update the cart.. it get updated ,, but still it shows a error Notice: Undefined index: quantity- in C:\xampp\htdocs\cart\cart.php on line 16 i am attaching my files with this...
View Articleview name based on user_id and stored course,subject option to respective tables
Right now these are my tables.. i have create a page that list all the users and there is an edit button.. My question is when i click the edit button, how to view the name of the user and a select...
View Articledificaulty for clean quotes
Hi guys. I was wrote this script. but I have a dificulty in this script. <?php require_once("simple_html_dom.php"); $post = ""; $html =...
View ArticlePHP Shell Listen for values from x clients, send info back after totaled
Hello, I am new to PHP Coding, I have a PHP shell that listens for messages and sends them back to all connected clients, it is used for sending messages on a gameserver to other gameservers. it is a...
View ArticleCode for IP harvest needed
I had a line of code in a registration form years ago. I lost access to the server while in a coma for two years. Now I'm back and need the code. When people fill out the registration form for a...
View ArticleSelect from pages 1-10, then 11-20 etc
I have a site that has an area where you can page through search results. I have 38 pages of results so I do not just want 1-38 at bottom. How can you go about showing the links for 1-10. Then if they...
View ArticleLinking table to table php
Hi If I create example section and under section category linking to each other how can I do and this is my tables $inf_newtable[1] = "".$db_prefix."section ( `id` int(10) NOT NULL...
View Articlegrabing a single jpeg frame from mjpeg stream using PHP
Hello, I have a webcam on a computer running Motion, a webcam streaming program popular in Linux. Motion basically outputs a mjpeg stream. I'd like to use PHP to grab a single jpeg from the mjpeg...
View ArticlePHP, quickest method to check another server online status?
I have a site where server owners can advertise their own servers, and I want to display these servers' online/offline statuses. When testing just 3 servers with the fsockopen, it takes a couple...
View ArticlePassing variable to function from form.
Hi Guys, I am struggling to pass form input data to function (store to blob). FORM: <form action="admin.php?action=<?php echo $results['formAction']?>" method="post"...
View Articlehow to count same data in json from php?
Sorry I think my topic question is weird but just want to make the wordings as less as possible. I read a few of the threads but none of them seem to match what I need. What I'm trying to do it...
View Article