39,393 Topics

Member Avatar for
Member Avatar for google503

[COLOR="Red"]I have a code and it comes up with this error:[/COLOR] [code]Parse error: syntax error, unexpected T_VARIABLE in /home/a9617139/public_html/order2.php on line 1[/code] [COLOR="Red"]I don't know why it does. This is my code for that page:[/COLOR] [code] <?php session_start(); ?> <script language="JavaScript" type="text/javascript"><!-- function placeFocus() { if (document.forms.length > 0) { …

Member Avatar for cwarn23
0
137
Member Avatar for OmniX

I am trying to crosscheck a column in a table with 30 rows. Example: [code=php] $value = "a"; $sql = "select * from characters"; $query = mysql_query($sql); $fetch = mysql_fetch_array($query); for ($i = 0; $i < 30; $i++) { if($value == $fetch['letters']) { $counter++; } } echo $counter; [/code] The …

Member Avatar for OmniX
0
119
Member Avatar for dbroncos

Hello All, Rookie here... I have run into a problem coding my first Registration form with PHP. Everything works great with the form. I just want to know how to check two fields in the database to see if the values being posted already exist. I have one working but, …

Member Avatar for R0bb0b
0
82
Member Avatar for god_1896

hi all; im looking a good example of 3 selector like for region province and city. if select form the list of region the province would have a list of province belong to region and the city well provide a list of cities belong to the region. and if province …

Member Avatar for god_1896
0
131
Member Avatar for enim213

guys really need your help here.! im working on multiple update using checkbox. since i was using only 1 checkbox before it works fine. but i need 2 values (from checkbox, because if not, array wont give me the value im looking for..) for my query on the next page. …

Member Avatar for enim213
0
79
Member Avatar for OmniX

Is there a command to empty a table? or would I just use a SQL statement in conjunction with a query statement? If so is this the correct syntax [code=php] $table = "abc"; $sql = "DELETE FROM $table WHERE *"; mysql_query($sql); [/code] Would that delete every row in table abc? …

Member Avatar for OmniX
0
205
Member Avatar for justted

Hello, I am really really stuck on a small project im working on and have been at it now for the past 12 hours. lol I am trying to set up a restrcited page for my admins and have the following: [code] $find_access = fetch ("SELECT * FROM job_roles WHERE …

Member Avatar for justted
0
180
Member Avatar for flynismo

I just started a site, and would like to make some dummy profiles. The script I'm using included a profile generator that would assign usernames, age and location (city and state) of the "members". The problem I'm having is that the profile generator assigns a city, but not the corresponding …

Member Avatar for flynismo
0
180
Member Avatar for ttv2008

HAVE A LOT OF THANK YOU VERY MUCH thái san I,m too bad about pc ang soft. Let sent my some word thank you veru much, but i'm don,t like to go US without I'm GI VNCH./.

Member Avatar for scru
0
40
Member Avatar for mrcniceguy

I WANT TO DISPLAY A CERTAIN WORD I STORED IN DATABASE WITH LETS SAY 14 CHARACTERS(LATTERS),NOW I WANT WHILE DISPLAYING IT AFTER REACHING THE 9TH LATTER TO BRAKE. SOMTHING LIKE THIS. MWAKISAMBUKEGE ----- TO GET MWAKISAMB UKEGE If there is apossibility of doing this.Help me please.

Member Avatar for mrcniceguy
0
316
Member Avatar for mgn2683

I'm not sure if what I am asking can be done. Basically, there are two different user levels of people who have access to list & detail pages. Once user level 2 finishes their evaluation, it goes to user level 3 who OKs the evaluation. The client wants to have …

Member Avatar for R0bb0b
0
91
Member Avatar for mrcniceguy

I TRIED TO CREATE A SIMPLE WEB ALBUM,SO THAT SOMEONE WILL BE ABLE TO UPLOAD HIS PHOTOS.UPLOADING WAS NOT A PROBLEM. THE PROBLEM IS WHEN I`M DISPLAYING THEM,BCOZ FOR EXAMPLE IF ONE MEMBER HAS 9 PICTURES THEN ONLY ONE PICTURE, I`M MEAN THE FIRST PICTURE TO BE UPLOADED WITH MEMBER …

Member Avatar for mrcniceguy
0
103
Member Avatar for rizwan6feb

I am working on an application in Vb.NET the pulls data from an online MySQL server. The problem i was facing was that my application had no direct access to internet. The application connects to a proxy server which was blocking access to database server because the proxy server only …

0
51
Member Avatar for mangel.murti

hi all ,the code i write below display report on selection of some field below it.my problem is that i want to print this report but controls are also printing with report.i want that only report will print. please help me to solve my problem............can i transfer report to other …

Member Avatar for trinitybrown
0
176
Member Avatar for trinitybrown

I am learning PHP/MySQL and have heard about Joomla CMS, I wish to learn it but don't understand from where to start, kindly guide me about this

Member Avatar for ithelp
0
97
Member Avatar for rickya100

Hi, Can anyone please tell me how to do a REST request to a URL using method POST and NOT GET. I know I have to pass XML to the URL but I really don't know where to start actually sending the request. I have tried looking at loads of …

Member Avatar for rickya100
0
390
Member Avatar for komrad

Hello all, I'm a learning php this year but i encounters some problems. One of them is about php value. The problem is how do i do to prevent a php file from resending the same values into the database whenever the page is refreshed? Anyone help? Thanks, Asep

Member Avatar for Shanti C
0
98
Member Avatar for OmniX

Hi, I have a few questions in regards to checkboxes I wanted to confim. Your code is below: [code] <input type="checkbox" name="checkbox[]" value="1"> <input type="checkbox" name="checkbox[]" value="2"> <input type="checkbox" name="checkbox[]" value="3"> <input type="checkbox" name="checkbox[]" value="4"> <input type="checkbox" name="checkbox[]" value="5"> [/code] Now what happens next? The checkbox array is checkbox[0] = …

Member Avatar for Shanti C
0
94
Member Avatar for twmprys

Sorry to ask such a stupid question, but can't understand why this simple instruction to upload a file (passed from an html form) isn't working: move_uploaded_file($_FILES['pic']['tmp_name'], 'files/pic.jpg');

Member Avatar for PoA
0
124
Member Avatar for XPlus

I've this php script that displays information stored in a MYSQL DB.. it shows the data in a tabular format.. What i'm trying to do is to make php sort the data in the table according to what user specifies (by clicking a link that sends a value using GET).. …

Member Avatar for HazardTW
0
100
Member Avatar for benutzername123

Hi there. I've been attempting for a good few months to develop a new webpage at [url]www.mnc99.com[/url]. You can see my current efforts at [url]www.mnc99.com/index.php[/url] . Notice that the movie you will receive (morning, afternoon, evening) depends on the time you access the page. You're more than welcome to inspect …

Member Avatar for benutzername123
0
177
Member Avatar for chicago1985

I am thinking of going with ColdFusion Enterprise over my current PHP. We do alot of web apps working with MySQL and Oracle. I have no problem paying for it compared with free PHP because I hear that ColdFusion can cut down my development and debugging time. It also seems …

Member Avatar for PoA
0
168
Member Avatar for Shanti C

HELLO all... Good Afternoon!!!! Currently i am developing a website...In that website i want to ad management ,where we can add and manage different ads with different prices, in different place on our website with time and etc... Any body have any scripts or any ideas to develop this kind... …

Member Avatar for PoA
0
128
Member Avatar for wickedsunny

heyz guyz i am working on a site and i have taken its gallery system from a script provdiers. but i can't find out how to get meta tags workin in php coz its in php language. and i dont know it can u please help

Member Avatar for wickedsunny
0
69
Member Avatar for joelogs

i was trying out how to configure manually postgreSQL and mySQL database servers into Apache with php as a module. luckily i was successful in configuring those things. however, to have better management on mySQL databases in tried to install and configure phpMyAdmin. but i always encounter error (attached image …

Member Avatar for joelogs
0
113
Member Avatar for twmprys

Hello, hope someone can help. I've created a simple interface for a website owner to carry out very limited editing. On the first page, there's a form which uploads just one picture to a picture folder and inserts text into a database field. That works fine. Now I need to …

Member Avatar for twmprys
0
105
Member Avatar for Venom Rush

Hi there I have a problem with sessions at the moment. My aim is to be able to use sessions with out getting those ugly url's. In my php.ini session.use_trans_sid is on and session.use_cookies is on. I'm using ini_set("url_rewriter.tags",""); to stop the server from creating url's with PHPSESSID=bunchofrandomnumbersandlettershere which works …

Member Avatar for cwarn23
0
190
Member Avatar for Punkis448

Hi all! I am looking for some free/paid social network scripts. Any suggestions ? Thank you

Member Avatar for wickedsunny
0
102
Member Avatar for Arsench

HELLO, I HOME THAT HERE SOMEONE CAN BE A MAGICIAN AND WILL HELP ME PLEASE. IM A NEW IN PHP WORLD AND NEED YOU HELP PLEASE. I HAVE A DB WITH NAME examen IM CONNECTING TO THIS DB AND THERE ARE A 6 FIELDS FIELD 1 IS QUESTION FIELD 2 …

Member Avatar for Shanti C
0
94
Member Avatar for rajeesh_rsn

I am new to PHP I need a little help in my php login script... I had 3 pages 1. index.html (user type username and password ) 2. login.php 3. logout.php ie [B][U]index.html[/U][/B] <html> /Main Page /////// <body> <form action="login.php" method="post"> <input name="uname" type="text" id="uname" /> <input name="pass" type="text" id="pass" …

Member Avatar for Shanti C
0
118

The End.