39,402 Topics

Member Avatar for
Member Avatar for BoB3R

Hello, I don't have any errors it just not showing a thing if i leave only the html code it works but in php it wont so if you can help me would be cool, Thanks =] [CODE]<?php $a = trim($_REQUEST['a']); $student = trim($_GET['student']); if($a == 'edit' and !empty($id)) { …

Member Avatar for BoB3R
0
151
Member Avatar for whiteyoh

Hi All, Im getting and error from the following mysql statement when running it in the browser. Any help would be appreciated. "you have an error in your sql syntax near -nextq accounts" on line 1" this is the code [code] <?php $result = mysql_query("SELECT DISTINCT(source) FROM accounts WHERE source …

Member Avatar for fobos
0
102
Member Avatar for redous

okay so i got a little script that from button links load different information within the same page what im trying to achieve is pulling php coding to the same file but each time i try it throws up errors below is the code that is giving me a problem …

Member Avatar for redous
0
309
Member Avatar for redous

Hi, I have some PHP code in a project which if a user is logged in the in will display the username and other options and if the user is a guest it wont. [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Home</title> </head> <body> <!-- HTML …

Member Avatar for redous
0
199
Member Avatar for AMADH

I a table that I have added the function to be able to sort, it works, but it is coming up with an errors: Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 25 Notice: Undefined index: sort in C:\wamp\www\test stuff\test.php on line 28 Notice: Undefined index: sort in C:\wamp\www\test …

Member Avatar for AMADH
0
1K
Member Avatar for Puster

Hello, I am worcking on a script that do that i can upload files to my site and set size,filename, etc into my database but this isnt worcking, can someone help me?:) [CODE]<?php include "connect_profile.php"; $obj = new physic_profile(); // Setup our connection vars $obj->host = '*********'; $obj->username = 'sjo*******'; …

Member Avatar for P0lT10n
0
138
Member Avatar for ale89

Hi everyone! How is everybody? Help me modify this code to show a user profile. I need to show all the data but do not know how to put in the code to display data and other insurance I have to change the sql query. If the logged sample data …

Member Avatar for P0lT10n
0
265
Member Avatar for dschuett

I have downloaded and implemented Uploadify because users were tired of having to browse to each and every file they needed to upload(since this is used for uploading multiple pictures) allows a user to select multiple pictures at once without having to click a "BROWSE" button to go fetch each …

Member Avatar for P0lT10n
0
229
Member Avatar for nick3592

Hi i would like to know if there is a way i can make PHP can open a page and just sit on that page till i decide to stop it. This might sound a bit weird but i need it for a site tool I'm making. If PHP can't …

Member Avatar for P0lT10n
0
72
Member Avatar for gidireich

Hi, I work on PHP code with NetBeans and Xdebug. I use Xdebug for step-by-step debugging and the like. I'm able to debug the flow of the default request, but not the flows generated by specific _get/_post or Ajax requests. Anybody has an idea how can this be done? When …

Member Avatar for gidireich
0
204
Member Avatar for PChuprina

Hello all, I am currently getting this error message: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality …

Member Avatar for PChuprina
0
361
Member Avatar for daffi_gusti

Hello all, Anyone knows how to create apriori algorithm using PHP? I would be apreciated if you give me a code. Thanks.

Member Avatar for chrishea
0
105
Member Avatar for Viji

Hello everyone, I have a little bit problem here.I have installed PHP version 4.4.1 and it's working well. I want to connect PHP with MySQl . I have also installed MySQL and it installed successfully. Inorder to configure PHP to work with Mysql, I did the following changes in the …

Member Avatar for kwesiaryee
0
701
Member Avatar for Puster

Hello! I am working on a website, and this is a gaming clan webiste, and I want to have userprofile. Taht means that the admin can add players to the database, and set them on a team etc. But how can i do this? I will alsow have the ability …

Member Avatar for Puster
0
105
Member Avatar for Duke Nukem

Duke SNIPPED Nukem will only allow 18 and above on his site. It seems like my html page is correct and my php is the problem. Anyone have any answers they would like to share with me? MAY JUSTICE REIGN SUPREME!!!!! [code] <?php $month = $_REQUEST['bmonth']; $day = $_REQUEST['day']; $year …

Member Avatar for Ghostt0
0
1K
Member Avatar for phpboy

Hello. I have a linux VPS which is running ubuntu 8.04 I want to execute some command to the terminal, for doing that i use system() or exec() function. The functions are working properly at localhost, but aren't working properly on the VPS. Let's say, i have a command :- …

Member Avatar for lipo
0
391
Member Avatar for Triztian

Hello all, hope you can help me understand, here's the general description: I have a form, 'frmData' that has a hidden field, that when submitted it sends the info to process.php, which checks if the hidden field has been submitted, if so it redirects the user to a page "energy.php" …

Member Avatar for Triztian
0
205
Member Avatar for ManishS

I want to view the contents of a table in my database using while loop i.e. whenever i add database into the database and open view.php i want to see all the data of the database...so i want to use while loop so that whenever i add new data into …

Member Avatar for jogesh_p
0
115
Member Avatar for fuston05

OK, im trying to develope an event calendar. So, far i have used only php. I am new to programming and thats the only language i have learned atm. anyway, when i click the next or prev month buttons it sets cookies for new months etc.. to a cookie.php from …

Member Avatar for kylegetson
0
382
Member Avatar for dfaulted

I cannot figure out what I'm missing in order to stop these errors from showing. [quote]PHP Warning: strpos() expects parameter 1 to be string, array given in /home/public_html/includes/classes/shipping.php on line 26[/quote] Line 26: [code]if ( (tep_not_null($module)) && (in_array(substr($module['id'], 0, strpos($module['id'], '_')) . '.' . substr($phpself, (strrpos($phpself, '.')+1)), $this->modules)) ) {[/code] …

Member Avatar for kylegetson
0
3K
Member Avatar for lightningrod66

I have tried and tried and looked and looked, but I still can'y get this to work.... I am trying to (a)check form data on-the-fly, (b)once all required data is entered, then CLEAN the data and insert into MySQL database, and ONLY IF (a) and (b) have completed, then (c)send …

Member Avatar for lightningrod66
0
133
Member Avatar for dschuett

I have created a script that lets you upload multiple pictures, but the down side is that I have to browse to each and every picture to select it. - Which is very inefficient, especially because I am putting this all together for a photographer to allow her to upload …

Member Avatar for dschuett
0
165
Member Avatar for el33t

Hi, Please consider the below code. [CODE=php]<html> <body> <?php $time1 = localtime(); echo $time1[0]; echo("<br /><br />"); /* HERE SOME CODES RELATED TO CERTAIN FUNCTIONS LIKE DISPLAYING OF SOME IMAGE ETC. IS EXECUTED. APPROXIMATELY IT TAKES 10 SECONDS FOR THE COMPLETE EXECUTION OF THESE FUNCTIONS. SINCE IT IS IRRELEVANT TO …

Member Avatar for el33t
0
121
Member Avatar for dfaulted

I know most undefined index notices are the result of not initializing variables. However, what causes them in arrays and such? I have a few that I cannot wrap my head around: [quote][E_NOTICE] Undefined offset: 1 On line 27[/quote] Line 27: [code]list($file,$extension) = explode('.', basename($path));[/code] [quote][E_NOTICE] Undefined offset: 1 On …

Member Avatar for mschroeder
0
281
Member Avatar for rajeesh_rsn

Hi I am doing a simple php file upload script. Works fine but I cant upload more than 3MB files using this script... Please help me. This is my code [CODE]$target_path = "../items/"; $target_path = $target_path . basename( $_FILES['file1']['name']); $name=$_FILES['file1']['name']; $ext=end(explode('.',$name)); if ($ext=="flv"){ move_uploaded_file($_FILES['file1']['tmp_name'], $target_path); $new_name=$itemId.".".$ext; rename ("../items/".$name, "../items/".$new_name); mysql_query("UPDATE …

Member Avatar for lordspace
0
227
Member Avatar for znz

Hi, could some help me . as i want to know how to delete last record. currenlty the code im using its based on two different pages, one for update/display record and second for deleting record. but sum reason this code not working for me . add.php <?php include("connect2.php"); $authorname …

Member Avatar for hielo
0
186
Member Avatar for ahmedeqbal

Hello Friends, I need your help...! i want to create one function...! if string has total Character's [B]'160'[/B] or 'Less' then 160 ? I'll get just '[B]1[/B]' in result...! if string Character limit [B]'double'[/B] (160+160) = [B]320[/B]? But not [B]Less[/B] then 160? I'll get [B]'2'[/B] in result...! same triple limit …

Member Avatar for ahmedeqbal
0
163
Member Avatar for ahmedeqbal

Hello Friends, i want to allow '<br>' tags in my string not '<br />'...! i want to also disallow '<br />'. when i use strip_tags($string, '<br>'). in this case strip_tags also allow '<br />' tags. Please, help me...!

Member Avatar for ahmedeqbal
0
121
Member Avatar for Smudly

How can I call a PHP Function inside a Javascript Function? This is what I have so far, but I don't think I'm doing it the right way. Any suggestions? [code=php]<?php function phpQuery(){ $query = mysql_query("INSERT INTO mytable VALUES('','name','email')"); } ?> <script type="text/javascript"> function delayQueries() { timeoutID = window.setTimeout(doQueries, 2000); …

Member Avatar for Smudly
0
4K
Member Avatar for ceeandcee

I would like to query a set of values from a db....say GP1011_wk1 and this would yield 11 results. I then sum them together and get a value that i can echo. No problem so far. My question is, can i now take this calculated value from the query and …

Member Avatar for chrishea
0
81
Member Avatar for nimuns

so, im working on an online shopping site. the problem is , i have already made an html site, but i have to run it on xampp localhost, what i do is, since i already made an html file, i just copy it to new php file and save it, …

Member Avatar for theonly
0
97
Member Avatar for prem2

Hi, I am going to implement the Oops conecpt in php .So i written the below program it did not printing the values.Can any one say why this value is not printing . [code] class simpleclass{ echo "Hai how are you i am fine"; } [/code] Thank you, With Regards, …

Member Avatar for diafol
0
275
Member Avatar for george61

This is some PHP search code with some mistake. $run gives nothing where $run = mysql_query($construct); It gives: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\xampp\search\search2.php on line 39 No results found. [CODE]<?php //get data $button = $_GET['submit']; $search = $_GET['search']; if(!$button) echo "You didn't submit …

Member Avatar for george61
0
186
Member Avatar for atikah8890

I am working on a login page and its process and started having problem where the browser cannot detect the new changes I made to my PHP file. Here's the HTML code for the login page (ptLogin.php): [CODE] <form name="ptlogin" method="post" action="ptLogin0.php"> <div align="center" class="style2"><br> <table width="330" border="0"> <tr> <td …

Member Avatar for atikah8890
0
117
Member Avatar for alaa_steel

[CODE=php] if(mysql_query("update book set hometel='".$edit_hometel.",worktel='".$edit_worktel."', fax1='".$edit_fax1."',fax2='".$edit_fax2."',pobox='".$edit_pobox."',email='".$edit_email."' where name=".$row['name']." and hometel=".$row['hometel'])){ echo "<font face='arial narrow' size='3' color='#ffffff'>The Record has updated succesfully.</font><br>"; echo "<a href='index.php'><img src='images/buttons/continue_butt.gif' border='0'></a>"; }else{ echo "<font face='arial narrow' size='3' color='#ffffff'>An error has occured. Updating record failed.</font>"; } [/CODE] All Variables' names are right but it dosn't update the …

Member Avatar for zimah
0
199
Member Avatar for sallecpt

HI there Could someone PLEASE help me; I have a drop-down menu on my site and when I hover, the drop-down goes behind the content. This is the address : [url]www.beds24.co.za[/url] I dont know how to fix this, I've tried so many different settings. This is my CSS file. The …

Member Avatar for P0lT10n
0
152
Member Avatar for idskot

Hey, guys. I'm building a really simple member register / login, based off some other code. I added it to the server and set up the DB properly, and now I'm having an issue. Whenever I go to register a new user, it says the user field is not filled …

Member Avatar for theonly
0
117
Member Avatar for marisha5

Hello, I am designing a data-entry form with the following characteristics 1) The user enters the number of rows he wants to enter 2) Based on the entered value I am generating a table kind of structure 2.1) I am dynamically generating a drop down list that is being populated …

0
45
Member Avatar for sameeya007

for($y=1;$y<=$x;$y++){ $query="insert into attendance values('$admission_no[$y]','$date','$state_id')"; $result=mysql_query($query); }

Member Avatar for paulrajj
0
104
Member Avatar for bowhunter-mo

I need to write code to have a search box that will search a mssql database.

Member Avatar for Stefano Mtangoo
0
164
Member Avatar for Ghost

Hi, I'm trying to fully automate my website, and I'm trying to delete a line from a file that matches the line in a given String. For example, I have a txt file named toApprove.txt containing a list of names such as: [CODE] John Joe George Jake [/CODE] The file …

Member Avatar for mschroeder
0
5K
Member Avatar for muneer_alam

Hello all of you,,,,,,,, Currently i am facing a problem.....problem is that.i am using two table admin or customer.I have one form.....i want when i select admin button then it will insert the values into admin table and when i will select customer button then it will insert into the …

Member Avatar for mahmoud_wow
0
154
Member Avatar for nonshatter

Hi all, I have a fairly simple problem. I have an array which prints out the following text: [CODE]1 Full, Gen. 3 TMSWK2D 9 Poor write quality 2 Full, Gen. 1 TMSWK2C Read Only, Clean Tape[/CODE] The problem is after some of the lines of text, there are empty values, …

Member Avatar for mschroeder
0
138
Member Avatar for lsmith93

I have built a website using php include and i want to know if there is a way that i can include keywords?

0
116
Member Avatar for nsam

Please help out as i am a beginner in PHP I have a table with the name doinfo with the fields doctor,hospital, and city. What I want is that when I select city from the dropdownlist, it should give me its details i.e the doctor and hospital. I am able …

Member Avatar for nsam
0
1K
Member Avatar for trilithon

Hi All, I am having trouble in updating a table. The form consists of check boxes that are populated from the first query. I need the form to submit in itself and set the checked fields to 1 and the unchecked to 0. Any and all help will be appreciated. …

Member Avatar for trilithon
0
104
Member Avatar for ahmedeqbal

Hello dear friends, I’ve one problem. I hope you guys help in this…! Actually, I have two array. One array carry ‘title’ of my sms text messages. Second array carry ‘description of sms messages. Problem is that…! i want to got these two array result in my foreach loop. As …

Member Avatar for ahmedeqbal
0
105
Member Avatar for terrymold

Hi everyone I have a PHP Class file (salat.times.php) that accepts a few User Inputs, one of which is a Date in the format dd-mm-yyyy. The date is used for a part of the class and is fine. In another part of the class, there are a number of Time …

Member Avatar for terrymold
0
115
Member Avatar for arunpatyal1987
Member Avatar for akvlko

Hi Friends I'm seeking for a Editor by which i can view my web pages in design mode something like Dreamweaver in Windows.

Member Avatar for mahmoud_wow
0
88

The End.