38,018 Topics

Member Avatar for
Member Avatar for skiabox

I get the following error : Parse error: syntax error, unexpected T_STRING in /Library/WebServer/Documents/MyProject5/menus.php on line 48 This is the code [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Date Menus</title> </head> <body> <?php //Script 10.1 - menus.php //This script defines and …

Member Avatar for Stefano Mtangoo
0
324
Member Avatar for lokodomain

Trying to learn PHP from a book and I swear I'm going balder by the minute!! Anyway heres my predicament; I want to display some simple incrementing data from a PHP loop within a table. So that each cell within the table displays a different value ie. cell 1 displays …

Member Avatar for diafol
0
187
Member Avatar for vivekchandra

I had a file info.php with class named xyz and functions within it, I am trying to fetch data from data base from another file show.php..but it is not working and shows "Notice: Undefined variable $info"....is there any help wht am i doing wrong... my code is.. in dblink() // …

Member Avatar for Narue
0
181
Member Avatar for jrotunda85

Let's say I have the majority of my site in the 'root' WWW directory on the server, such as: [url]www.domain.com/index.php[/url] My current header & footer files are set to respect this configuration and work beautifully. I am now in the process however of creating a new directory which will be …

Member Avatar for almostbob
0
472
Member Avatar for vivekchandra

i have a little syntax problem in php mysql, and i cant figure it out, hoping that u guys can help me out....mysql error and code are below Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right …

Member Avatar for pritaeas
0
188
Member Avatar for jacksantho

Hi, Please help me out. 1. Getting HYPERLINK value from page1 and saving in page2 using GET method.($re=$_GET[variable];) 2. Passing this value in -> select query 3. Displaying my output - correctly(in each and every value, there is an SUBMIT button.) 4. My Form Action is page2 itself. 5. Due …

Member Avatar for C#Jaap
0
269
Member Avatar for sakwoya

Hi all I have been looking at the following upside down and sideways for a day now. I have a PHP page that is making use of a session value in an SQL query. The query requires an integer (it's searching on the numeric index of a table in the …

Member Avatar for sakwoya
0
981
Member Avatar for dandiaz

Anybody know what version of vbulletin Daniweb is running? I help run a huge vbulletin forum and really like a lot of the features here so curious if we're running the same versions. Does seem like there is a lot of "custom" hacks being done though here. Danny

Member Avatar for Dani
0
35
Member Avatar for solidrichard

Hi i have problem in my login code. Firts someone fill in login informations this is checking code [CODE] // mysql connection $username=$_POST['username']; $password=md5($_POST['password']); $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $sql="SELECT * FROM users WHERE username = '$username' and password = '$password'"; $result=mysql_query($sql); $count=mysql_num_rows($result); …

Member Avatar for solidrichard
0
183
Member Avatar for adamworld

I have this page that you can do a search on the site. However, if I do a search that contains an apostrophe ('), it breaks and doesn't display anything although I have entries that have them. Does an easy fix exist for this problem? This is an example of …

Member Avatar for diafol
0
131
Member Avatar for maxlipman

I need a lost password script for my existing login script. I need one that sends an email to the person once they enter their username. It is in a database with other things but the tables name is "profiles". The rows in that table are "id" "email" "username" "password". …

Member Avatar for Ezzaral
0
332
Member Avatar for raghujosh

I need a string appended to a variable. [CODE]$name = "app200.php"; $string = <form name = "$name" method = "post"> echo "$string";[/CODE] The result I need is [CODE]<form name = [B]"app200.php"[/B] method = "post">[/CODE] But I am not able to echo the string this way. Any help. Thanks

Member Avatar for raghujosh
0
150
Member Avatar for whiteyoh

Hi All, I hope somebody can help. I would like to make 1 large query from a mysql database. Once called I want to get whatever i want from that stored array, which is where im having trouble. What i have so far is the following code, but each time …

Member Avatar for twiss
0
105
Member Avatar for whiteyoh

Hi All, I have a multidimentional array. What I want to do is increment $a each time i find an array element with a certain value. my array comes from a mysql query. So lets say sex can be male or female, how can i get it to only increment …

Member Avatar for twiss
0
122
Member Avatar for kadriirdak

Hi There, I have a usage problem with CURL output. I have a web services and I use CURL to get the data, However this web services set up as XML output and I want to convert it to array to use the result in the web form. My CURL …

Member Avatar for kadriirdak
0
6K
Member Avatar for chifliiiii

Today 05/18/2011 If i do [CODE]echo date("H:i m/d/Y", strtotime("tomorrow"));[/CODE] i get 00:00 05/19/2011 as it should be but if i use the same function in setcookie like: [CODE]setcookie("wls_yesterday_review", 'completed', strtotime('tomorrow'),'/','myhost.com');[/CODE] My cookie will expire on 05/18/2011 at 09:00PM Im not sure what im doing wrong but i tested different ways …

Member Avatar for chifliiiii
0
283
Member Avatar for PHPExperts

hello, [B]Please help me to create and using mysql procedures using php scripts.[/B] I searched in web for the solution but i didn't get a perfect support from anywhere . Thanks Anoop Ravi

Member Avatar for twiss
0
77
Member Avatar for Joshua Kidd

I am creating an application with JQuery as the UI. The current, what I have now is using simple xml as the Select Menu options. [url]http://www.globalvirtualairlines.com/MyPages/jquerytestingapp.php[/url] What I am wanting to do is, when the user selects the Hub they want, use simple xml to get the data for that …

Member Avatar for twiss
0
230
Member Avatar for Majestics

I AM WORKING OVER NEWS SECTION OF MY WEBSITE... I WANT TO RETRIEVE THE NEWS PRESENT IN THE DATABASE AND SHOW THEM AND ALLOW CHECK BOX TO SELECT THE NEWS TO DELETE THEM... I am able to create the news section that retrieve the data from mysql database and also …

Member Avatar for masterjiraya
0
101
Member Avatar for ryan102

Alright, so basic story, is a website, with an application form, and what im trying to do, is when the user presses the "submit" button, i get an email with all of the information they entered into the field, i *almost* had it working, almost being, when pressing the "submit" …

Member Avatar for vibhaJ
0
233
Member Avatar for DavidB

I have almost no experience with PHP so I need some help with a small code block. My website used to be hosted by a company within my own time zone, so I used the following code to output the date and time on my web page: [CODE] <?php print …

Member Avatar for DavidB
0
102
Member Avatar for Steven_B

Hi everyone! I'm working on a page that adds a new client. One of the form's values is a telephone number. The user enters a 10 digit number with no symbols (ex: 2288675309). Before it goes into the DB(MySQL), I want to format it so that it has hyphens (ex: …

Member Avatar for Steven_B
0
186
Member Avatar for ujjval dave

hey guys, i need your help to develop thumshot of page of website's internal pages. pls if you know how to develop this code or if u have any suggestions for it then pls tell me. Thanks

Member Avatar for ujjval dave
0
130
Member Avatar for Troy

Does your organization use Microsoft Exchange? Do you have a need to incorporate your Exchange data with your PHP web applications? You can use the WebDAV methods to query your Microsoft Exchange Server using the PHP scripting language. Once you wrap your brain around these techniques, the sky is the …

Member Avatar for dskanth
0
2K
Member Avatar for Joshua Kidd

Are there any easier ways to use simple XML as I need to create a flash application with simple xml. What I am using now is [CODE]<td><center><?php if($xml === false) { echo "There was an error opening the xml file."; exit; } else { foreach($xml as $pilot_first_name) { echo $pilot_first_name->fn …

Member Avatar for twiss
0
68
Member Avatar for manu555

hi, I have problem while developing web application in php. I have one text box in which enter total nos.and in one div there are other text box and dropdownlist. i want to show div repeatately until match the value of first text box to text box in that div …

Member Avatar for manu555
0
91
Member Avatar for mithesh

Hi All, I have a query now i need to integrate my outlook calendar with external web portal to add events so that the outlook calendar can remind me , Could anyone suggest open source libraries to do this . Thnx in advance Thnx & Regards, mithesh.

Member Avatar for dskanth
0
163
Member Avatar for OldDeveloper01

Hello. I have been following a tutorial, but want to adapt it. Currently the code below echoes out all of the any occasion cards into a list. I would like them to be echoed into a 2 by 3 formation. 2 down, 3 along. Struggling to get it to do …

Member Avatar for OldDeveloper01
0
161
Member Avatar for rabeeshm

Hi All, I am trying to add special characters into database using javascript encodeURIComponent.Its working at localhost But in server when adding ' an extra / coming in front of ' how can i remove this problem ,some one help me please Thanks in advance.

Member Avatar for vibhaJ
0
100
Member Avatar for Nybuler

Hi all, is there any prblem with my array? why i can get the first element of the array [CODE] function GetNameByEmail($get_staffemail) { print_r($get_staffemail); for($i=0;$i<count($get_staffemail);$i++){ echo "<br />"; echo $qryGetName = "SELECT username FROM user_info WHERE email ='".$get_staffemail[$i]."'"; $rsGetName = mysql_query($qryGetName); $arrGetName[$i] = mysql_fetch_array($rsGetName, MYSQL_ASSOC); } echo "<br />"; print_r($arrGetName); …

Member Avatar for vibhaJ
0
114

The End.