39,323 Topics

Member Avatar for
Member Avatar for nigelburrell

I am building a project management website which enables users from around the world to login and automatically register their time against various work projects. I need to save their login time to the database using their "local machine" time (the time as it exists for them, not the time …

Member Avatar for nigelburrell
0
114
Member Avatar for beginninphp

Hello, I tried to use regex to search through blablablabla[B][url]http://www.myspace.com/username[/url][/B] by using preg_match('~http://www\.myspace\.com/.+"~',$string,$match); The tilde or lack of was tripping me up... am I even close? I was just trying to extract the username at the end, before it was marked off by a double quote ("). I tried adapting …

Member Avatar for beginninphp
0
105
Member Avatar for kingben

Hi. I am serving the contents of the page based on the navigation anchor links. e.g. [url]http://somesite.com/index.html#home[/url] will serve the home page contents. [url]http://somesite.com/index.html#about[/url] will serve the about page contents. The contents are stored in contents.php page and are written in the below tag inside index.html [code=html] <div id=contents> <!-- …

Member Avatar for Airshow
0
129
Member Avatar for Tekkno

I have the following query: [code] <?php $query="SELECT * FROM table LIMIT 4"; $result=mysql_query($query); echo "<tr>"; for($i=1;$i<mysql_num_fields($result);$i++) { echo "<th style='height: 10px; padding: 0px;'>"; echo mysql_field_name($result, $i); echo "</th>"; } while($row=mysql_fetch_row($result)) { echo "<tr>"; for($j=1;$j<$i;$j++) { echo "<td style='height: 10px; padding: 0px;'>"; echo $row[$j]; echo "</td>"; } echo "</tr>"; } …

Member Avatar for Tekkno
0
85
Member Avatar for treybraid

how do i script a php echo for info stored in mysql so it is rendered as a hyperlink to its website? here is the script i am trying to edit: [B][COLOR="Red"]highlighted in red[/COLOR][/B] is what i need to change for the echo to href. [code]<table> <?php if($this->team->t_official_website){?> <tr> <td …

Member Avatar for pritaeas
0
75
Member Avatar for abhi_elementx

hello guys. dont know if this is the right forum. I am trying to [B]install Joomla[/B] and at step 2 it says [B]MySql No support[/B] [B]i have mysql installed[/B] and also have dbs created. Using php, i can access connect to the db and run queries. What am i missing? …

Member Avatar for abhi_elementx
0
85
Member Avatar for waqaskhan1

plz tell java script checks for not insert blank value in database when using fckeditor????? when i not insert any record,the script runs like enter ans but value also inserted in data base..i want not insert blank value and check also runs .... my code is that: [code=php] <script type="text/javascript"> …

Member Avatar for emarshah
0
192
Member Avatar for sharal

hello forum im trying to insert record in different table using single query (on the base of class, class name and tables name are same)and wants to insert record in 1 table at 1 time is it possibol to select the table name through class here is the code but …

Member Avatar for pritaeas
0
77
Member Avatar for prateekm

[code=php]<?php $con = mysql_connect("localhost:3306","pm" ,""); if (!$con) { die('Could not connect: ' . mysql_error()); } // some code ?>[/code] on writing the above code it is showing the following error: Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'pm'@'localhost' (using password: NO) in C:\wamp\www\p2.php on line 83 Could not connect: Access …

Member Avatar for prateekm
0
201
Member Avatar for Toxikr3

Hi guys, I am in need of a simple friends list code. I don't know how to start it, but I have gotten an idea, maybe anyone of you can help? I have setup a database with login and password, I want to also add a Friends column. I will …

Member Avatar for Toxikr3
0
228
Member Avatar for papermusic

hi, i need some help on inserting checkbox values into the mysql database. what sort of data type should i use for mysql to store these? for example i need to insert a few hobbies as checkbox 1.basketball 2.football 3.hockey i need to be able to perform a search and …

Member Avatar for mrcniceguy
0
141
Member Avatar for bhavnaJobcentre

Hello, I am currently designing a site that displays photography, and am exploring the different ways in which to do this. I am trying to develop, using PHP and MYSQL, a way of having image links held in a database and then the first image in sequence to be rendered …

Member Avatar for diafol
0
219
Member Avatar for itisnot_me

hey all i got a question where i am not sure that it will be possible. i already have my table in my data base which has values in it ex: first_property. and i made a little script which helps me grab all the names in the form that i …

Member Avatar for itisnot_me
0
88
Member Avatar for stlboarder

I'm getting this error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' and can't figure out what's wrong. Any help? [code=php]echo '<p><label for="comment"><strong>Questions / Comments :</strong></label> (<span class="cursor" onclick="document.getElementById('comment').rows += 5;" title="Increase The Textarea">increase</span> >> <span class="cursor" onclick="document.getElementById('comment').rows -= 5;" title="Decrease The Textarea">decrease</span>)<br />'."n";[/code]

Member Avatar for diafol
0
75
Member Avatar for 83apple

Im getting this error message "Parse error: syntax error, unexpected $end" Can anyone point out this error. Thank you. [code=php]<?php function CopyrightCheck($crCheck) { $crCheck = stripslashes($crCheck); $Copyright_Notice = "Copyright &copy; 2000-2009 YourWebsite.com (Your Script). All Rights Reserved"; if ($crCheck !== $Copyright_Notice) { return COPYRIGHT_NOT_VALID; } else { return COPYRIGHT_IS_VALID; } …

Member Avatar for diafol
0
118
Member Avatar for anantwaykar

I am new for PHP language I dont know how to run PHP files on out machine so please anyone tell me how to do it thanks

Member Avatar for diafol
0
121
Member Avatar for dwdata

I have implemented a log-in routine that I thought captured SESSION variable to use through out all my PHP pages of my site. Here is the snippet of code which sets the session variables: [CODE] if($result) { if(mysql_num_rows($result) == 1) { //Login Successful session_regenerate_id(); $member = mysql_fetch_assoc($result); $_SESSION['SESS_MEMBER_ID'] = $member['id']; …

Member Avatar for diafol
0
1K
Member Avatar for Zurompeta

Hi all, Been at this for a while now and finally gave in to seek help. Basically, I'm trying to setup a regular expression for a decimal. Where there's 1 to 7 integers in front of the decimal point, and 1 to 2 after the decimal point. This is what …

Member Avatar for Zurompeta
0
72
Member Avatar for 83apple

Does anyone know a way to guarantee that a copyright has not been removed from a script. An example would be this. I put a copyright notice on page one, when the page is loaded it checks with page 2 to see if the copyright is there or not. If …

Member Avatar for kireol
0
87
Member Avatar for dwdata

I am trying to plot my way through coding a BCC Bulk HTML email. I can't get the code below to work and I want to also call another query to grab the emails for a BCC email. SPAM security would be helpful if it is easy enough to add …

Member Avatar for somedude3488
0
202
Member Avatar for EvilOrange

i have to access an array within an array using php, and i have very little experience working with php. can anyone point me towards a good tutorial or show me an example of how to go about it? eg: [0] contians [a],[b],[c] many thanks

Member Avatar for ShawnCplus
0
631
Member Avatar for davebrwn1

Hello to all, My problem is that i have installed apache 2.2.6 and also have php 5.2 version. also made all the changes in conf file of apache. I also did all the necessary things on PHP side (placing & changing files in windows folder) . My apache web server …

Member Avatar for ShawnCplus
0
117
Member Avatar for whiteyoh

Hi All, Im currently working on 'localhost'. Whenever i run the following all i get is <br /><b>Notice</b>: Undefined variable: myrow in <b>C:\wamp\www\testbin\edit\edit.php</b> on line <b>59</b><br /> [code] <? //connect to mysql //change user and password to your mySQL name and password mysql_connect("localhost","----","----"); //select which database you want to edit …

Member Avatar for Airshow
0
2K
Member Avatar for whiteyoh

Hi all, This following code doesnt update the database. I get the following error message Parse error: parse error in C:\wamp\www\testbin\edit.php on line 41 Please can you advise as to the error. I have worked on this for a few hours now but to no avail. Many thanks [code] <?php …

Member Avatar for Josh Connerty
0
136
Member Avatar for Venom Rush

Hi all I'm not even sure if development environment is the right term but I'm looking to find out what the best or most popular development environment to use is? I've herd of CAKE and was told this was the way to go. Just looking for some more opinions. Thanks

Member Avatar for ShawnCplus
0
140
Member Avatar for tulipputih

Hello everyone, Does anyone knows any query expansion techniques that can be implemented using php other than hierarchical technique. i.e: facet , analysis, thesaurus. By implementing query expansion, the users are not only presented with the keyword they inserted, but some related words to the keyword. Thank you

Member Avatar for tulipputih
0
121
Member Avatar for ealbenze

can anyone tell me if this is even possible, i'm able to get the auto-responder to work by itself, but i cant get the forms to submit info and send to email with form info. is this even possible?

Member Avatar for ealbenze
0
45
Member Avatar for goldy736

hi , i have a php page with java script embed in it , i have 3 forms in a single page ... namely form1, form2, form3 . form 1 and form2 have a text box , these text boxes get input from users. Now my task is to get …

Member Avatar for Venom Rush
0
179
Member Avatar for coolest_987

Hii Guys Please Help I got following error when i use mysql ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Member Avatar for Josh Connerty
0
92
Member Avatar for stevenpetersen

I need some help with setting up a session..... The image is what i am trying to design. [CODE]<?php session_start(); // store session data $_SESSION['views']=1; ?> <html> <body> <?php //retrieve session data echo "Pageviews=". $_SESSION['views']; ?> </body> </html> [/CODE]

Member Avatar for Josh Connerty
0
234

The End.