search for: mysql_select_db

Displaying 7 results from an estimated 7 matches for "mysql_select_db".

2012 Nov 12
3
Unable to lauch php-script to truncate database
...abase I have placed a executable file cron.php ------------------------------------------------------------------------------------------------------------------- <?php include "./config.php"; //nuBuilder config file $conn = mysql_connect($DBHost, $DBUser, $DBPassword); mysql_select_db($DBName,$conn); /************************************************************** emptying zzsys_trap and zzsys_variable tables **************************************************************/ $sql = "TRUNCATE TABLE zzsys_trap"; mysql_query($sql); $sql =...
2003 Dec 09
3
Web Interface for CDRs
Does anyone know where that nice .php is that was written to access the CDRs from mysql DB? Bruce W. Hedreen Computer Technologies of Eastern Carolina, LLC --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.543 / Virus Database: 337 - Release Date: 11/21/2003 -------------- next part -------------- An HTML attachment was
2006 Nov 24
0
Using Ajax.Updater with Form
...orm> <div id="thanks"></div> </body> </html> < insert.php > <?php $con = mysql_connect("localhost","<hidden>","<hidden>"); if (!$con) { die(''Could not connect: '' . mysql_error()); } mysql_select_db("<hidden>", $con); $sql="INSERT INTO RSVP (firstname, lastname, rsvp, number) VALUES (''$_POST[firstname]'',''$_POST[lastname]'',''$_POST[age]'',''$_POST[number]'')"; if (!mysql_query($sql,$con)) { die(&...
2007 Aug 24
0
MYSQL problem and configuration
...res')\n"); fflush(STDERR); return -1; }}$agivar = init();$hostname= 'xxxx'; $database= 'xxxxx'; $username= 'xxxxx'; $password= 'xxxx'; $dbprotect = mysql_pconnect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR); mysql_select_db($database, $dbprotect);$result = mysql_query("SELECT * FROM user_table WHERE user_age>12");while($entry = mysql_fetch_array($result)) {fwrite(STERR, "Name : $entry['name'], Age: $entry['age'] \n");fflush(STDOUT);$result = trim(fgets(STDIN,4096));checkresult($...
2009 Dec 14
1
AGI with PHP
...gt;= $from_date AND calldate <= $to_date AND disposition='ANSWERED' AND dst like '04%' AND src like '04%'"; // Connecting, selecting database $link = mysql_connect($mysql_host, $mysql_user, $mysql_password) or die('Could not connect: ' . mysql_error()); mysql_select_db($my_database) or die('Could not select database'); // Performing SQL query $result = mysql_query($query_calls) or die('Query failed: ' . mysql_error()); // Printing results in HTML while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { foreach ($line as $col_value) {...
2003 Dec 31
1
AGI - IVR - Time Clock
...;/td> </tr> <? $hostName = "localhost"; $userName = "username"; $password = "password"; $dbName = "service"; // make connection to database mysql_connect($hostName, $userName, $password) or die("Unable to connect to host $hostName"); mysql_select_db($dbName) or die("Unable to select database $dbName"); //$query = "SELECT * from auto ORDER BY Date, Time"; $query = "select auto.Callerid,store.name,emp.employee,auto.Date,auto.Time,auto.Status from auto,store,emp where auto.Strid=store.store_id and au...
2007 May 23
0
Problems compiling res_config_mysql (asterisk addons)
...c:638: undefined reference to `mysql_errno' res_config_mysql.o(.text+0x2027):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:638: undefined reference to `ast_log' res_config_mysql.o(.text+0x204c):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:644: undefined reference to `mysql_select_db' res_config_mysql.o(.text+0x2069):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:645: undefined reference to `mysql_errno' res_config_mysql.o(.text+0x2092):/usr/local/src/asterisk-addons-1.4.1/res_config_mysql.c:645: undefined reference to `ast_log' res_config_mysql.o(.text+0...