No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Happy Day.. Hello All! I want to know the Difference between mysql_fetch_array and mysql_fetch_assoc.,and Im new here.. and also to php.. Plz help me to solve my problems.. |
|
hi , I have database 'center' with huge data and wanted to create a dummy 'test' database for 'center' db with 1000 random data for testing purpose. I generated script to copy the db but the resulting 'test' db was tables without data. i need 1000 samples for all the … |
|
Re:
hi, i need to subtract one date form the other and take the difference in minutes or seconds.. i'm getting the first date from the data base in 'Y-m-d H:i:s' format and second date is the current date (same format). and i want to know the difference between them in … |
|
Re:
I am reading data from a mysql db to my webpage. I wish to make a google pi-chart but have no idea how to pass the data from php (html?) to javascript(?) to populate the graph. I'm reading the rows into the html page ok, they are dispaying in a … |
|
[ATTACH]22040[/ATTACH] the following code displays output as in attachment.. it skips some of the value.. in the above output, am not getting group name for DTA. but if i add [CODE]where groupid='DTA' in query[/CODE], it displays groupname. what went wrong here? please help.. thanking in advance. [CODE] while($rowmain=mssql_fetch_array($resultmain)) { $course … |
|
Re:
I have a date picker that give me this result: e.g. 2011-29-08 When it is inserted in mysql, it outputs '0000-00000'. What can I do? I know "strftime("%Y-%m-%d %H:%M:%S", time());" But I have no timestamp to put as an argument. The only data I can use is the data that … |
|
Re:
hi everybody i have a question : I am writing a website and i havee a drop down menu. when the user is logged out he can see part of the menu and when hi is logged he see the other part. i hide the menu with <?php if(isset($logged)){ ?> … |
|
Re:
good morning. i am new still new in php. I need help from you all. why i cannot delete multiple rows from mysql with checkbox in my database... this is my coding.. <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="cek"; // Database name $tbl_name="del"; … |
|
Re:
Hi guys, I am new here in the community. I need help on how to pass a javascript variable value to a php variable.. I am using jquery to hide form1 when the page loads. My first javascript is working fine. my code is like this: [CODE] <script type="text/javascript"> $(document).ready(function(){ … |
|
Re:
hi ...i have a problem connecting MSSQL 2005 express and php.. i've tried configuring the php.ini by removing the ; in extension=php_mssql.dll but not working i also place the php_mssql.dll on ext folder but not working again; and also i tried downloading an old ntwdblib.dll and placing it in system32 … |
|
Re:
Hi! I'm new here, I have been stuck on this for about to weeks. I am trying to replicate something like the [URL="http://humblebundle.com/"]humble bundle's[/URL] website, where they give you a url like [url]http://humblebundle.com/?key=hj2qg4j2h34234[/url] and you can access the page. I have tried for about 2 weeks but can't figure it … |
|
am getting [COLOR="Red"]Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent[/COLOR] while running the following code. please help to fix it.. thanks. <html> <!-- centermain.php is a frame, user redirected to frame if tried to access from url--> <SCRIPT LANGUAGE='javascript'>try { if (top == self) {top.location.href='centermain.php'; } … |
|
the following code gives first date of week for the given date range. how to get week number from the date??? thanks. [CODE]<?php $start = $week = strtotime('2011-01-01'); $end = strtotime('2011-02-01'); while($week < $end) { echo date('Y-m-d',$week), PHP_EOL; //echo week num??? $week = strtotime("+1 week", $week); } ?>[/CODE] |
|
the following gets first date of the week [CODE]DECLARE @Year SMALLINT = 2011 ;WITH cteSource(firstdate) AS ( SELECT CONVERT(varchar(50), DATEADD(DAY, 7 * v.Number, o.Origin), 101) AS firstdate FROM ( SELECT DATEADD(DAY, DATEDIFF(DAY, '18991230', STR(@Year, 4, 0) + '0101') / 7 * 7, '18991230') ) AS o(origin) INNER JOIN master.dbo.spt_values AS … |
|
[CODE] set datefirst 6 datepart(wk,'2011-01-12') [/CODE] yields 2. I would like to derive 2011-01-08 from this number. please help.thanks in advance. |
|
i need help in adding $data into datatable data.setvalue where will be used to generate column chart. first column = x-axis while the rest of the columns = elements. thanks in advance. [CODE] <?php $result=mssql_fetch_array($row); // $result already in correct structure. $data = json_encode($result); ?> <html> <head> <script type="text/javascript" src="https://www.google.com/jsapi"></script> … |
|
hi am beginner in php.. please help me.. rough explanation: user will select orgname and the following code will get the orgname and import data from mssql. i wanted to filter those data according to groupname and count number of users access to the system in month basis according to … |