39,326 Topics

Member Avatar for
Member Avatar for gilgil2

Hi I have two Mysql tables, one with the information in and another with payment information in. I want to echo the results that have paid first and then the rest of the results. If information has no payment associated with it it does not appear in the payment table. …

Member Avatar for gilgil2
0
249
Member Avatar for spajky

In my web application I'm using the Lightbox v2 by Lokesh Dhakar. Now i want to refresh image in lightbox every second. Note: Lightbox is trigered by: `<a href="screenshot.jpg" rel="lightbox"><img src="images/Screenshot.png" alt="" /></a>`.

Member Avatar for diafol
0
319
Member Avatar for masocha

l have a php script writing to TCP socket. This connection needs to be always one as it can receive data anytime from the server. Now **problem** is only the first instance of socket_write works. i need to keep reading and writing data to the socket Just to clarify l …

Member Avatar for masocha
0
131
Member Avatar for my3h

I have two files, ApplicationRegister.php and UserRegister.php In ApplicationRegister.php the user fill the details and submit the form to database, it redirects to UserRegistration.php. In UserRegistration.php, User fills up the form and save the data to the lastest inserted id. I have used mysql_insert_id() to get the last inserted id, …

Member Avatar for hemgoyal_1990
0
243
Member Avatar for abhi10kumar

I am using Hindi Font and storing into database. While inserting I use mysql_real_escape_string() function; its working fine on local but not on server. **showing on server** Its adding extra slashes; but in local its showing correct INSERT INTO `tbl` (`num`, `address`, `name`, `father`, `state`, `city`, `gender`, `mobile`, `namdan_date`, `file`, …

Member Avatar for abhi10kumar
0
131
Member Avatar for dagtad

I'm trying to develop an interactive website using php and i want to display image(retrived from mysql database) and some text on the home pag. but the image retrived from my database fills the whole page. how can i display both text and image on the same page?

Member Avatar for diafol
0
888
Member Avatar for vijayram

Hi evrybody, i created fileuploader,user upload photos,the photos arranded in random size. i need display photos three random size first image automatically getin width:140,second:190,thrid:240. more than 10 images user uplaod. next image getin size 1; all the images display overlap. This is my fileuplaod code. public function executeUpload(sfWebRequest $request) { …

Member Avatar for diafol
0
154
Member Avatar for apanimesh061

A way to measure internet speed through javascript is given here ... [Click Here](http://jsfiddle.net/yahavbr/tEFpC/2/) for it, it uses a big image to download and then divides the time taken by the size of the image ....! Is it possible to measure the speed using a video streaming website like Youtube …

Member Avatar for pritaeas
0
207
Member Avatar for HasNor

Dear experties, I have a problem which is my code not running correct way. I want to display data by radio button and checkbox selection. Maybe my if else statement have a problem.. If select "All", data show correctly, but if select "My Task" data not shown correctly..seem like my …

Member Avatar for HasNor
0
182
Member Avatar for glycerine

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 …

Member Avatar for glycerine
0
108
Member Avatar for JeDieL_guitar07

i'm developing a Random Test questions and answer, but i want each page to only view one question together with answer choices in radion button, each time i click the next button another question will appear together with the choices and when i click submit it will appear all the …

Member Avatar for glycerine
0
94
Member Avatar for Patiodude

I want to include a .php file, containing a menu bar, in all my pages. Thing is, some of these pages are at different levels: for example, on might be in the root directory, another might be in root/news, another in root/news/2012, and so on. What can I do to …

Member Avatar for glycerine
0
203
Member Avatar for Patiodude

I'd like to add a timestamp to articles I upload to my website, which reads the time and date the article was uploaded. I've got a database, as well as a working connect.php. In this database, I've created a table with a "date" field (type: date). What can I do …

Member Avatar for diafol
0
290
Member Avatar for bo0ga

This form works and everything, but all I want is the comment box. I want to take away "name" and "email". I tried deleting those 2 lines from the top and the code from the form but then it doesn't work. I guess its because of this line: if ($_POST["email"]<>'') …

Member Avatar for blocblue
0
120
Member Avatar for cereal

Hi! *Minimize HTTP requests*. One of the suggestion I always read is to combine files, so I made a little Class that merges files on the fly, the supported formats are CSS and Javascript. With little efforts, I think, it can work fine also with JSON and CSV. Usage is …

Member Avatar for cereal
1
332
Member Avatar for angelclawdust

hello there - been awhile since ive been about but im ready to crack on with my learning :) kk i used to have this installed on my last "free" host and it worked fine now im on a paid host (hosting24) it doesnt seem to want to work correctly.. …

Member Avatar for pritaeas
0
137
Member Avatar for cwarn23

In these three functions, you can filter to a url to just the domain name. There are three main methods of doing so which are all shown in the example and the usage of each function is shown in the example.

Member Avatar for diafol
0
738
Member Avatar for brugernavn

There must be a easier way to do this: it prints the size of a mysql database in Megabytes. $query = mysql_query("SELECT data_length, index_length FROM information_schema.TABLES WHERE TABLE_SCHEMA = 'pvs'"); while($data = mysql_fetch_array($query)){ $num[] = ($data['data_length'] + $data['index_length']); } for($i = 0; $i < count($num); $i++) { $tot = $num[$i] …

Member Avatar for diafol
0
145
Member Avatar for karolismf

Hello to all, first I am really sorry if i posted this thread in wrong section or something like that... :) So i wanted to get some help from other people who uses PHP language. I want to ask for the best and secure way to do this. All kind …

Member Avatar for minitauros
0
122
Member Avatar for hwoarang69

i want to go inside the if statment if i have both things in one row. so if i have image_id = $image_id_g and user_id=$user_id_s on same row. i wan tto go inside the if statment. but this is not working. i thinkg this query is testing two things sepeartly. …

Member Avatar for minitauros
0
102
Member Avatar for sk8ergirl

Hello, I'm done with my html and css file and now I'm trying to start with the php , but after I type <?php ?> and then try to type > $name = $_post['name']; > line 9 <?php ine10 $name = $_post['name']; line11 ?> I get error "There is a …

Member Avatar for minitauros
0
229
Member Avatar for Patiodude

I recently decided to try out a simple PHP/MySQL pagination script I found online. After replacing all the required data and creating a connect.php file with my db information, I got a bunch of errors on the page with the script: here they are, in order: Warning: include(connect.php) [function.include]: failed …

Member Avatar for blocblue
0
345
Member Avatar for BleepyE

Hey guys, I need a little help with some code im working on. In the end I want some code to change the visible text when dates are past, my current code is below, but this only works for one date. I would like it to update to the next …

Member Avatar for diafol
0
108
Member Avatar for codeblock

Hi all, I have a registration page which allows the user to open up separate windows to include additional information. But for some reason it freezes the page and doesn’t allow data to be submitted into the MySQL database table. I’m mot sure whether this is a php or a …

Member Avatar for codeblock
0
280
Member Avatar for codeblock

Hi all, I have a registration page which allows the user to open up separate windows to include additional information. But for some reason it freezes the page and doesn’t allow data to be submitted into the MySQL database table. I’m mot sure whether this is a php or a …

Member Avatar for codeblock
0
260
Member Avatar for Patiodude

I know little PHP, but even less MySQL, and my host doesn't allow remote database connections (for example, from Dreamweaver), so in addition to being confusing to me, database management is impractical. Is there any way to put a timestamp on an article automatically, without resorting to MySQL tables?

Member Avatar for Sogo7
0
259
Member Avatar for omoayan

I have a project in which I desire to upload and download blob files in php. I have written the codes to upload the files into mysql however, when I try to download the files, be it pdf, .doc or jpeg, the error message I get is "The selected file …

Member Avatar for sasankasekhar
0
203
Member Avatar for Jdsiteworks

This is the form where i can upload the image file: <?php require_once ('includes/config.inc.php'); session_start(); // If no first_name session variable exists, redirect the user: if (!isset($_SESSION['first_name'])) { $url = BASE_URL . 'index.php'; // Define the URL. ob_end_clean(); // Delete the buffer. header("Location: $url"); exit(); // Quit the script. } …

Member Avatar for Jdsiteworks
0
304
Member Avatar for gourav1

Actually, I am learning php and I am eager to know how to send mails from php? Can you give me any start links from where i can learn to send mails and implement on my PC?I have learnt php on my own and now i want to implement this …

Member Avatar for laforge
0
189
Member Avatar for moblyft

Hi Friends, I am trying to limit the number of pages to display on my code. Can someone please help? I am trying to get something like http://stackoverflow.com/questions/8361808/limit-pagination-page-number $Num_Rows = mysql_num_rows($objQuery); $Per_Page = 15; // Per Page $Page = $_GET["Page"]; if(!$_GET["Page"]) { $Page=1; } $Prev_Page = $Page-1; $Next_Page = $Page+1; …

Member Avatar for pritaeas
0
2K

The End.