- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
Nothing is Impossible
- Interests
- Master Brainstorming
- PC Specs
- Expert
21 Posted Topics
Re: Hello, we will need more info. What kind of data are you saving etc. | |
Hello guys, i have been working on a new script that will import data from a TXT file to mysql. Using this code works ok: $sql = 'LOAD DATA LOCAL INFILE 'logons-16-12-2013.txt' INTO TABLE pcvsuser COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\\r\\n''; But if i … | |
Re: <select> <option value="update">update</option> <option value="delete">delete</option> </select> <input type="text" name="other" value="keyword"> //this will make a variable of the select option update $update = $_POST['update']; //this will make a variable of the select option delete $delete = $_POST['delete']; //this will make a variable of the select option other // in other words, … | |
Re: Hope this helps $sql1="INSERT INTO inventory(account_number,serial_number,locator,remarks,`date_assigned`) VALUES('$accountno','$serial','$locator','$remarks',NOW())"; $sql2="INSERT INTO action_log(action,username,`date`) VALUES ('assigns the box($serial) to $accountno','$user',NOW())"; $sql3="INSERT INTO account_logs(action_log,account_number,username,`date`) VALUES('Assign','$accountno','$user',NOW())"; //run query 1 if(mysql_query($sql1)){echo "Successfully inventory Assigned!";} else{echo "Insertion inventory Failed!";} //run query 2 if(mysql_query($sql2)){echo "Successfully action_log Assigned!";} else{echo "Insertion action_log Failed!";} //run query 3 if(mysql_query($sql3)){echo "Successfully account_logs Assigned!";} else{echo … | |
Re: can you make a link to a excel example? | |
Re: You must learn PHP/HTML/MySql: http://bytes.com/topic/php/insights/740327-uploading-files-into-mysql-database-using-php Here is a complete tutorial on how to make what you whant. | |
Hello guys, i already have my databases and scripts working, and i was implementing a small webserver under windows 7 with xampp. But after configuring all needed in apache, i can see the pages in the server but non of the clients can see the pages. No error is displayed, … | |
Hello guys, now that i have all my scripts up and running i need some help configuring virtualhosts on Apache/Xampp/Win7 The Httpd-vhosts.conf like this: <VirtualHost *:80> ServerAdmin joao.dias@centralcervejas.pt DocumentRoot "C:/xampp/htdocs" ServerName kadar ServerAlias www.kadar <Directory "C:/xampp/htdocs/" > Options Indexes FollowSymLinks ExecCGI Includes Order allow,deny Allow from all </Directory> </VirtualHost> The … | |
Hello guys, i have been away in the last few days, because of work, so i am on again. I am trying to ping a series of hosts and then add info about the ping in a row. I have a DB called ad, with a table called ping with … | |
Re: if ($result) { echo "<div class='total'>"; echo "<b>Your Total Income is $total</b>"; echo "</div>"; } | |
Re: Does this help? <table width="100%" border="0"> <tr> <td>Header</td> </tr> <tr> <td>Top navigation</td> </tr> <tr> <td><table width="100%" border="0" cellspacing="0"> <tr> <td width="18%">Left navigation</td> <td width="64%">Main content</td> <td width="18%">Banners</td> </tr> </table></td> </tr> <tr> <td>Footer</td> </tr> </table> | |
Re: This works for me: `<INPUT alt="Submit" src="images/image.png" width="48" height="48" type="image">` | |
Re: Something like this? <table width="100%" border="0" cellspacing="0"> <tr> <td width="25%"><table width="96%" border="0" align="center"> <tr> <td> </td> </tr> </table></td> <td width="50%"><table width="96%" border="0" align="center"> <tr> <td> </td> </tr> </table></td> <td width="25%"><table width="96%" border="0" align="center"> <tr> <td> </td> </tr> </table></td> </tr> </table> | |
Re: This might help: <?php //session_start(); //include("includes/utilities.php"); //$Errors = ""; // $_SESSION['LoggedIn'] = false; // $_SESSION['UserID'] = ""; // $_SESSION['UserAdmin'] = false; $func = function hello() { print "<h1>HELLO!</h1>"; print "<p>Welcome to my web site</p>"; } echo $func ?> | |
Re: If order-online.php is in the same folder: `header("Location: order-line.php")` If order-online.php is in diferent folder: `header("Location: ../folder/order-line.php")` Or `header("Location: ../order-line.php")` Or you can use: `echo "<script>history.go(-1);</script>";` Wich send you back to previews page. Hope this helps, it works for me in local and in web. | |
Ok, new question... I need to get data from one mysql row, set it as $ad The following code will convert it to readable date format. <?php function adConvert ($ad) { $seconds_ad = $ad / (10000000); //86400 -- seconds in 1 day $unix = ((1970-1601) * 365 - 3 + … | |
Re: This vbs will check if Ie is working or not, and will show a message box with the results. sName = "iexplore" iDelay = 10000 Set oWMIService = GetObject("winmgmts:\\.\root\CIMV2") K = GetKernel WScript.sleep(iDelay) If GetKernel = K _ Then MsgBox sName & " appears to be idle" _ Else MsgBox … | |
Hello guys, my turn to ask a very simple question. I already have a Mysql DB with querys working great. I import data from Active Directory server, and one of the values is State, enabled or disabled, etc. But this values came in a form of code: 512 = Enabled … ![]() | |
Re: In phpMyadmin select the database forum, and click on SQL In the box insert: DROP TABLE photo; CREATE TABLE files ( id int(11) NOT NULL AUTO_INCREMENT, mime varchar(255) NOT NULL, data blob NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; If you do not have phpmyadmin installed use this php script … |
The End.