38,023 Topics

Member Avatar for
Member Avatar for musfirah

hello, i'm new in PHP coding. Please help me in solving this error. Parse error: syntax error, unexpected T_STRING in C:\wamp\www\test\testdate.php on line 49 Line 49 is :Valid Oxygen:$oxygenmin-$oxygenmax I attach together the whole coding for my project: [code]<?php require("phpmailer/class.phpmailer.php"); $db_connect=mysql_connect("localhost","root",""); if(!$db_connect) { die("Could not connect:".mysql_error()); } mysql_select_db("mpob",$db_connect); /****2)RETRIEVE DATA …

Member Avatar for anilashanbhag
0
2K
Member Avatar for kokfui

http://i325.photobucket.com/albums/k392/sarjan123/name.jpg hi all, for the picture above,i am currently writing a code to check if the seller_name is match with current login user name,it will show the item name in a page, i have following code now <?php $check =$_SESSION['username']; $query = "SELECT id, seller_name "; $query .= "FROM items …

Member Avatar for anilashanbhag
0
110
Member Avatar for ebanbury

Hi I'm having problems with a query bringing back records where the price is between 2 different min and max options. My field in the db = prop_price and it is currently an integer (as I thought part of the problem might be the comma in the prices) I've pasted …

Member Avatar for ebanbury
0
100
Member Avatar for afro360

Hello Im trying to read from ttyUSB0 on Ubuntu using the following code: [CODE] <?php // Create the context set_time_limit(0); @ob_end_flush(); ob_implicit_flush(true); $c = stream_context_create(array('dio' => array('data_rate' => 1200, 'data_bits' => 7, 'stop_bits' => 2, 'parity' => 0, 'flow_control' => 0, 'is_blocking' => 0, 'canonical' => 1))); // You can …

Member Avatar for tingon
0
1K
Member Avatar for sureronald

Hi everyone. I have an application where users submit text files and then based on some rules, the application gives instant responses of whether the submitted text file is right or wrong. What actually happens behind the scenes is that I have the correct text file on the server and …

Member Avatar for sureronald
0
180
Member Avatar for mehran tahir

hi, how i make connection to the sierra server in php using modernbill systen,any idea or help i pass whole day on it,but found nothing

0
70
Member Avatar for JimBobUKII

Hi, I am having a few issues trying to get this to work. When I click the link delete i want the record to be deleted from MySQL if 2 parameters are true. The following is the delete link: [url]http://domain.com/records.php?url=21313[/url] So the first parameter is "url" the second will be …

Member Avatar for happytogether
0
153
Member Avatar for dornaled

hi can any body tell me about SimpleXML function i don't know about this so help me. thanks and advanced.

Member Avatar for cwarn23
-1
60
Member Avatar for jacob21

Hi, SELECT * FROM admin INNER join category on category.cat_id=admin.cat_id where cat_id=5; showing an error. #1052 - Column 'cat_id' in where clause is ambiguous need suggestions..

Member Avatar for cwarn23
0
29
Member Avatar for sindhuravindran

hi.. i want to develop a GUI for the Grid in my company.. so pls someone provide me with a code for job submission in grid.. job submission module includes submission of a job, status of job, cancelling and retrieving output of a job.. if not a complete code, atleas …

Member Avatar for Stefano Mtangoo
0
146
Member Avatar for ebanbury

Hi I'm trying to write a query which when 0 is selected it brings back all the district_zones otherwise it just brings back the selected zone. It brings back the selected zone fine, but not all records which are not 0 I know it is my wildcard that is the …

Member Avatar for ebanbury
0
85
Member Avatar for phpDave

Hello, I'm building a site that allows users to post comments like facebook. After say, 10 rows ( or 10 INSERT INTO's )I want the 1st row to be deleted as to control space in the data base. Any key words or links would help. Thanks

Member Avatar for phpDave
0
74
Member Avatar for vijaygupta

hello, I have build an code for opening a map in thick box but i have problem closing it ,i have to click outside a thickbox please help

Member Avatar for tinymark
0
226
Member Avatar for bengarbi

I have a table made up of a number of columns, id, room_id, property_id, and date. The property_id could be a category with different room_id being subcategory. An additional variable is the number of dyas, eg.2 .The date is stored as a timestamp, so if two nigths are selected along …

Member Avatar for bengarbi
0
127
Member Avatar for jrotunda85

I am trying to write a script for my site that will check if a user has submitted a review for a particular cigar in the past [B]30 days[/B] and if they have, prevent them from creating a new review. I am trying to figure out the code but I'm …

Member Avatar for mschroeder
0
157
Member Avatar for klemme

Hey All! I am trying to update some records using forms - But something gets mixed up when I send my info to the database: [B]My form with the info I wish to update, look like this:[/B] [CODE] //Getting the info from a dropdown list, where the user has picked …

Member Avatar for klemme
0
84
Member Avatar for dschuett

I know this is kind of a jquery/ajax question, but I figure it wouldn't hurt to ask here since someone may have done something similar. I have a database of invoices that have multiple attachments(which are stored in a different table) per each invoice. I have it returning the row …

0
83
Member Avatar for mekalai

I'm trying to create a simple login page by following a tutorial i saw online. I did everything it required but i got this error Deprecated: Function session_is_registered() is deprecated in C:\xampp\htdocs\final\login_success.php on line 7 Login Successful my code is login_success.php [CODE]<? // Check if session is not registered , …

Member Avatar for mschroeder
0
111
Member Avatar for johndohmen1963

I have to folowing problem I have links in a table Some of thes cells are empty So if have the folowing code: </td><TD WIDTH='180px'><p CLASS='WithBreaksNarrow14'><a href="<?php If echo (!$row['link'])) $row['link']; ?> target="_blank" <?php else echo '&nbsp;'; ?>"><font color="orange"><?php echo $row['treffpunkt_wo']; ?></a></font></p></td> But my target="_blank" dosn't work and even the …

Member Avatar for johndohmen1963
0
214
Member Avatar for rand486

I'm currently putting together a map that shows the jurisdiction of different offices. I'd like to be able to draw the borders on the map (already done in a PNG), and allow users to either click the map roughly where they live, or type in a postal code. This will …

Member Avatar for rand486
0
119
Member Avatar for rkayd

(I know this is the wrong forum to ask this but I haven't got any help on any of the Javascript forums I've asked this on so maybe someone here can help - or you can go to the Javascript section and answer it there if you like.) I'm new …

0
88
Member Avatar for RobotFX

I'm using wget to run some scripts without any problems, but I've complicated a little the script and I'd like to use this command: [CODE]wget -o /dev/null -O /dev/null - http://site.com/script-to-sent-email.php?feed=http://feeds.feedburner.com/myfeedaddress&email=email@email.com >> /dev/null 2>&1[/CODE] The [I]script-to-sent-email.php[/I] is supposed to send a feed to an email box - it uses the …

0
57
Member Avatar for LloydFarrell

Hi everyone, I have a pagination script that is working great - What I am trying to is use a variable from the url and insert that into my pagination Here is the working pagination - [code] <?php /* Now we apply our rules and draw the pagination object. We're …

Member Avatar for tomato.pgn
0
120
Member Avatar for xxreenaxx1

I can read from files that are uploaded but now I would like to INSERT the data entered on the file to be inserted to mysql database. But not sure how this work. Tried to search few term and I have tested few methods. Nothing works. [CODE]<?php if ($_FILES["file"]["error"] > …

0
62
Member Avatar for divyakrishnan

Hi.. I have installed xampp-win32-1.7.4-VC6 on windows. I can access it as localhost. But showing the following error while it accessing from other machines which are locally connected. The error as follows [COLOR="Red"]Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. …

0
37
Member Avatar for boblack

i'm trying to embed my C code function into PHP using SWIG but it doesn't work.....how can i figure it out? Regards

0
42
Member Avatar for divyakrishnan

Hi... I have a problem to load a PDF file which is stored on another machine.I had loaded the PDF on the same machine using following PHP script.Here I had used a hyper link to load PDF. [CODE] <?php $file="first"; $pdfFile=$file.".pdf#page=1"; ?> <a href="<?php echo $pdfFile; ?>" target="_blank" > Click …

Member Avatar for divyakrishnan
0
760
Member Avatar for xxreenaxx1

[CODE] SELECT * FROM user u, subject s, test t, question q, answer a WHERE u.Use_ID =1 AND t.Sub_ID =1 AND s.Sub_ID = t.Sub_ID AND a.Que_ID = q.Que_ID [/CODE] I would like to check if the a.Que_ID =q.Que_ID does not exist then it should do the rest of the query. …

0
56
Member Avatar for new_developer

Hi everyone, Please check php code below, when i load this page in browser it gives me following errors. "Notice: Undefined index: submit in E:\wamp\www\login\register.php on line 4" "Notice: Undefined index: fullname in E:\wamp\www\login\register.php on line 5" "Notice: Undefined index: username in E:\wamp\www\login\register.php on line 6 "Notice: Undefined index: password …

Member Avatar for new_developer
0
100
Member Avatar for xxreenaxx1

I have two table of same data. First table is written by the admin and the second data is written by the user. Now I want to compare these two and see if they match, if not then the correct data is displayed. So far I am retrieving the user's …

Member Avatar for xxreenaxx1
0
109

The End.