39,316 Topics

Member Avatar for
Member Avatar for braveheart_sb

Hey i have upload an image on my database (mysql) and i want to retrieve the blob image on a specific size. until now with this code i can fully retrieve the image on the same dimensions that i have uploaded. The uploaded image has the dimensions 1024X728. I want …

Member Avatar for muralibobby2015
0
200
Member Avatar for TheVenerableZ

I made a PHP class that dramatically simplifies sending text messages with PHP. I know this isn't really a "help me out!" type question per se, but I would like to share the code because I have found it to be tremendously useful. You're free to do whatever you'd like …

Member Avatar for ﻼim
0
2K
Member Avatar for gamefreak5678

I'm wanting to copy a file from one location to another using variables. This doesn't work and I can't figure out why. Is there more code that I need besides what's listed below? [CODE]copy("../upload/".$img,"../gallery/pic/".$img)[/CODE]

Member Avatar for vibhaJ
0
131
Member Avatar for ppetree

I have created an array as: [CODE] //$field = "email"; //$value = "text"; $structure[$field] = $value; [/CODE] $structure gets passed to a function that uses a for() loop to work through a process and in this process I need to extract the key/value pair [CODE] for($i=0; $i<$cntFields; $i++) { $a …

Member Avatar for cwarn23
0
118
Member Avatar for Smudly

Hi, I have downloads that are available for users. They can click the links to download the file. Once they do this, I have a query that updates the number of downloads that file has received. I need to create a query that adds up all the rows Total Downloads. …

Member Avatar for mschroeder
0
77
Member Avatar for Smudly

Hi, I have a page that lists the names of the Artists in one column, and the title of their song in the next column. I've included a sort section that allows users to view the artist (with the corresponding title) that starts with whatever letter they press. I've now …

Member Avatar for Smudly
0
145
Member Avatar for sakush100

I AM WEAK IN JAVASCRIPTING, PLEASE HELP ME.[B]THIS IS MY BASIC IDEA TO TOGGLE VALUES USING JAVASCRIPT[/B] [CODE] [COLOR="red"]<?php $xyz=5; ?>[/COLOR] <head> <script type="text/javascript"> var x; function displaymessage() { if (x==5) { alert("yes"); x=1; } else { alert("no"); x=5; } } </script> </head> <body> <form> <input type="button" value="Click me!" onclick="displaymessage();" …

Member Avatar for Ezzaral
0
173
Member Avatar for Awah Mohamed

hello guys , this is my code which i am trying to use to sign up to test my database connection, so usually when i try to sign up it tells me there is something wrong on line 11 any way this is the code [CODE] <? $mysql_host = "mysql9.000webhost.com"; …

Member Avatar for Awah Mohamed
0
133
Member Avatar for nertos
Member Avatar for martin5211
0
121
Member Avatar for whiteyoh

Hi All, Im after some advice on extending classes. ive got a vehicle class, which is extended by the motorcycle class. my question is how do i create a class of the motor cycle that includes the vehicle class elements. [code] <?php class vehicle { private $wheels; private $engineType; private …

Member Avatar for whiteyoh
0
92
Member Avatar for doctorphp

Hi all Is it possible to intergrate my website to my phpbb forum so that when users register with my site, they also get registered with my forum. If anyone knows how to or if they know any sites that tell you please could you post them here. Thanks in …

Member Avatar for doctorphp
0
626
Member Avatar for maunica

Hi all, I want to display records in the format product1 product2 product3 product4 img1 img2 img3 img4 after retrieving the records from database..and also since there are many records..pagination will also come..please help me as soon as possible..

Member Avatar for chrishea
0
70
Member Avatar for LloydFarrell

hi all, Im trying to add a "title" to a switch case statement below, but for some reason im unable to complete, what I thought was a simple task. Hope someone can help and explaine the reasons why cheers, Lloyd [code] switch($ad) { case "add1.gif"; header("Location: http://www.google.co.uk"); break; case "add2.gif"; …

Member Avatar for syamsasi
0
741
Member Avatar for yogi_xevoke

Warning: mssql_connect() [function.mssql-connect]: message: Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'. (severity 14) in \usr\local\htdocs\connect.php on line 5 [B] We are using the following code for connectivity[/B] mssql_connect('servername,port', 'username', 'password'); mssql_select_db("dbname");

Member Avatar for sanjayks
0
203
Member Avatar for 68thorby68

I believe there may be something wrong with my PHP.ini as I can create cookies using the setcookie function but cannot access the cookie using the COOKIE function. Please note: I have enabled cookies in my browser I then have 2 very simple scripts in separate files file 1 [CODE] …

Member Avatar for 68thorby68
0
8K
Member Avatar for sainigks

i have created a registration page. when user fill it and submit a unique user_id will be given him. but problem is when user_id has been given if user refresh the page a new user_id will be alloted to him. if he refresh the page for thousand time a new …

Member Avatar for metalix
0
140
Member Avatar for design.eng

Let's say, I have a web application where many users are going to submit the iformation at the same time to be redirected to another pages and complete the rest of this application process. The problem is, how can I distanguish among all the users and be able to retrive …

Member Avatar for metalix
0
114
Member Avatar for anony

After hosting, i get this error:"Can't connect to MySQL server on 'localhost' (10061)" The code was working fine in my computer. I have hosted it in windows platform and i am using mysql and php. Here is my code for db connection $connection = mysql_connect(localhost,uname,pword) or die (mysql_error()); $db = …

Member Avatar for pritaeas
0
330
Member Avatar for druveen

Resolved UPLOAD_ERR_CANT_WRITE Value: 7; Failed to write file to disk. Introduced in PHP 5.1.0. This error will happen in this case image size is shown as zero 0. 1.In php first file is written in temp folder and then it is uploaded required folder , so check your tem folder …

Member Avatar for metalix
0
617
Member Avatar for dandixon

Hi all i need to generate a 10 digit (at least) alphanumeric id when a customer submits a form, it has to be unique. Is there an easy way of doing this or do i just use the uniqid function and then check against the database that it doesnt already …

Member Avatar for chintan@dani
0
116
Member Avatar for CreativeCoding

Well, I have no idea whats going on... But here is the problem: I have these files: [CODE]$file2 = "password_protect.php"; $newfile = $newDir . "/password_protect.php"; if (!copy($file2, $newfile)) { echo "Creation failed."; } else{ chmod($newfile, 0777); chmod("passProcess.php", 0777); echo "Step 1/2 completed.<br />" ?> <form action="passProcess.php?var=Users/<?PHP echo $projectname ?>/" method="post"> …

Member Avatar for chintan@dani
0
587
Member Avatar for Venom Rush

Hi all I'm having a hard time selecting data from my database. What I want to do is when I view the page that allows me to edit a team name (team1 for instance) I want to list all the product types and then check the checkboxes of the product …

Member Avatar for Venom Rush
0
117
Member Avatar for lwaterfo

Hi again all, Can anyone see what is wrong with the code below? [CODE] if ($s>=1) { $prevs=($s-$limit); print "&nbsp;<a href=\\"$PHP_SELF?s=$prevs&q=$var\\">&lt;&lt; Prev 10</a>&nbsp&nbsp;"; }[/CODE] I keep getting an error message: Parse error: syntax error, unexpected T_VARIABLE ...referencing the print line.

Member Avatar for cwarn23
0
405
Member Avatar for sugikrish

Hi frnds, I want the source codew for converting any one format to pdf. Any one know abt this pls help to me. Thanks in advance.

Member Avatar for Daiva
0
56
Member Avatar for fasharlht

Hi, I am developing a simple application mailing system in which i need to place a check box in a listbox,which having emails id from database. How do i do it?...For example in the mailing system application , when i have to send a email, it displays all the emails …

Member Avatar for madCoder
0
593
Member Avatar for shahaz

Hai All i want a code that fetches a row in a sql database named student and display the result in a table format.........i am a newbie in php................please Help me

Member Avatar for sainigks
0
141
Member Avatar for seularts

Here is a dub question. If this code is supposed to restrict files other than jpg, png and gif, why does it do it? This is for a file browser aplication. The image has to be one of the 3 accepted file extensions. [code] $ext - is the var that …

Member Avatar for seularts
0
123
Member Avatar for Ejl191

I've been tasked with plotting various points onto a map. Due to financing and the nature of the project we can't use Google or any of that type of thing. So we have to do this the hard way using PHP or Javascript. I'm supplied a map(Mercator) and the coordinates …

Member Avatar for Ejl191
0
214
Member Avatar for BlackNinja

Hi folks, i am having a little trouble with sessions and would appreciate any help. What i am trying to do is have the user login and save the password that they enter into a session so i can use the variable in the next page. But for some reason …

Member Avatar for cwarn23
0
158
Member Avatar for ankitagalaxy

The End.