Search Webmaster Help and Solution

unexpected T_VARIABLE

E-mail Print PDF
Hello all. I am new to the PHP Builder forums and I just started coding PHP about 6months ago so I apologize if some of my questions seem like "duh" kinds of questions but I have an error I just cant seem to get around: "Parse error: syntax error, unexpecte
Last Updated on Saturday, 21 August 2010 17:58
 

JSON and PHP encode array/dictionary

E-mail Print PDF
Hi All, Just looking for some advice on a problem Im having please. The scenario is that I have a database with a list of blog postings. I want to extract that list using PHP and transfer it to an iPhone app using JSON (I think). So Im trying to encode something like t
Last Updated on Saturday, 21 August 2010 17:58
 

extracting content from xml Empty Element Tag in php

E-mail Print PDF
HI. i am having problem with extracting link from empty element tag in xml by using php. i am writing my xml code and pho code. please someone helps me. just put me in th right direction. php code <topic id="1HLCM7CDQ-21WQN9G-66"> <instance
Last Updated on Saturday, 21 August 2010 17:58
 

Looking for way to perform date(D)+1

E-mail Print PDF
I am trying to use SimpleXML to parse Yahoo weather data. I have everything working until the forecast. I am trying to take the three character day of the week and increase it so that I can pull data from the array. Code: $yw_forecast[forecast][date(D)+1][day][0]
Last Updated on Saturday, 21 August 2010 17:58
 

I know looping a mySQL query is bad, but...

E-mail Print PDF
Im working on what I think is a fairly complex set of queries and then sorting of data. I can get everything to work but only if I nest two queries in a while loop. I know this is bad, but this is the only way Im able to get it to work. Is this ok to do on a limited basis, o
Last Updated on Saturday, 21 August 2010 17:58
 

How to validate forms in an array?

E-mail Print PDF
Hi How do I validate multiple forms in an array? I know the first step is to store forms in an array. PHP Code: $array = array($_POST[name], $_POST[age], $_POST[date],$_POST[number]); Next step is to l
Last Updated on Saturday, 21 August 2010 17:58
 

Prepared Statement Problem

E-mail Print PDF
Hi, I have been working on this for over 2 hours now and its driving me nuts! I am trying to create a page that will allow my client to add products to their database. I have one set of prepared statments on line 94 - 97 that work fine, however, further down the pa
Last Updated on Saturday, 21 August 2010 17:58
 

[RESOLVED] File download problem

E-mail Print PDF
Im having a similar problem to the one in resolved thread 10628305, but have found it doesnt resolve it for me. The problem occurs in IE8 for a csv file generated on the fly and for pdf, xls and other types of files retrieved from a database blob, but Opera and Safari bot
Last Updated on Saturday, 21 August 2010 17:58
 

User Login Redirection

E-mail Print PDF
Howdy! Im having some troubles, I have a login system, index.php holds the form for the user to log in. When user logs in successfully, theres a script that executes echos and displays whats in the echo on the same file (index.php) PHP Code: <?
Last Updated on Saturday, 21 August 2010 17:57
 

Adding info from file to MYSQL

E-mail Print PDF
Hello (: Im having trouble trying to say submitting information on a website, submitting, and then executing it into the mysql database. My example is, I have a country field in my MYSQL varchar(50). I want to type in the <input type="text" blah> s
Last Updated on Saturday, 21 August 2010 17:57
 

Dynamically adding columns to insert into...

E-mail Print PDF
I currently have 2 tables that work together. When a row is put into "sites", a column is created in "vehicles". Then, on the php page the form dynamically changes to request the user what they want in the new column: PHP Code: $sites
Last Updated on Saturday, 21 August 2010 17:57
 

search mysql with checkbox array

E-mail Print PDF
Last Updated on Saturday, 21 August 2010 17:57
 

Amazon API - Recently read books, etc

E-mail Print PDF
Hi, How would you use the Amazon API to display recently read books, etc? I thought maybe all Id need is the isbn to grab an image, text, link, etc through the API? Is this possible with the Amazon API? Im new to APIs in general & have been searching around for a c
Last Updated on Saturday, 21 August 2010 17:57
 

Algorithm to display schedule?

E-mail Print PDF
I have some data in the database that represents the schedule for some workers at my company. It looks something like this: Code: Name In Out Williams 00:00 8:00 Flores 8:00 15:00 Chernova 16:00 22:00 ...
Last Updated on Saturday, 21 August 2010 17:57
 

Data Sets and XSLT

E-mail Print PDF
Hello, Im trying to develop my project so that layers can be separated. One thing Im trying to do is to populate Unordered Lists. For example: Code: <ul>Fruit</ul> <li>Apples</li> <li>Oranges</li> </ul> <ul&g
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Using a variable in a $row-&gt; call from sql is breaking the code

E-mail Print PDF
Ive never had to use a variable in this position, but I am obviously misunderstanding something, as this is the code... PHP Code: $row = mysql_fetch_object( mysql_query(SELECT * FROM book_bundle WHERE bundle_id=$bundleID) ); This selects a
Last Updated on Saturday, 21 August 2010 17:57
 

Question about Endianness and byte length

E-mail Print PDF
Im working on a PHP Extension which is supposed to serialize PHP data into AMF3 format. The spec on page 2 describes a few data types that it deals with: U16 - An unsigned 16-bit integer in big endian (network) byte order U32 - An unsigned 32-bit integer in big endian (n
Last Updated on Saturday, 21 August 2010 17:57
 

Personal PHP Forum issue..

E-mail Print PDF
So, just for fun, Im making a forum software that hopefully will help me learn more about PHP. Its not going to be huge or anything, just something for me to mess around with when Im bored. Im having some troubles though. First off, Ill start by telling you the URL of my
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Confusing Parse Error

E-mail Print PDF
Hi Im getting a Parse error: parse error, unexpected < in C:wampwwwhpsidebar.php on line 2 But theres nothing wrong in line 2. The code below is just the sidebar for my webpage. I saved those codes in sidebar.php and called it in my main page by <?php include(&q
Last Updated on Saturday, 21 August 2010 17:57
 

Help with base_64 decoding.

E-mail Print PDF
Im literally stumped. I need to decode something, but Im totally stuck. Im trying to decode this php file, but I cant seem to figure it out. There is a lot of code within a php tag, but then AFTER the tag, there is MORE random txt that looks like base64 encoding, but it isnt
Last Updated on Saturday, 21 August 2010 17:57
 

Return to HOME page??????

E-mail Print PDF
I am new to PHP and trying to learn enough to help me with my web site. I have several pages on my site defined as follows: These were written using HTML: Home page = WoodArt.shtml OrderForm page = Form.html PHP code page = Test.php This is whats happening: On the ORD
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] ZipArchive function problems

E-mail Print PDF
Im having some difficulty with ZipArchive functions in PHP. In this code, I am getting an error value of 1 which is, for some reason not found in the zipFileErrMsg function. The file DOES exist in the path passed to the ZipArchive->open() function. Im not sure what
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Display the days and dates of current week beginning today

E-mail Print PDF
I found this handy little script that out puts the days and dates of the current week like this 16/08/2010 Monday 17/08/2010 Tuesday 18/08/2010 Wednesday 19/08/2010 Thursday 20/08/2010 Friday 21/08/2010 Saturday 22/08/2010 Sunday PHP Code: // set c
Last Updated on Saturday, 21 August 2010 17:57
 

Simple PHP code help

E-mail Print PDF
I have a PHP-based shopping cart, and an auto-feed generator that allows me to insert PHP code to solve for custom fields that it uses in generating feeds for comparison shopping sites. I am not a PHP programmer, and so Im having trouble with what is a very simple piece o
Last Updated on Saturday, 21 August 2010 17:57
 

PHP Plugins System

E-mail Print PDF
Hello all.. Id like to learn how does the php plugins system works.. So can anyone explain the idea of it for me in detail, I saw many posts and explanations but I didnt learn and understand any of it. I mean if I want to make a plugins system for my php script, how ??
Last Updated on Saturday, 21 August 2010 17:57
 

OOP and Activities

E-mail Print PDF
Im having trouble with the textbook examples where everything that is a Class has to be a physical object and/or a Noun. It is obvious that "Customer", "Product" and "Order" are good candidate classes, however, life isnt that contrived?!
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Pagination solution, I think

E-mail Print PDF
Hi All, I am working on a project that out puts data to a table from an SQL database. I need to output 15 records at a time and display them for a set period, and then automatically rollover to the next page. I know how to set the code up to create x number of page
Last Updated on Saturday, 21 August 2010 17:57
 

Having issue with code not working right. can some one help?

E-mail Print PDF
Hello everyone i want to go ahead and thank the people that do this for a living i myself im having to learn php my self i have a good base under standing .. i want to ask how can i pass my variables to a script say go.php from a form that just has three variables this is wh
Last Updated on Saturday, 21 August 2010 17:57
 

need help in CURL

E-mail Print PDF
hey guys, I am trying to submit a form with curl but it doesnt work. i dont even get the source code. i am using these curl opts: PHP Code: curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_POST,count($fields)); curl_setopt($ch,CURLOPT_POSTFIEL
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] striptags has a 1024 character limit?

E-mail Print PDF
I read this in a book on security and was wondering if its still true http://php.net/manual/en/function.strip-tags.php if so its worthless Read more...
Last Updated on Saturday, 21 August 2010 17:57
 

Regex help please!

E-mail Print PDF
I have been looking for the answer to this for about 2 days and its becoming a nightmare. I need to let people enter an embed code from a specific website - Soundcloud. These look like this Code: <object height="81" width="100%"> <param
Last Updated on Saturday, 21 August 2010 17:57
 

Is there an alternative code to this?

E-mail Print PDF
Hi I have a form with 6 textfields that will be used to edit data in the database. When a value is entered in one of the text field I want that value to be only updated in the database. Ex. []id []name []age []address []number []gender if name was edited
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Get weekday name out of database

E-mail Print PDF
I have been a date formatted as datetime in my mysql table and I would like to out put the day of the week that this date falls on so that I can convert my dates to something like Monday 12th August. The DATENAME just isnt working for me. Is there a simple way to associat
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Help with getting PHP script to work

E-mail Print PDF
Hi everyone. First off, Im really new to PHP and (serious) programming in general. I know HTML and a little C++, and Im just getting started on PHP, but Ive been working with websites for a long time. I bought a script to use on a new website Im starting - iAuctionSites.c
Last Updated on Saturday, 21 August 2010 17:57
 

How to run my script from another script and wait for finish?

E-mail Print PDF
I need to call a script called build_report.php, pass in a URL variable named partno and wait until it is finished before continuing. This script builds a report and then an email is sent out to our customer so I dont want the email sent until the report is generated.
Last Updated on Saturday, 21 August 2010 17:57
 

Inserting Data into Mysql then send email?

E-mail Print PDF
Hello I have yet another delima i need to figure out why the email is sending but the values are not showing up in the data base. this is my table structure CREATE TABLE IF NOT EXISTS `fname` ( `fname` text NOT NULL, `lname` text NOT NULL, `email` text NOT NUL
Last Updated on Saturday, 21 August 2010 17:57
 

Resizing Images through img src

E-mail Print PDF
I need some expert help here. Im creating a website that allows images to be uploaded and displayed. However, if a user uploads a huge image, the website will display it big. I cant figure out how am i suppose to resize the image using the syntax below. Maybe im doing
Last Updated on Saturday, 21 August 2010 17:57
 

oAuth provider Implementation - consumer key is empty??

E-mail Print PDF
Hi Guys, I`m trying to implement oAuth into my website and i`m in the process of implementing the server. Im using symfony framework for the implementation but i dont think that is important but just mention to give the whole overview of the system I have found a great ar
Last Updated on Saturday, 21 August 2010 17:57
 

Creating A Search Module from MySQL

E-mail Print PDF
Hello, I am having issues creating a search module to get records from a database, by having a module that you choose the first date and the last date and it should generate all results between that date. Please assist me. My Table is as below: http://i36.tinypic
Last Updated on Saturday, 21 August 2010 17:57
 

E-mail Print PDF
Last Updated on Saturday, 21 August 2010 17:57
 

Undefined variable sessioncode in ..

E-mail Print PDF
Ive got an image verification code that doesnt seem to be working. It is returning a broken image so therefore isnt working . If I go directly to the script page i.e veryimage.php it gives me this error. Undefined variable: sessioncode in /www/verifyimage.php on line 8
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Create Colors based on # of Items

E-mail Print PDF
Preferably using PHP, Id like to create X number of colors based on X number of items and using a predefined color range. For example: ITEM -- VALUE 1 -- 1,234,567,890 2 -- 234,567,890 3 -- 34,567,890 4 -- 4,567,890 5 -- 567,890 Color Range red = largest val
Last Updated on Saturday, 21 August 2010 17:57
 

PHP script to create thumbnails for videos

E-mail Print PDF
Hi guys, I need your help in creating a video with thumbnails. What I want is that, if I upload a video it will create automatically a thumbnail picture for it. Im just new to php and I dont have any idea of this. I really need your help about this. Thank you in advanc
Last Updated on Saturday, 21 August 2010 17:57
 

generating data from database

E-mail Print PDF
Hi all, This is something related with php as well as java script. If anyone can help me regarding this issue i would be very pleased. In a particular form, i have 2 fields namely customer id and Account type. Since there are many account types it is stored as a jump m
Last Updated on Saturday, 21 August 2010 17:57
 

Adding Sticky Drop Down Date Selector to Form

E-mail Print PDF
Hello All, I have have been using a a basic skicky php form at my site for a few months. You can view it here. I want to update the form with sticky drop down date selectors to make it more user friendly. I created a test version and uploaded it here. The test version wo
Last Updated on Saturday, 21 August 2010 17:57
 

Getting every given day of a month

E-mail Print PDF
I am trying to make a function that would return all given days of a given month or a year. For instance I wanted to get all Mondays in a given month/year OR I wanted to get all Saturdays for a given month / year... Function would be something like: PHP Code:
Last Updated on Saturday, 21 August 2010 17:57
 

Mailing list archive solution?

E-mail Print PDF
Has anyone seen a really awesome PHP project that can make a searchable archive of a mailing list? Ill be googling myself but was kind of hoping for an experienced opinion on the matter. Ideally, the system would be a subscriber to the mailing list and when a new message
Last Updated on Saturday, 21 August 2010 17:57
 

Updating a record while displaying all changes to it.

E-mail Print PDF
I dont know if Im wording this right. I have a textarea that is entered into a database. When this is edited, I want to store and display a list of all the changes that have been made to it. Like a conversation in a forum. The reason for this is that I want past changes to
Last Updated on Saturday, 21 August 2010 17:57
 

[RESOLVED] Soap errors

E-mail Print PDF
One of my companys software vendors convinced me to let them develop a web service that would allow me to create records in our financial database. Their web service/commercial software is running on Server 2008. My web service client is running on Server 2008/XAMPP. At f
Last Updated on Saturday, 21 August 2010 17:57
 

Link Thumbnail

E-mail Print PDF
Hi, Im currently using this code as a Upload / Rename / Preview Thumbnail script. Could anyone help or tell me how to modify it so the output of the Thumbnail is linked to a larger image. Or is there any other script that can do this?. This is my Upload.php The
Last Updated on Saturday, 21 August 2010 17:57
 
<< Start < Prev 1 2 3 Next > End >>

Page 2 of 3