39,326 Topics

Member Avatar for
Member Avatar for Virangya

hi, when i insert date time into my database it insert server time not local time how can i change this? even i tried ; [CODE]$currntdate = date("F j, Y, g:i a");[/CODE] which didn't work either.. thanx in advance.

Member Avatar for Virangya
0
126
Member Avatar for dean8710

hey guys, does anybody has the sample of, how to insert smiley/icon in the message board (php or javascript) i have the simple one: [CODE]//character typed $typed_chars = array('X(', '8)', 'oO'); //to_be_replace $icon_set = array("<img src=\"../smiley/smiley 1/fire24.png\">", "<img src=\"../smiley/smiley 1/icon_cool24.png\">", "<img src=\"../smiley/smiley 1/startle24.png\">"); //convert $message = str_replace($typed_chars, $icon_set, $message);[/CODE] I …

Member Avatar for dean8710
0
153
Member Avatar for anthonyjpv

Hi! Im new to php web development. I am developing an online shopping system where theres an admin page that allows him to add, edit, delete category and products. to cut the story short, what I want to know is, is it safe to save the table for admin username …

Member Avatar for chrishea
0
149
Member Avatar for daniel36

in my code the for loop syntax is not rigt can any one tell me[CODE]for($i=0; $i<$count; i++) { if($i==0) { $txt.="product:Licence_key"; } $txt.=$product[$i]." :".$plicense_key[$i]; }[/CODE]

Member Avatar for EnjoyYourMeal
0
78
Member Avatar for Cidco71

[24-Dec-2011 04:05:07] PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\inetpub\wwwroot\install\install.php on line 49 here is line's 48 thru 65 [CODE] 48 $content = "<?php \n". 49 " \n". 50 "/* Database Host Name */ \n". 51 "\$db_host = '" . $post_details['db_host'] . "'; \n". 52 " \n". 53 "/* …

Member Avatar for diafol
0
92
Member Avatar for daniel36

Is it possible to insert multiple values from text into multiple columns seprated by comma.for example i have a table products in which columns are product_name,product_description,lisencekey1, lisencekey2 ,..................and with entering the multiple lisencekeys(only) seprated by comma should be inserted in this fields.

Member Avatar for diafol
0
157
Member Avatar for AaronLLF

On a new site I'm making, sessions are not working. They were working previously, and stopped without a single change of the code. Once a login goes through the verification, it runs: [CODE]$_SESSION['uid'] = getIdFromEmail($email);[/CODE] getIdFromEmail is a function I built to get the user's ID from their email address. …

Member Avatar for simplypixie
0
255
Member Avatar for daniel36

can anybody tell me what format of date 1311048886 is? how we insert and select in database.

Member Avatar for simplypixie
0
74
Member Avatar for deyesborn

Please someone should help me before I faint. I have been working with this login script and am getting this error on a server: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/utimate/public_html/PhpPractice1/index.php on line 32. When I test it with wampserver, I will get this …

Member Avatar for accra
0
461
Member Avatar for kalaban

hello guys im new here so please be kind with me, please be patience cause Im new in PHP. now here's my problem I really miss-up my code. I want to create a form with 4 dropdownlist (diagnosis, cause, medicine, and treatment) this drop-downs are dynamic taking there items from …

Member Avatar for kalaban
1
498
Member Avatar for ferrari77

I've simplified it quite a bit but it's still not working. PHP: [CODE] <?php $a = array('data' => 'Hello'); echo json_encode($a); ?> [/CODE] Here's the JQuery Code: [CODE] function getCityAndState(data, location) { var jsonString = {"zipCode": data}; var outR = outputResults alert("JSON String:" + jsonString.zipCode); if (location === "living") { …

Member Avatar for Airshow
0
128
Member Avatar for geneh23

Hey everyone, I recently make a simple test site on my local server to login as an admin and redirect to an admin based page as well as to log in as a user for the regular user page..When I made the test site..it seems to work fine but when …

Member Avatar for geneh23
0
218
Member Avatar for omnia456

I have this example php string: [CODE]$string = "@[item_1][door] @[mozart][grass] = yes @[mozart][green] = no @[mozart][human] @[blue][movie]=yes @[item_1][beat] = yes @[item_1][music] = no ";[/CODE] now $string idented just to easy view: [CODE]@[item_1][door] @[mozart][grass] = yes @[mozart][green] = no @[mozart][human] @[blue][movie]=yes @[item_1][beat] = yes @[item_1][music] = no[/CODE] I want to know …

Member Avatar for pritaeas
0
271
Member Avatar for dalip_007

hey guys i have an array in php and it contains some records twice, trice or so. I only want to list those records once while fetching array elements. eg. "entry 1" comes five times in the array then i want to display it only once and then next element. …

Member Avatar for dalip_007
0
122
Member Avatar for sirlink99

I am having trouble displaying Hungarian letters that are read from a database. [URL="http://otletbarkacsbolt.hu/test.php"]Here[/URL] is the output and here is the code [CODE] <?php mySQL_connect("localhost","[SNIPPED]","[SNIPPED]") or die (mysql_error()); // connect to mySQL echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("otlethu1_aru") or die (mysql_error()); //connect to otlerhu1_faaru database echo ("Connected …

Member Avatar for sirlink99
0
477
Member Avatar for ferrari77

Problemo: My PHP Script (it's just a snippet) is not picking up my JavaScript code. It doesn't even see the zip code field. It says it doesn't exist: [CODE] <?php $zipCode = $_GET[zipCode]; //echo "data:".$zipCode; $json = "{data:.$zipCode}"; echo $json; //echo json_encode(array("data"=>$zipCode)); //print ("Zip Code:".$zipCode); ?> [/CODE] I'm passing it …

Member Avatar for diafol
0
323
Member Avatar for nikuki

I recently added a shout box to my page and I am interesting in adding emoticons. I have searched around and found no standalone emoticon script, at least none that I could get to work. I would appreciate any suggestions on how to add emoticons to my shout box script. …

Member Avatar for dean8710
0
192
Member Avatar for labise

i can not get mail from forgot_password.php why? I use a free hosting. [CODE] <?php // Require the configuration before any PHP code as the configuration controls error reporting: require ('./includes/config.inc.php'); // The config file also starts the session. // Include the header file: $page_title = 'Forgot Your Password?'; include …

Member Avatar for labise
0
356
Member Avatar for nizam27391

Help ME Please everybody. I'm using Cakephp to make an online application system.My problem now is that I try to print a pdf using TCPDF based on a view.. I use the code $this->writeHTML($this->render('print') ) in my print controller.. But the problem is that I have this undefined index : …

Member Avatar for HITMANOF44th
0
108
Member Avatar for ptara1

I have a section of code that takes a form, with numerous drop down boxes, and runs the results through a mysql database for rows that have the exact wording in them. So say in the drop down box you have three options, No Preference, Fun, Not Fun. Currently my …

Member Avatar for simplypixie
0
122
Member Avatar for BilalAKhan

Hi, I have created a blog and having a problem in managing the blogs where the user can delete their blogs. I want that if a person logs in, he or she should be able to see only their blogs. For this I am have made the blog table in …

Member Avatar for BilalAKhan
0
164
Member Avatar for sirlink99

When I run my website I have random bits of php showing, and the background doesn't appear. Here is what bit is showing [CODE] "); } ?> [/CODE] and here is my code [CODE] <!DOCTYPE html> <head> <title>Website Name</title> <meta http-equiv="Content-Type" content="text/html; charSet=UTF-8"> <link rel="stylesheet" href="styles.css" media="screen" /> </head> <body> …

Member Avatar for sirlink99
0
157
Member Avatar for sirlink99

I have an issue reading from a database. here is the php code after I have connected to the database [CODE] echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("test"); echo ("Connected to database"); echo ("<hr /><br />"); $sql = mysql_query ("SELECT * FROM 'Product'"); while ($row = mysql_fetch_array($sql)){ echo …

Member Avatar for sirlink99
0
96
Member Avatar for dalip_007

hi guys i am working on a site where people can add a button to add a search listing to their favorite item using cookie in php. then they can get this list of cookies to email to their friend, now is there a way to do this? I mean …

Member Avatar for HITMANOF44th
0
270
Member Avatar for s0bigg

I am currently using a script to run RSS feeds and dump all data into a MySQL. Every time I run it, it creates a duplicate entry into a database. Is there any way, I can just program a script to only get new feeds? I have some feeds subscribed …

Member Avatar for HITMANOF44th
0
189
Member Avatar for BenzZz

As the title says... When I initially go onto the log in form i created, the password field appears to have 5 characters in even though i have not typed anything into it? It's not a major problem as everything works fine however i would like to get rid of …

Member Avatar for broj1
0
155
Member Avatar for OmniX

Due to the compability between PHP and MYSQL I am hoping someone has a solution to my problem :( I wish to reset the auto increment field and get them "redone" as such. Problem being: When I delete a row it leaves an incorrect auto increment, as a total as …

Member Avatar for iffy85
0
757
Member Avatar for mohamedgpaly

Hello I need help with Programming system protection Bcod license for a particular script The method used: [url]http://www.daniweb.com/web-development/php/threads/278022[/url] But it did not work at all and there are mistakes I want to help in the patch or in the creation of the license code, for example, in this way [CODE] …

Member Avatar for chrishea
0
94
Member Avatar for jabeen123

I want to print only year of date store in table example if 2001-12-29 stored in db table so print only number. [CODE]<?php include_once("connect.php"); if($search=mysql_query("SELECT year( Date_Of_Admission ) FROM student_enroll where Seat_Number='$_POST[seat]'")) { //echo "<br/>"; echo "<table border='1'> <tr> <th>Seat Number</th> <th>Batch</th> </tr>"; while($row=mysql_fetch_array($search)) { echo "<tr>"; echo "<tr>"; echo …

Member Avatar for HITMANOF44th
0
87
Member Avatar for srdva59

hi, i looking for a WYSIWYG HTML that work in the browser. I have found this [url]http://phphtmledit.com/[/url] that work like i need but i looking for a alternative that cost less or opensource any one know something like this? thanks for your help :)

Member Avatar for pritaeas
0
134

The End.