473,800 Members | 2,414 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

PHP Forum

PHP web programming language - Ask questions about php scripting, databases, mysql, templates, PEAR, php functions, PHP-GTK, setup and installation, object oriented programming, classes, files, security, sessions, arrays and more.
2
1,300
thread by: webandwe | last post Oct 25 '07 by: ak1dnar
Hi Why do I get the error: Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/fordsale/www/ford-registration/insert13.php on line 34 ? my code:
3
1,767
thread by: ChristieMarks | last post Oct 25 '07 by: ChristieMarks
Good Day Everyone I need help in creating a web page use for storing software development bug reports in text files. The fields are product name and version, type of hardware, operating system, frequency of occurrence, and proposed solutions. I need links on a main page tha tallows you to create a new bug report and update an existing bug...
4
1,774
thread by: Daniel | last post Oct 25 '07 by: Erwin Moller
is there a way to detect if a user tries to access a php file? For instance, db.config.php is called in many php pages but should never actually be open directly. Is there a way to know if someone tried to open it directly? Also, i want to learn more about securing php/MySQL pages any good resources I should start with? Thank you,
2
1,807
thread by: krisvt | last post Oct 25 '07 by: krisvt
Hi. I'm trying to make a PHP script that simply prints some stored information after the user has checked a radiobox and presses submit. Have been many years since I have done any of this so It's kinda lost. What would be the easiest soloution for printing information containing information about the subject the user selected in the...
6
1,400
thread by: Rambaldi | last post Oct 25 '07 by: vskarthik
Whats good people Imagine a site like Youtube, when you visualize the videos you can select to view, theres always a picture of it. My question is: Is there a especific code that somehow can get a picture of the video when someone submits it to the site??? Thanks in Advance
6
1,597
thread by: jfizer | last post Oct 25 '07 by: Jerry Stuckle
I'm trying to print out a table of mySQL data as XML. However, the performance I'm getting is REALY bad. Adding the header("Content-Type: $mime;charset=$charset"); statement triples the load time of the data for example. Can someone with more php experience then I look this over and tell me that I'm stupid and doing it wrong? define(...
4
1,318
thread by: wish | last post Oct 25 '07 by: wish
Hi all, <? $email="you@example.com"; $subject="Enter your subject here"; $message="Enter your message here"; mail($email,$subject,$message,"From:$email"); ?>
1
1,068
thread by: post | last post Oct 25 '07 by: Atli
So I understand how to use $_GET, but I am having a problem with a certain string not returning the full length of it. I am making a script that involves searching a string now the string I am having trouble with is "DJ Unk - 2 Step Remix (Ft. T-Pain, Jim Jones & E-40)" the problem occurs at & it won't return it I have tried using filter's and...
12
1,389
thread by: joey.powell | last post Oct 24 '07 by: Steve
Hello guys, I am primarily an asp.net programmer, but lately I've been doing some work with Apache, MySQL and PHP. Anyways, I have a question that I posted in the microsoft asp.net newsgroup. Thus far no one there has been able to answer it. I feel some of you may know the answer, and that's why I'm posting it here... I have a web app...
4
1,588
thread by: Daniel | last post Oct 24 '07 by: Daniel
Hello, I have setup a table with 1 row and 2 columns.In the 1st, I have a iframe that displays tons thumbnails of images. In the next I have an image (enlarged). When the user selects a thumbnail it displays the enlarged image in the 2nd column. This work quite nicely. Where I need some help is with the fact that each image has an...
8
2,327
thread by: mathurinjerry | last post Oct 24 '07 by: Atli
I'm a newbie at this so if someone could please help me out: I have : PHP Version 5.2.3, Apache 2.2.4, and mySQL Version 4.1.22 on Windows XP. I have PHP working independantly. I have mySQL client working perfectly by itself. When trying to connect to the mySQL database, using PHP, i don't get anything: only a blank page. I need help! I've...
5
11,288
Markus
thread by: Markus | last post Oct 24 '07 by: Atli
Another day, another question. :) I'm now onto building a login for my current project - image host. User submits password > password is encoded Like so: ('$username', PASSWORD('$password'), '$dispName', '$email')"; Now say, if i were to email them their password, (they've forgotten it?), it would send the encoded password and not...
3
1,891
Lazandra
thread by: Lazandra | last post Oct 24 '07 by: JeremyMiller
Hiya I have used the php function crypt to encrypt a credit card number thats going to be stored in mysql. does anyone know what funtion to use to decrypt it? Cheers Laz
1
1,209
thread by: someusernamehere | last post Oct 24 '07 by: Brendan Gillatt
Hey people, I need to do some sistem in PHP and MySQL, I have do it a part but the other is the problem, basically is mathemetical operations, te user register something and after insert some registry and after is needed obtain sums, averages and something similar, does anyone have some code similar for read about?? kisses, Elena
1
2,105
thread by: lanlife | last post Oct 24 '07 by: Atli
Hello All, I am building an application which i will like to send an automated sms through a gateway to gsm phone numbers.I want it to query the database to get data at a particular time and send. e.g an automated script that send happy birthday to someone by checking the birthday information in the database to send immediately it happens or...
1
1,142
thread by: Jahangir | last post Oct 24 '07 by: Atli
Hello, Could anybody inform me is there any php technique that will also to execute print related commands in background without printing it output to screen. Actually I want to get the output of form. i.e. first login form then after filling user and password its output. Anybody can help on this issue ASAP. Thanks.
1
6,073
thread by: rynato | last post Oct 24 '07 by: Jerry Stuckle
I have a <spanof width X px and height Y px. I want to read the text of an article, which is stored in a mySQL table, and pass to that <spanonly just enough text to fit in it, along with a 'read more' hyperlink which will take the user to the full article. I do not want any overflow scroll bars to show. The font-size is set by external...
9
1,581
thread by: Jeff Gaines | last post Oct 24 '07 by: Jeff Gaines
I have down-loaded several php scripts and am working my way through them as part of my learning process. I have noticed situations like this: mysql_query("DELETE FROM $table WHERE id=$id",$db); where scripts have been called from another script/page with a parameter - i.e. 'id' is a parameter that is not defined in the script before the...
3
1,262
thread by: cyberlei | last post Oct 24 '07 by: cyberlei
it will have two alert messages display one after one. should be like if the first str has been handle then only display the second alert. please help and many thanks if(substr($sn,0,1) == "S" && substr($add,0,2) == "00") { else { $message="Must Be Start With S"; echo '<script>alert("Must Be Start With S");</script>'; }
1
3,027
thread by: TechnoAtif | last post Oct 24 '07 by: realin
Hi to all. I have got a form containing of checkboxes along with other items. I have simply no clue as to (i) how to make entry for those checkbox data into the mysql table . I mean : what query to put for creating field corresponding to checkboxes. Create table arc(status ---?) status is the array for checkboxes. what should be the data type...
1
2,872
thread by: lanlife | last post Oct 24 '07 by: realin
Hello everyone Please, I want to know how i can get the last mysql query issued into the mysql server with php.
1
1,473
ganesanji
thread by: ganesanji | last post Oct 24 '07 by: realin
hi to all, I am new to php. I have to edit a text file using php. I saw the file system concepts modes. My problem is I want to change a particular text or word in a text file. How to find the index of the specific word. Is there any functions or methods available for change a particular word or finding index of a word... For the...
2
3,777
realin
thread by: realin | last post Oct 24 '07 by: realin
hi guys, this one is simple for you :P its like.. after login how would i redirect the user back to the page he came from .. first i have to choose a language ? shall i do it in JS or php using window.location or header respectively ? Second thing i want to know is how to send the URLs from one page to another, shall i use an array...
7
1,458
realin
thread by: realin | last post Oct 24 '07 by: realin
hi guys, I want to know how to highlight my PHP code inside a BBCODE like tag .. generally i am representing my code between the tags and it is actually code and not code1 in the , i have just changed it to show it here and not to parsed as the BBCODE .. I am able to do every other manipulation like bold, italic, URL etc but i am unable...
2
1,341
realin
thread by: realin | last post Oct 24 '07 by: realin
I have posted this question in apache forum, but no one replied, i guess it isnt this much happening as PHP forum is :P hi guys, i want to use URL writing now, cause the other weird characters give a bad impression to the search engines and feeds. can you tell me what is the code to be written in .htaccess.. is it the same we do in...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.