39,320 Topics
| |
| Hi all. Have been racking my brains about how to go about creating a multidimensional array dynamically from an array of keys. Something like... $keys = array('key1', 'key2', 'key3'); $value = 'some value'; // $md = ...???!!!... I need the $md multidimensional array to have the keys thus... $md['key1']['key2']['key3'] = … |
Dear all, I have been thinking of this task, but I have no idea where to start from. I am retrieving login logs from the database, which is cool. Now, the challenge is that in case a user has logged in more than once in the same day, I want … | |
Hello, I am assign to create an SMS Gateway webbased. Any idea how to do so? I only find this typology for an SMS Gateway: [SMS Gateway](http://www.ozekisms.com/index.php?owpn=510) Yet, still do not have any clue how to create the web based script for it in order to work. | |
i have a contact form. html is done. php is done as well. but the submit button doesnt seem to read my php code. sorry if my coding is too long but i just had to post the whole thing incase i missed something. any help is very much appreciated. … | |
Hi, I am trying to get a form to redirect to a thank you page but after several attempts I am still no closer to achieving this. Below is the php code form the sendemail script: <?php $name = trim($_POST['name']); $email = $_POST['email']; $comments = $_POST['comments']; $site_owners_email = '**************'; // … | |
anybody to help me query two database tables containing different data between two dates and results given sequencially dependending on this dates on either of the two said tables | |
I am having a small issue with displaying text that has been converted with htmlspecialchars. In the db I have this: &lt;b&gt;Testing:&lt;/b&gt;&lt;br&gt;&lt;ol&gt;&lt;li&gt;it's a test&lt;br&gt;&lt;/li&gt;&lt;/ol&gt; When I use: echo htmlspecialchars_decode($variable); The page displays: <b>Testing:</b><br><ol><li>it's a test<br></li></ol> I am not sure why this is happening. Any help is appreciated. Thank you | |
Hello i am creating a small project. is there any tutorial that could help me . i have image gallery. it has main categories and then sub categories , i want to upload the images to respective sub category under main category after choosing categ and sub categ from list … | |
Hello. I am trying to implement a Laravel API that will be consumed by different clients (domains). The API basically, sends json response to the clients. For instance, when the client app.anyclient.com sends a AJAX/post request to api.myapi.com/login …the API is able to validate and login the user; however, the … | |
i using this code to display radio buttons for selection. somehow the its not working correctly, plz guide on this issue. thanks in advance. <div class="register-section" id="user-role-section"> <label for="wp_rar_user_role"><?php echo $this->wp_rar_role_label; ?></label> <?php foreach($this->wp_selected_rar_roles as $role) { ?> <input type="radio" name="wp_rar_user_role" id="wp_rar_user_role" class="input select" value="<?php echo $role; ?>" /> <label> … | |
Hi guys I know this might be a repeated post, someone has looked at the code and they seem to think that it all look fine, but I'm getting this following message again Warning: mysqli_query(): Couldn't fetch mysqli in C:\xampp\htdocs\submit-form.php on line 19 The following SQL Failed INSERT INTO 'users' … | |
Hi I am trying to display the server(system) status ON/OFF with php script. can anyone please help me how we can find the status. for example we are having 3 machine. SRVR01 ON SRVR02 OFF SRVR03 ON | |
I am developing shopping cart using jquery, json and ajax. What kinda of security should keep in mind while developing ? | |
Good day everyone Not sure if this is the right place to ask this but im trying to connect to my database online "Control Panel of my hosting site" from my local machine basically the webpage is running locally. but i want the data to be fetch online. my question … | |
I decided to use the stored procedures in MySQL. I am able to retrieve only one row value in OUT paramater, but when the returned result contains more than one row, I get nothing! Please see the simple code below for stored procedure which I add it to phpmyadmin direct: … | |
file.php?sub=3&main=10&date=2010-04-20 sub value has max 3 and main has max 10 , can anybody tell me how many tables or columns this website has ? | |
Hi I am using the following code to give the user a choice of options in a drop down box: [CODE] <?php $query="SELECT location,id FROM area"; $result = mysql_query ($query); echo "<select name=location_id value=''>location</option>"; while($nt=mysql_fetch_array($result)){ echo "<option value=$nt[id]>$nt[location]</option>"; } echo "</select>"; ?> [/CODE] It retrieves all of the options from … | |
Hi I've wrote a plugin it works but on deactivation it doesn't drop the plugin tables from db this is the code $sql = "DROP TABLE IF_EXISTS 'TABLENAME'"; $wpdb->query($sql); //$e = $wpdb->query($sql); //die(var_dump($e)); and i call that function this way register_deactivation_hook(__FILE__, 'deactivate'); if i uncomment to show message error it … | |
I have problem with this code show mi error Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\wamp\www\blogcode\resources\func\blog.php on line 34 function category_exists($name){ $name = mysql_real_escape_string($name); $query = mysql_query("SELECT COUNT(1) FROM 'categories' WHERE 'name'= '{$name}'"); return (mysql_result($query, 0)=='0') ? false:true; } How to fix this problem? | |
I am trying to make it so that the snippet below automatically creates extra pages to show me all the followers I have on my Twitch Channel. At the moment I have it at 25, but it does cap at 100. How can I make it so that it automatically … | |
I am working on PHP Framework now.I am 23 old . I will have 2 years of experience by 2016.And Company Bond will be over ,and i will be able to leave the company. I worked on cakePHP,Wordpress,WHMCS,Smarty etc.and will work on other PHP Technologies by 2016. I want to … | |
i trying to write a script so that it does,nt allow the user to login again if already logged in...whether he tries from other browser.................. wat i m doing is setting a value in database to 1 if he logs in and 0 if he logs out .......den i check … | |
Hi all, I need your help, I'm working on my php to get the list of contents from my get-listing.php script so I can generating the XML to output the contents into the XML. I have got a little bit of problem with output the contents. I'm still getting the … | |
Hi, I am using wdCalendar and it is working fine localhost . But when I have the using on server it's not work show msg'sory could not load your data, please try agan later.... (I have changed my server username and password bot not work) plz tell me how to … | |
I have done task management software using php.now I would to like to write a php code to(restrict) set deadline date and time in users taskmanagement page by admin.Deadline date already entered by admin in the database.if the deadline date expired the user cannot access his task management page and … | |
I have been trying to work around a problem but am not having much luck. I have classes that include a file with my db settings. The problem is I have a functions directory that calls some of the classes. I get failed to open stream: No such file or … | |
Hello, I am having issue connecting my Access database to my PHP site via ODBC. Here is what I am doing: <?php $dbName = "F:\Data\Web\_Home\TickSys\TickSys.accdb"; if (!file_exists($dbName)) { die("Could not find database file."); } print "Found DB File."; $db = new PDO("odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; DBQ=$dbName; Uid=; Pwd=;"); ?> … | |
Hello. I have a two problems with my Regsystem. 1st. **Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\mycms\reg.php:229) in C:\xampp\htdocs\mycms\reg.php on line 266** 2nd: When i Register a user - system message "Username already exist" not "Registration succesfull".. this is the code of register.php … | |
Here is my PHP code: $fields=array('eventID','eventTitle','te_events.venueID','te_events.catID ', 'eventStartDate','eventEndDate','eventPrice'); // initialize empty array for WHERE clauses $wheres=array(); // loop through field names, get POSTed values, // and build array of WHERE clauses, excluding false values foreach ($fields as $field) { // get existing field value from POST, mark missing or empty … | |
Hi, I have a question regarding php defined function. I want to see the logic implemented for all the php defined functions. How can I see that. For example I want to see what is the logic behing strstr or how strtolower works.Where can I see in wamp these definitions. … |
The End.