39,320 Topics

Member Avatar for
Member Avatar for phpDave

Hello, for a while now I have been studying file uploads. I have 2 scripts, 1 creates a folder for a user and store the image in it. The other resizes the image and stores it inside another folder. What I would like to do is combine both scripts in …

Member Avatar for phpDave
0
141
Member Avatar for lashatt2

I want that mysql data will be in one row but it doesn't, in my case data echoes in a right down side :( [URL="http://lashatt.comoj.com/php+mysql.php"]http://lashatt.comoj.com/php+mysql.php[/URL] [IMG]http://lashatt.comoj.com/mysqlproblem.JPG[/IMG] [CODE=php]<?php $user="a7247794_a724779"; $password=""; $database="a7247794_testdb"; mysql_connect("mysql5.000webhost.com",$user,$password); @mysql_select_db($database) or die( "Unable to select database"); if (isset($_POST['saxeli'])) echo "saxeli {$_POST['saxeli']}"; $a = $_POST['saxeli']; $query = "INSERT INTO …

Member Avatar for aixlu
0
139
Member Avatar for panagosa

First of all i'd like to say hello to everybody. I've been working upon a script and i seem to be facing a problem with a mysql_query. Here it goes: I have 2 tables on my data base and there are some html forms through which tha data is entered …

Member Avatar for MindSter
0
131
Member Avatar for partz21

[CODE]<?php mysql_connect("localhost","root","root") or die (mysql_error); mysql_select_db("test") or die (mysql_error); $ProductName = $_POST['ProductName']; $Price = $_POST['Price']; $Quantity = $_POST['Quantity']; $Description = $_POST['Description']; $query = "insert into ProductTable(ProductName,Price,Quantity,Description) value ('$ProductName','$Prioce','$Quantity','$Description')"; mysql_query($query) or die ($query); ?>[/CODE] i already review it,i have the database and is also connected and yet the browser is just …

Member Avatar for diafol
0
74
Member Avatar for ans2007kumar

Guys i am trying to create a shopping cart in php + mysql. I have a page with product and one input button for each one of them. I want that when ever the product button is clicked it stores the data of product and amount in the database "cart". …

Member Avatar for chrishea
0
164
Member Avatar for Niccloud

Hi, I seem to be having this problem with my programming. I have tried many ways to solve this issue, the web page was working previously but when i imported into my new localhost from my now shutting down web server, it kept telling me this error. Parse error: syntax …

Member Avatar for diafol
0
56
Member Avatar for tcollins412

i am writing a program and i need to increment a table row. How would i increment a table row on the click of a button?

Member Avatar for tcollins412
0
175
Member Avatar for docjon

Using a php to copy a dir and when finished to redirect browser ie 1. print "wait" message in browser. 2. copy the dir 3. finished copy redirect page but noticed if dir is large (ie takes a long time) it is copied but the redirect does not happen, still …

Member Avatar for diafol
0
153
Member Avatar for Hakarune

Ok, so I used to be very good in HTML, PHP, and JS, but it's been a long time since I used it. been trying to make just a simple order form for a friends business. Though I wanted it to do server side validation and emailing... But it doesn't …

Member Avatar for TySkby
0
228
Member Avatar for panagosa

First of all i'd like to say hello to everybody. I've been working upon a script and i seem to be facing a problem with a mysql_query. Here it goes: I have 2 tables on my data base and there are some html forms through which tha data is entered …

Member Avatar for panagosa
0
124
Member Avatar for kokwd9

I am creating a website that is going to allow customer's to view photography on the site and purchase it when selected for download. I have created all the php and mysql to be able to display the data correctly. But... to display the search results or recordset, how do …

Member Avatar for litchi
0
130
Member Avatar for tcollins412

i have a register and a log in page and it will not work. Here is the script for the register:[CODE]$myusername=$_POST['user']; $mypassword=$_POST['pass']; $cleanpwd=md5('$mypassword'); $myusername = stripslashes($myusername); $cleanpwd = stripslashes($cleanpwd); $myusername = mysql_real_escape_string($myusername); $cleanpwd = mysql_real_escape_string($cleanpwd); $sql="SELECT * FROM $tbl_name WHERE email='$myusername' and password='$cleanpwd'"; $result=mysql_query($sql); $count=mysql_num_rows($result); if($count==1){ setcookie('username', '$myusername'); setcookie('password', '$cleanpwd'); …

Member Avatar for rch1231
0
176
Member Avatar for prem2

Dear all, Why below program not working .It gives fatal error. NOT WORKING [code] <?php class Class_access{ const a="50"; public $bb="Class Variable \n"; function display(){ //$Function_Variable; echo "Function Display \n "; //echo $this->bb; } } $obj=new Class_access(); $obj->display(); echo Class_access::a; echo "\n"; echo Class_access::$bb; ?> [/code] WOKING ====== [code] <?php …

Member Avatar for Shanti C
0
124
Member Avatar for phpDave

Hi, My script works but not the way I would like it to. [CODE]$file = $_FILES['content']['tmp_name']; if (!isset($file)) echo "please select an image."; else { $content = addslashes (file_get_contents ($_FILES['content']['tmp_name'])); $content_name = addslashes ($_FILES['content']['name']); $content_size = getimagesize ($_FILES['content'] ['tmp_name']); $user = $row_Recordset1['user_id']; if (!$content_size) echo "Thats not an image"; else …

Member Avatar for kkjay
0
124
Member Avatar for joshdecore

hi, I need to create a joomla ecommerce template for myself. Can you give me an easy method to biuld my site, I meam template.

Member Avatar for maryparker
0
71
Member Avatar for navi17

Hello, I want to build a online channels website where user can watch online channels in php. I have already done a lot of research. Can anyone tell me how can i get the live stream url of various channels E.g live stream url of sky sports is mms://live1.wm.skynews.servecast.net/skynews_wmlz_live300k so …

Member Avatar for chrishea
0
410
Member Avatar for lyrico

Hi again to all, Can anyone know how to do this? [code] <?php // let say the time now is 06:00 PM $time = Date('h:i A'); $time1 = strftime('$time'); // I know it is wrong coz the output of this code is $time only. I just include this for you …

Member Avatar for lyrico
0
111
Member Avatar for jchera

Hi fellas, i'm a newbie in php and i have the following scenario: -One html pages that gathers all necessary information then on submit it passes info to -A PHP script (lets call it "A") that does some calculation, sends an email [B][I]using all [/I][/B]data submitted and echoes data onto …

Member Avatar for chrishea
0
112
Member Avatar for newbie14

ear All, I have java function as below. If you notice this class calls another class that is SMSClient and in that class I have other classes called too. So then I write a php as below and is just call this function and return the results. I want to …

Member Avatar for newbie14
0
357
Member Avatar for AdriftUniform

Hi, I have a successfully working system at the moment where a user can choose a file and upload it to my MYSQL database as a BLOB, but before the image gets saved as a BLOB I want to resize it. I have been giving this a try by using …

Member Avatar for AdriftUniform
0
2K
Member Avatar for luekgauc

Hi, this is the first time I am posting in such a thread so I hope I am doing it the right way. I am trying to populate a drop down menu through php however it is not returning the correct values. Here is the code: [CODE]<td> <select name="Towns"> <?php …

Member Avatar for diafol
0
59
Member Avatar for branding4you

Im new at PHP but learning fast, I need help on getting the mysql result into the $imagedir value [CODE]//Select Query for images from db $query="SELECT id, fld_imagename FROM tbl_banner"; $result = mysql_query($query) or die(mysql_error()); //Loop to get path from query while($row = mysql_fetch_array( $result )) { $mydir = "imge_uploads/".$row['fld_imagename']. …

Member Avatar for diafol
0
80
Member Avatar for h20

Hi all, I have trouble in updating my data using update query in which i need to update the a particular student id.Currently in my database table, I have the attendance table below and i need to update it using php update statement. ID Date 143 1/1/10 143 2/1/10 143 …

Member Avatar for diafol
0
205
Member Avatar for jamesyrawr

I am fairly new to php but i do have some knowledge of it im justnot sure how to code what i want. if anyone can give me some idea of what code i need i'd really appriciate it :) anyway photo names will be uploaded to database with a …

Member Avatar for AdriftUniform
0
946
Member Avatar for vaibhav1983

Hi All, What is the importance of adding a favicon. I recently added a favicon to my site, just because I had it as an action item to do. Does it really affect your Search Engine Rankings, etc. or is it only a part of creating brand value?

Member Avatar for diafol
0
79
Member Avatar for Brianbc

I need some help with inheritance in php. The code below does not produce any output. [CODE] Class Father{ var $car; Function inherited(){ print $this->car; } } Class Son Extends Father{ Function __Construct(){ $this->car='Benz';//I'm assuming here that car is still a property of father. } } $obj= new Father; $obj1= …

Member Avatar for Brianbc
0
120
Member Avatar for kkjay

Hi Guys, I am building a social networking site that is dedicated to nightclubs and night events. Among other tables, I have a users table, events table and establishments table. I am really intrigued with how Facebook in particular is able to query and return matches of not just users …

Member Avatar for kkjay
0
306
Member Avatar for Brianbc

Working with some OOP, I had an error that I have now traced to inistantiation of a class when the file in which the class is contained is included in any other file. Is this the default/normal behaviour of php, and how do I get myself out of this? I …

Member Avatar for Brianbc
0
107
Member Avatar for frank754

I've been researching this all day, and am having trouble finding something that works. I have installed and used Sphider (PHP/MySQL), and it crawls my site successfully and gives me the URLs and I can do a search for any text on any page, but it doesn't pick up the …

Member Avatar for frank754
0
2K
Member Avatar for mexabet

I'm currently developing a domain whois lookup script in PHP. I want it to display a snapshot of the homepage of the searched website. Moreover, I would like to get this script to display Google PageRank. Please, does anyone know how to incorporate these features into my script? I would …

Member Avatar for sarajohnmich
0
143

The End.